Place a spot order
Changed onBuy or sell, limit or market — isMarket decides, and a market order ignores price. Send a clientOrderId for anything automated: it makes a retry after a lost response adopt the order that already exists instead of placing a second one.
This version answers with the order id as PLAIN TEXT and reports a rejection as HTTP 400. The v200 route is the same operation wrapped in a JSON result envelope.
Request
- Base URLhttps://api.binibit.com
- URLhttps://api.binibit.com/api/orders
- Authnone declared
Headers
Your API key, verbatim. Create one at https://azbit.com/dashboard/settings/api-settings.
Signature of THIS request — lower-case hex of HMAC-SHA256 over publicKey + fullUrl + body, keyed with your private key. It changes with every request, so it cannot be set once and reused. Full algorithm and code samples are at the top of this page.
Request body
Example request
{
"side": "buy",
"currencyPairCode": "BTC_USDT",
"amount": 0.001,
"price": 45000,
"clientOrderId": "mm1-BTC_USDT-0001"
}Response
Order GUID string. Example: "e2cd407c-28c8-4768-bd73-cd7357fbccde"
Changes
- breaking
the request property
became not nullable (media type: application/json-patch+json) - breaking
the request property
became not nullable (media type: application/json) - breaking
the request property
became not nullable (media type: text/json) - breaking
the request property
became not nullable (media type: application/*+json) - breaking
the request property
became required (media type: application/json-patch+json) - breaking
the request property
became required (media type: application/json) - breaking
the request property
became required (media type: text/json) - breaking
the request property
became required (media type: application/*+json) - breaking
the
request property's minLength was increased from0to1(media type: application/json-patch+json) - breaking
the
request property's minLength was increased from0to1(media type: application/json) - breaking
the
request property's minLength was increased from0to1(media type: text/json) - breaking
the
request property's minLength was increased from0to1(media type: application/*+json) - warning
removed the request property
(media type: application/json-patch+json) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: text/json) - warning
removed the request property
(media type: application/*+json) - warning
removed the request property
(media type: application/json-patch+json) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: text/json) - warning
removed the request property
(media type: application/*+json) - warning
removed the request property
(media type: application/json-patch+json) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: text/json) - warning
removed the request property
(media type: application/*+json) - warning
removed the request property
(media type: application/json-patch+json) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: text/json) - warning
removed the request property
(media type: application/*+json) - warning
removed the request property
(media type: application/json-patch+json) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: text/json) - warning
removed the request property
(media type: application/*+json) - warning
removed the request property
(media type: application/json-patch+json) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: text/json) - warning
removed the request property
(media type: application/*+json) - warning
removed the request property
(media type: application/json-patch+json) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: text/json) - warning
removed the request property
(media type: application/*+json) - warning
removed the request property
(media type: application/json-patch+json) - warning
removed the request property
(media type: application/json) - warning
removed the request property
(media type: text/json) - warning
removed the request property
(media type: application/*+json) - info
api tag
Spot · Tradingadded - info
api tag
ApiOrdersremoved - info
added the new optional
headerrequest parameterAPI-PublicKey - info
added the new optional
headerrequest parameterAPI-Signature - info
added the new optional request property
(media type: application/json-patch+json) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: text/json) - info
added the new optional request property
(media type: application/*+json) - info
added the new optional request property
(media type: application/json-patch+json) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: text/json) - info
added the new optional request property
(media type: application/*+json) - info
added the new optional request property
(media type: application/json-patch+json) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: text/json) - info
added the new optional request property
(media type: application/*+json) - info
added the new optional request property
(media type: application/json-patch+json) - info
added the new optional request property
(media type: application/json) - info
added the new optional request property
(media type: text/json) - info
added the new optional request property
(media type: application/*+json)
- breaking