Create OTC Order
Request
POST https://custody-example-url/v1/api/otc/order/create
Request Parameters
Field | Type | Description |
---|---|---|
order_no | String | Order number |
b_id | String | Business line ID |
project_name | String | Business line name |
direction | String | Trade directions. Allowed values: BUY , SELL |
base_asset | String | Base asset symbol |
quote_asset | String | Quote asset symbol |
otc_entity_enum | String | OTC vendor name (currently only supports FLYWING ) |
chain | String | Blockchain network for sending to OTC vendor. Current Supported Values: - ERC20 - Ethereum Mainnet- TRC20 - Tron Network |
client_chain | String | Blockchain network for OTC vendor to send to client. Current Supported Values: - ERC20 - Ethereum Mainnet- TRC20 - Tron Network |
payment_amount | String | Payment amount |
receive_amount | String | Receive amount |
payment_address | String | Payment address (ignored if currency is USD) |
receive_address | String | Receive address (ignored if currency is USD) |
payment_wallet_code | String | Payment wallet code (ignored if currency is USD) |
receive_wallet_code | String | Receive wallet code (ignored if currency is USD) |
final_price | String | Final exchange rate for the trading pair |
market_price | String | Market exchange rate for the trading pair |
checkPrice Optional |
Boolean | Whether to check trading pair exchange rate deviation (default: false ) |
Request Example
{
"order_no": "OTC2024061401000030",
"b_id": "a4e0db8585dc49ac8ec916e097216031",
"project_name": "otc-test",
"direction": "BUY",
"base_asset": "USDT",
"quote_asset": "USD",
"otc_entity_enum": "FLYWING",
"chain": "USD",
"client_chain": "TRC-20",
"payment_amount": "6.01",
"receive_amount": "6",
"payment_address": "",
"receive_address": "TLvdY8CpcU8PHY1y23irPKQjfTYx1kkbjM",
"payment_wallet_code": "",
"receive_wallet_code": "CHUSDTTRC6880475855",
"final_price": "1.0018",
"market_price": "1.0003"
}
Response
Parameter | Type | Description |
---|---|---|
code | integer | Response status code |
message | string | Response status message |
data | object | Order creation result data |
successful | boolean | Whether the request was successful |
Response Example
{
"code": 0,
"data": {},
"message": "",
"successful": true
}