รับรายการเส้นทาง
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 | รหัสทิศทาง |
| 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คำนิยาม
รหัสทิศทางประเภทพารามิเตอร์
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}สำเนา