Trading

Create order (compact schema supported)

post
/orders
Authorizations
AuthorizationstringRequired

Compact signature envelope. Only keccak256 + secp256k1 are supported.

Authorization: Bondis alg=<secp256k1-keccak-eip712|secp256k1-keccak-raw>, h=<0x..>, sig=<0x..>

  • Default alg is secp256k1-keccak-eip712.
  • h is keccak256(CRR) of the Canonical Request Representation.
  • sig signs h.
Body

Compact body; verbose keys are also accepted but canonicalized before hashing.

vstring ยท enumRequiredExample: 1cPossible values:
opstring ยท enumRequired

order op: new

Example: nPossible values:
mstringRequired

Market

Example: USD/BRL
sstring ยท enumRequired

side: b=buy, s=sell

Example: bPossible values:
rstring ยท enumRequiredExample: makerPossible values:
tstring ยท enumRequiredExample: limitPossible values:
pstringOptional

Price (decimal string)

Example: 5.1234
qstringRequired

Size (decimal string)

Example: 10000
cidstringOptional

Client idempotency id

Example: abc-123
Responses
chevron-right
200

Order ack

application/json
post
/orders

Cancel order (path)

delete
/orders/{orderId}
Authorizations
AuthorizationstringRequired

Compact signature envelope. Only keccak256 + secp256k1 are supported.

Authorization: Bondis alg=<secp256k1-keccak-eip712|secp256k1-keccak-raw>, h=<0x..>, sig=<0x..>

  • Default alg is secp256k1-keccak-eip712.
  • h is keccak256(CRR) of the Canonical Request Representation.
  • sig signs h.
Path parameters
orderIdstringRequired
Responses
chevron-right
200

Cancellation accepted

application/json
delete
/orders/{orderId}

Create multiple orders in a single batch

post
/orders/batch
Authorizations
AuthorizationstringRequired

Compact signature envelope. Only keccak256 + secp256k1 are supported.

Authorization: Bondis alg=<secp256k1-keccak-eip712|secp256k1-keccak-raw>, h=<0x..>, sig=<0x..>

  • Default alg is secp256k1-keccak-eip712.
  • h is keccak256(CRR) of the Canonical Request Representation.
  • sig signs h.
Body

Batch order creation request. All orders must be valid for the batch to be accepted.

Responses
chevron-right
200

Batch order response

application/json
post
/orders/batch

Cancel by market/side (compact)

post
/orders/cancel
Authorizations
AuthorizationstringRequired

Compact signature envelope. Only keccak256 + secp256k1 are supported.

Authorization: Bondis alg=<secp256k1-keccak-eip712|secp256k1-keccak-raw>, h=<0x..>, sig=<0x..>

  • Default alg is secp256k1-keccak-eip712.
  • h is keccak256(CRR) of the Canonical Request Representation.
  • sig signs h.
Body
vstring ยท enumRequiredExample: 1cPossible values:
opstring ยท enumRequiredExample: cPossible values:
mstringRequiredExample: USD/BRL
sstring ยท enumRequiredExample: bothPossible values:
Responses
chevron-right
200

Accepted

application/json
post
/orders/cancel
200

Accepted

Cancel multiple orders by order IDs

delete
/orders/batch/cancel
Authorizations
AuthorizationstringRequired

Compact signature envelope. Only keccak256 + secp256k1 are supported.

Authorization: Bondis alg=<secp256k1-keccak-eip712|secp256k1-keccak-raw>, h=<0x..>, sig=<0x..>

  • Default alg is secp256k1-keccak-eip712.
  • h is keccak256(CRR) of the Canonical Request Representation.
  • sig signs h.
Body

Batch cancel request by order IDs. All specified orders will be cancelled if they exist and are cancellable.

order_idsstring[] ยท min: 1 ยท max: 100RequiredExample: ["ord_7YQ9","ord_8ZR1","ord_9AS2"]
Responses
chevron-right
200

Batch cancel response

application/json
delete
/orders/batch/cancel

Last updated