获取指南列表

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'
复制

回复

响应参数

姓名参数类型定义
idinteger方向 ID
from_currency_codestring源货币
from_currency_iconstring从货币图标
from_currency_icon_pngstring来自货币图标 PNG
to_currency_codestring目标货币
to_currency_iconstring货币图标
to_currency_icon_pngstring货币图标 PNG
ratestring汇率
price转换价格
basestring价格基准货币
quotestring报价货币
valuestring价格价值
commission_percentstring佣金百分比
min_from_amountstring最小金额(来源)
max_from_amountstring最大金额(来源)
min_to_amountstring最小金额(目标)
max_to_amountstring最大金额(目标)
amount_scaleinteger数量尺度
to_amount_scaleinteger金额规模
price_scaleinteger价格表
rate_changestring利率变化
directionstring方向类型可用选项:• buy• sell
is_allow_limitboolean允许限价单。

参数类型

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}
复制