5. Create order
請求
Name | Type | Required | Description |
---|---|---|---|
exchange_mode | string | yes | 兌換模式(浮動比例 | 固定比例) |
from_abbr | string | yes | Coin name |
from_chain | string | yes | Chain name |
from_quantity | float | yes | 數量 |
to_address | array | yes | Receiving Address list |
to_abbr | string | yes | Receive coin name |
to_address | string | yes | Receiving Address |
to_chain | string | yes | Receiving chain name |
to_group_ratio | float | yes | 接收組比例 |
to_ratio | float | yes | 接收比例 |
請求
{
"exchange_mode": "float",
"from_abbr": "ARB",
"from_chain": "Arbitrum",
"from_quantity": 100,
"to_address": [
{
"to_abbr": "ETH",
"to_address": "************",
"to_chain": "Arbitrum",
"to_group_ratio": 1,
"to_ratio": 1
}
]
}
響應
Name | Type | Description |
---|---|---|
code | int | 業務狀態碼 |
data | object | 數據對象 |
address | string | 地址 |
order_no | string | 訂單編號 |
query_code | string | 查詢代碼 |
msg | string | 業務消息 |
示例響應
{
"code": 0,
"msg": "success",
"data": {
"order_no": "XUcQdnSg",
"address": "TXf94kgP9HuVHr1bRLmHaL1hVPbUYipDGh",
"query_code": "3XXNCL8PXZX6"
}
}