获取指南列表
get https://api.cryptomus.com/v2/user-api/convert/direction-list 复制
要求
请求示例
curl https://api.cryptomus.com/v2/user-api/convert/direction-list \
-X GET \
-H 'userId: 8b03432e-385b-4670-8d06-064591096795' \
-H 'sign: fe99035f86fa436181717b302b95bacff1' \
-H 'Content-Type: application/json'
复制回复
响应参数
| 姓名 | 参数类型 | 定义 |
|---|---|---|
| id | integer | 方向 ID |
| from_currency_code | string | 源货币 |
| from_currency_icon | string | 从货币图标 |
| from_currency_icon_png | string | 来自货币图标 PNG |
| to_currency_code | string | 目标货币 |
| to_currency_icon | string | 货币图标 |
| to_currency_icon_png | string | 货币图标 PNG |
| rate | string | 汇率 |
| price | 转换价格 | |
| base | string | 价格基准货币 |
| quote | string | 报价货币 |
| value | string | 价格价值 |
| commission_percent | string | 佣金百分比 |
| min_from_amount | string | 最小金额(来源) |
| max_from_amount | string | 最大金额(来源) |
| min_to_amount | string | 最小金额(目标) |
| max_to_amount | string | 最大金额(目标) |
| amount_scale | integer | 数量尺度 |
| to_amount_scale | integer | 金额规模 |
| price_scale | integer | 价格表 |
| rate_change | string | 利率变化 |
| direction | string | 方向类型可用选项:• buy• sell |
| is_allow_limit | boolean | 允许限价单。 |
参数类型
integer定义
方向 ID参数类型
string定义
源货币参数类型
string定义
从货币图标参数类型
string定义
来自货币图标 PNG参数类型
string定义
目标货币参数类型
string定义
货币图标参数类型
string定义
货币图标 PNG参数类型
string定义
汇率定义
转换价格参数类型
string定义
价格基准货币参数类型
string定义
报价货币参数类型
string定义
价格价值参数类型
string定义
佣金百分比参数类型
string定义
最小金额(来源)参数类型
string定义
最大金额(来源)参数类型
string定义
最小金额(目标)参数类型
string定义
最大金额(目标)参数类型
integer定义
数量尺度参数类型
integer定义
金额规模参数类型
integer定义
价格表参数类型
string定义
利率变化参数类型
string定义
方向类型可用选项:- buy- sell参数类型
boolean定义
允许限价单。
响应示例
1{
2 "state": 0,
3 "result": [
4 {
5 "id": 12,
6 "from_currency_code": "BTC",
7 "from_currency_icon": "https://cdn.cryptomus.com/icons/btc.svg",
8 "from_currency_icon_png": "https://cdn.cryptomus.com/icons/btc.png",
9 "to_currency_code": "USDT",
10 "to_currency_icon": "https://cdn.cryptomus.com/icons/usdt.svg",
11 "to_currency_icon_png": "https://cdn.cryptomus.com/icons/usdt.png",
12 "rate": "65000.00",
13 "price": {
14 "base": "BTC",
15 "quote": "USDT",
16 "value": "65000.00"
17 },
18 "commission_percent": "0.5",
19 "min_from_amount": "0.0001",
20 "max_from_amount": "10.00000000",
21 "min_to_amount": "10.00000000",
22 "max_to_amount": "650000.00000000",
23 "amount_scale": 8,
24 "to_amount_scale": 6,
25 "price_scale": 2,
26 "rate_change": "1.25",
27 "direction": "buy",
28 "is_allow_limit": true
29 }
30 ]
31}复制