Create order
Last updated
Was this helpful?
Was this helpful?
{
"market": "btcusdt",
"ord_type": "limit",
"price": 29580.51,
"side": "sell",
"volume": 0.015
}{
"status": "success",
"message": "order nonce created successfully, please sign the msg_hash to place the order",
"payload": {
"nonce": 931,
"msg_hash": "0x5f128faa6e96360629b1fcb4f24fe9bc547f0d79c7a3aed056d824baa786755"
}
}POST /sapi/v1/orders/create/{
"Authorization": "JWT ***"
}import { signMsgHash } from '@brine-fi/brine-connector'
const sign = signMsgHash(createOrderNoncePayload, privateKey); {
"msg_hash": "0x5f128faa6e96360629b1fcb4f24fe9bc547f0d79c7a3aed056d824baa786755",
"signature": {
"r": "",
"s": ""
},
"nonce": 931
}{
"status": "success",
"message": "Created Order Successfully",
"payload": {
"id": 904,
"uuid": "6c79cde4-1e8f-4446-9b4a-ba176d50f08b",
"side": "sell",
"ord_type": "limit",
"price": "29580.51",
"avg_price": "0.0",
"state": "pending",
"market": "btcusdt",
"created_at": "2022-05-27T12:36:57+02:00",
"updated_at": "2022-05-27T12:36:57+02:00",
"origin_volume": "0.015",
"remaining_volume": "0.015",
"executed_volume": "0.0",
"maker_fee": "0.0",
"taker_fee": "0.0",
"trades_count": 0
}
}