取消限价订单
delete
https://api.cryptomus.com/v2/user-api/convert/{orderUuid}
要求
查询参数
姓名 | 参数类型 | 定义 |
---|---|---|
orderUuid* | uuid | 转换订单的UUID |
参数类型
uuid定义
转换订单的UUID
* - 强制性参数
请求示例
curl https://api.cryptomus.com/v2/user-api/convert/740a39d1-2edd-4b4d-bf49-826caf324312 \
-X DELETE \
-H 'userId: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: fe99035f86fa436181717b302b95bacff1' \
-H 'Content-Type: application/json'
复制回复
响应参数
姓名 | 定义 |
---|---|
order_id | 转换 ID |
convert_amount_from | 转换金额(来源) |
convert_amount_to | 转换金额(目标) |
convert_currency_from | 转换货币(来源) |
convert_currency_to | 转换货币(目标) |
type | 类型枚举可用选项:• market• limit |
status | 状态枚举可用选项:• active• completed• partially_completed• cancelled• expired• failed |
created_at | 创建日期和时间 |
current_rate | 当前汇率 |
limit | 限制值(仅限类型为限制时) |
expires_at | 限制到期日期和时间 |
completed_at | 订单完成日期和时间(仅当订单完成时) |
定义
转换 ID定义
转换金额(来源)定义
转换金额(目标)定义
转换货币(来源)定义
转换货币(目标)定义
类型枚举可用选项:- market- limit定义
状态枚举可用选项:- active- completed- partially_completed- cancelled- expired- failed定义
创建日期和时间定义
当前汇率定义
限制值(仅限类型为限制时)定义
限制到期日期和时间定义
订单完成日期和时间(仅当订单完成时)
响应示例
1{
2 "state": 0,
3 "result": {
4 "order_id": "2d9bf426-98ef-448b-84c2-03cc1ec78feb",
5 "convert_amount_from": "10.000",
6 "convert_amount_to": "3.000",
7 "executed_amount_from": null,
8 "executed_amount_to": null,
9 "convert_currency_from": "USDT",
10 "convert_currency_to": "XMR",
11 "type": "market",
12 "status": "completed",
13 "created_at": "2024-07-11 , 18:06:04",
14 "current_rate": "100",
15 "completed_at": "2024-07-11 , 18:06:04"
16 }
17}
复制