Get directions list

get https://api.cryptomus.com/v2/user-api/convert/direction-list Copy

Request

Request example

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'
Copy

Response

Response parameters

NameParameter typeDefinition
idintegerDirection id
from_currency_codestringCurrency From
from_currency_iconstringFrom currency icon
from_currency_icon_pngstringFrom currency icon PNG
to_currency_codestringCurrency to
to_currency_iconstringTo currency icon
to_currency_icon_pngstringTo currency icon PNG
ratestringCourse
priceConvert price
basestringPrice base currency
quotestringPrice quote currency
valuestringPrice value
commission_percentstringCommission percent
min_from_amountstringMin Amount from
max_from_amountstringMax Amount from
min_to_amountstringMin Amount to
max_to_amountstringMax Amount to
amount_scaleintegerAmount scale
to_amount_scaleintegerTo amount scale
price_scaleintegerPrice scale
rate_changestringRate change
directionstringDirection typeAvailable options:• buy• sell
is_allow_limitbooleanLimit orders are allowed

Parameter type

integer

Definition

Direction id

Parameter type

string

Definition

Currency From

Parameter type

string

Definition

From currency icon

Parameter type

string

Definition

From currency icon PNG

Parameter type

string

Definition

Currency to

Parameter type

string

Definition

To currency icon

Parameter type

string

Definition

To currency icon PNG

Parameter type

string

Definition

Course

Definition

Convert price

Parameter type

string

Definition

Price base currency

Parameter type

string

Definition

Price quote currency

Parameter type

string

Definition

Price value

Parameter type

string

Definition

Commission percent

Parameter type

string

Definition

Min Amount from

Parameter type

string

Definition

Max Amount from

Parameter type

string

Definition

Min Amount to

Parameter type

string

Definition

Max Amount to

Parameter type

integer

Definition

Amount scale

Parameter type

integer

Definition

To amount scale

Parameter type

integer

Definition

Price scale

Parameter type

string

Definition

Rate change

Parameter type

string

Definition

Direction typeAvailable options:- buy- sell

Parameter type

boolean

Definition

Limit orders are allowed

Response example


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}
Copy