Create Trade Order
Request
POST https://custody-example-url/custody/v1/api/projects/{b_id}/integrated/trade/order/create
Parameters
Field |
Type |
Description |
b_id |
String |
Business line ID |
base_coin |
String |
base currency |
quote_coin |
String |
quote currency |
base_amount |
Integer |
base amount |
quote_amount |
Integer |
quote amount |
price |
Integer |
Price |
price_id |
String |
Price ID(market order required parameters) |
side |
String |
Trade directions (BUY-buy; SELL-sell) |
trade_type |
String |
Order Type (LIMIT-limit order; TOKEN-market order) |
Note:
- It is recommended that the above parameters take the data returned by the quote price information interface for the market order.
Response
Field |
Type |
Description |
data |
String |
Order ID |
Response Example
{
"code": 0,
"data": "string",
"message": "string",
"successful": true
}