Trading
Compact signature envelope. Only keccak256 + secp256k1 are supported.
Authorization: Bondis alg=<secp256k1-keccak-eip712|secp256k1-keccak-raw>, h=<0x..>, sig=<0x..>
- Default
algissecp256k1-keccak-eip712. hiskeccak256(CRR)of the Canonical Request Representation.sigsignsh.
Compact body; verbose keys are also accepted but canonicalized before hashing.
1cPossible values: order op: new
nPossible values: Market
USD/BRLside: b=buy, s=sell
bPossible values: makerPossible values: limitPossible values: Price (decimal string)
5.1234Size (decimal string)
10000Client idempotency id
abc-123Order ack
Invalid order
Unauthorized
POST /v1/orders HTTP/1.1
Host: api.bondis.xyz
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 106
{
"v": "1c",
"op": "n",
"m": "USD/BRL",
"s": "b",
"r": "maker",
"t": "limit",
"p": "5.1234",
"q": "10000",
"cid": "abc-123"
}{
"order_id": "ord_7YQ9",
"status": "accepted",
"block_id": 120394
}Compact signature envelope. Only keccak256 + secp256k1 are supported.
Authorization: Bondis alg=<secp256k1-keccak-eip712|secp256k1-keccak-raw>, h=<0x..>, sig=<0x..>
- Default
algissecp256k1-keccak-eip712. hiskeccak256(CRR)of the Canonical Request Representation.sigsignsh.
Cancellation accepted
Not found
DELETE /v1/orders/{orderId} HTTP/1.1
Host: api.bondis.xyz
Authorization: YOUR_API_KEY
Accept: */*
{
"order_id": "ord_7YQ9",
"status": "accepted",
"block_id": 120394
}Compact signature envelope. Only keccak256 + secp256k1 are supported.
Authorization: Bondis alg=<secp256k1-keccak-eip712|secp256k1-keccak-raw>, h=<0x..>, sig=<0x..>
- Default
algissecp256k1-keccak-eip712. hiskeccak256(CRR)of the Canonical Request Representation.sigsignsh.
Batch order creation request. All orders must be valid for the batch to be accepted.
Batch order response
Invalid batch request
Unauthorized
POST /v1/orders/batch HTTP/1.1
Host: api.bondis.xyz
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 225
{
"orders": [
{
"v": "1c",
"op": "n",
"m": "USD/BRL",
"s": "b",
"r": "maker",
"t": "limit",
"p": "5.1234",
"q": "10000",
"cid": "abc-123"
},
{
"v": "1c",
"op": "n",
"m": "USD/BRL",
"s": "s",
"r": "maker",
"t": "limit",
"p": "5.1240",
"q": "5000",
"cid": "def-456"
}
]
}{
"orders": [
{
"order_id": "ord_7YQ9",
"status": "accepted",
"block_id": 120394
},
{
"order_id": "ord_8ZR1",
"status": "accepted",
"block_id": 120394
}
],
"block_id": 120394
}Compact signature envelope. Only keccak256 + secp256k1 are supported.
Authorization: Bondis alg=<secp256k1-keccak-eip712|secp256k1-keccak-raw>, h=<0x..>, sig=<0x..>
- Default
algissecp256k1-keccak-eip712. hiskeccak256(CRR)of the Canonical Request Representation.sigsignsh.
1cPossible values: cPossible values: USD/BRLbothPossible values: Accepted
POST /v1/orders/cancel HTTP/1.1
Host: api.bondis.xyz
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 44
{
"v": "1c",
"op": "c",
"m": "USD/BRL",
"s": "both"
}Accepted
{
"canceled": 3,
"block_id": 120394
}Compact signature envelope. Only keccak256 + secp256k1 are supported.
Authorization: Bondis alg=<secp256k1-keccak-eip712|secp256k1-keccak-raw>, h=<0x..>, sig=<0x..>
- Default
algissecp256k1-keccak-eip712. hiskeccak256(CRR)of the Canonical Request Representation.sigsignsh.
Batch cancel request by order IDs. All specified orders will be cancelled if they exist and are cancellable.
["ord_7YQ9","ord_8ZR1","ord_9AS2"]Batch cancel response
Invalid batch cancel request
Unauthorized
DELETE /v1/orders/batch/cancel HTTP/1.1
Host: api.bondis.xyz
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"order_ids": [
"ord_7YQ9",
"ord_8ZR1",
"ord_9AS2"
]
}{
"cancelled": [
{
"order_id": "ord_7YQ9",
"status": "cancelled"
},
{
"order_id": "ord_8ZR1",
"status": "cancelled"
},
{
"order_id": "ord_9AS2",
"status": "not_found"
}
],
"block_id": 120394
}