Create OTC Trade
Creates an OTC trade, requires bearer token in authorization header.
This endpoint uses the signing format which does not require strict field ordering and addition of null fields in the request body. Prices do not require strict precision. E.g. for asset precision of 4 - 100, 100.0, 100.00, 100.000 and 100.0000 are all accepted.
Request
- Base URLhttps://api.exchange.bullish.com/trading-api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
signature obtained using the signing format
timestamp is the number of milliseconds since EPOCH
nonce is a client side incremented unsigned 64 bit integer
A numeric referrer id if applicable
Request body
Example request
{
"commandType": "V1CreateOtcTrade",
"clientOtcTradeId": "20050900225",
"sharedMatchKey": "cfBtcXrpMatch001",
"tradingAccountId": "111000000000001",
"isTaker": true,
"remarks": "first otc trade with xyz client",
"trades": [
{
"symbol": "BTC-USDC-PERP",
"side": "BUY",
"price": "98213.0000",
"quantity": "1.50000000"
},
{
"symbol": "XRP-USDC-PERP",
"side": "SELL",
"price": "2.6600",
"quantity": "50.000000"
}
]
}Response
Status OK. The create OTC trade command was successfully acknowledged. To check the current status of the OTC trade, query Get Trade by ID using otcTradeId or clientOtcTradeId received in the response payload.
Example response
{
"message": "Command acknowledged - CreateOtcTrade",
"requestId": "197735387747975680",
"otcTradeId": "200000000000000098",
"clientOtcTradeId": "20050900225",
"sharedMatchKey": "cfBtcXrpMatch001"
}Changes
No recorded changes to this operation across all 1 revision of this API.