รับรายการเส้นทาง

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รหัสทิศทาง
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

คำนิยาม

รหัสทิศทาง

ประเภทพารามิเตอร์

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}
สำเนา