取得路線列表
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}複製