Get directions list
URL: GET /trade/currency/directions
Auth required : NO
Response:
{
"code": 200,
"data": {
"items": [
{
"direction": "BTC_USD",
"base_asset": "BTC",
"quote_asset": "USD",
"volume": 7.15,
"volume_24": 994.961233,
"price": 2100,
"change": -12.54
},
{
"direction": "USDT_ETH",
"base_asset": "USDT",
"quote_asset": "ETH",
"volume": 4,
"volume_24": 0,
"price": 2100,
"change": 40
}
]
},
"message": "OK"
}
Get direction settings
URL: GET /trade/currency/directions-settings/BTC_USD
Auth required : NO
Response:
{
"code": 200,
"data": {
"decimal_price": 7,
"decimal_volume": 5,
"max_volume": 50000,
"min_volume": 0.0001,
"fee_maker": 0,
"fee_taker": 0
},
"message": "OK"
}
Get all directions settings list
URL: GET /trade/currency/directions-settings/list
Auth required : NO
Response:
{
"code": 200,
"data": {
"items": [
{
"decimal_price": 0,
"decimal_volume": 0,
"direction": "BTC_ETH",
"min_volume": 0.0001,
"max_volume": 1000000,
"fee_maker": 2,
"fee_taker": 1.5
},
{
"decimal_price": 1,
"decimal_volume": 3,
"direction": "BTC_USD",
"min_volume": 0.0001,
"max_volume": 50000,
"fee_maker": 2,
"fee_taker": 1.5
}
]
},
"message": "OK"
}
Get orders list
URL: GET /trade/order/list/BTC_USD
Auth required : NO
Response:
{
"code": 200,
"data": {
"buy": [
{
"volume": 2,
"remain_volume": 2,
"price": 1900
},
{
"volume": 10,
"remain_volume": 10,
"price": 1500
}
],
"sell": [
{
"volume": 6,
"remain_volume": 3,
"price": 2000
}
]
},
"message": "OK"
}
Get my orders list
URL: GET /trade/order/my-list
Auth required : YES
Query params : sort, page, per-page, hash, direction, volume, remain_volume, price, side, status, date_from, date_to
Statuses : completed, canceled, active
Response:
{
"code": 200,
"data": {
"items": [
{
"avg_price": 17333.33333333,
"hash": "21f1c780-695e-4dfe-98ad-1327a2f57d5c",
"direction": "BTC_USD",
"volume": 0.03,
"remain_volume": 0,
"price": 0,
"side": "buy",
"type": "market",
"status": "completed",
"executed": 3,
"date_time": 1672732569
},
{
"avg_price": 0,
"hash": "6414c2b0-39b2-420e-a5ff-34d8c239869a",
"direction": "BTC_USD",
"volume": 0.01,
"remain_volume": 0,
"price": 17145,
"side": "buy",
"type": "limit",
"status": "completed",
"executed": 0,
"date_time": 1672045627
},
{
"avg_price": 0,
"hash": "2b09f118-e1ec-4a77-a1c7-ecfabe9b27dd",
"direction": "BTC_USD",
"volume": 0.01,
"remain_volume": 0,
"price": 17145,
"side": "buy",
"type": "limit",
"status": "completed",
"executed": 0,
"date_time": 1672045570
}
],
"pagination": {
"page": 1,
"page_size": 20,
"shown_from": 1,
"shown_to": 3,
"total_count": 3
}
},
"message": "OK"
}
Get dials list
URL: GET /trade/order/dials/BTC_USD
Auth required : NO
Query params : size
Response:
{
"code": 200,
"data": {
"items": [
{
"aggressive_type": "buy",
"volume": 2,
"price": 2000,
"date_time": 1652861454
},
{
"aggressive_type": "buy",
"volume": 1,
"price": 2000,
"date_time": 1652861454
}
]
},
"message": "OK"
}
Get my dials list
URL: GET /trade/order/my-dials
Auth required : YES
Query params : sort, hash, page, per-page, aggressive_type, my_order_type, direction, volume, price, date_from, date_to
Response:
{
"code": 200,
"data": {
"items": [
{
"other_order_uuid": "fb125258-a512-4e15-adaf-de29f421ba94",
"aggressive_type": "buy",
"my_order_type": "buy",
"my_order_role": "taker",
"fee": 1.2,
"direction": "BTC_USD",
"volume": 1,
"price": 29000,
"date_time": 1655279343
},
{
"other_order_uuid": "fb125258-a512-4e15-adaf-de29f421ba94",
"aggressive_type": "sell",
"my_order_type": "buy",
"my_order_role": "maker",
"fee": 2,
"direction": "BTC_USD",
"volume": 2,
"price": 11000,
"date_time": 1655272203
}
],
"pagination": {
"page": 1,
"page_size": 20,
"shown_from": 1,
"shown_to": 2,
"total_count": 2
}
},
"message": "OK"
}
Create order
URL: POST /trade/order/add
Auth required : YES
Query params : size
Body JSON attributes : direction, price, volume, type, stop
Types : 0 - limit buy, 1 - limit sell, 2 - market buy, 3 - market sell
Response:
[
{
"direction": "BTC_USD",
"price": 12,
"type": 1,
"volume": 100
},
{
"direction": "BTC_USD",
"type": 2,
"volume": 100
},
{
"code": 200,
"data": {
"hash": "bf2e1ee0-65fc-44de-85c9-f0e00a2ede83"
},
"message": "OK"
},
{
"code": 422,
"data": {
"direction": "direction not found",
"price": "required key is missing",
"type": "must be a valid value",
"volume": "must be no less than 0.0001"
},
"message": "Data validation failed"
},
{
"code": 400,
"data": {
"body": "bad request invalid character '\"' after object key:value pair"
},
"message": "Bad request"
}
]
Cancel order
URL: GET /trade/order/cancel/{hash}
Auth required : YES
Response:
[
{
"code": 200,
"data": [],
"message": "OK"
},
{
"code": 404,
"data": [],
"message": "Order not found"
}
]
Cancel all my orders
URL: GET /trade/order/cancel-all
Auth required : YES
Response:
{
"code": 200,
"data": {
"error": 0,
"success": 2,
"total": 2
},
"message": "OK"
}
Get transactions list
URL: GET /trade/order/transactions
Auth required : YES
Query params : page, per-page, sign_type, amount, currency, description, date_from, date_to
Response:
{
"code": 200,
"data": {
"items": [
{
"sign_type": "out",
"amount": 0.0006,
"currency": "BTC",
"description": "withdrawal 0.03 BTC. fee 2%",
"date_time": 1657016678
},
{
"sign_type": "out",
"amount": 0.0294,
"currency": "BTC",
"description": "withdrawal 0.03 BTC. fee 2%",
"date_time": 1657016678
},
{
"sign_type": "in",
"amount": 0.05,
"currency": "BTC",
"description": "deposit funds",
"date_time": 1657015967
}
],
"pagination": {
"page": 1,
"page_size": 50,
"shown_from": 1,
"shown_to": 3,
"total_count": 3
}
},
"message": "OK"
}
Get quots config
URL: GET /trade/quot/config
Auth required : NO
Response:
{
"supported_resolutions": [
"1",
"5",
"15",
"30",
"60",
"240",
"1D",
"1W",
"1M"
],
"supports_group_request": false,
"supports_marks": false,
"supports_search": true,
"supports_time": true
}
Get quots symbols
URL: GET /trade/quot/symbols?symbol=BTC_USD
Auth required : NO
Query params : symbol
Response:
{
"currency_code": "",
"data_status": "",
"description": "BTC/USD",
"exchange": "",
"expiration_date": "",
"expired": "",
"force_session_rebuild": "",
"fractional": false,
"has_daily": true,
"has_empty_bars": true,
"has_intraday": true,
"has_no_volume": false,
"has_seconds": false,
"has_weekly_and_monthly": false,
"industry": "",
"intraday_multipliers": "",
"listed_exchange": "",
"minmov": 1,
"minmove2": 0,
"name": "BTC_USD",
"pricescale": 100000,
"seconds_multipliers": "",
"sector": "",
"session": "24x7",
"supported_resolutions": [
"1",
"5",
"15",
"30",
"60",
"240",
"1D",
"1W",
"1M"
],
"ticker": "BTC_USD",
"timezone": "Etc/UTC",
"type": "",
"volume_precision": "0"
}
Get quots time
URL: GET /trade/quot/time
Auth required : NO
Response:
1659009091
Get quots history
URL: GET /trade/quot/history
Auth required : NO
Query params : symbol, resolution, from, to
Response:
{
"s": "ok",
"c": [
"29000.000000",
"29841.463200",
"30972.587999",
"30000.000000",
"36001.800000",
"35810.640000",
"36423.060000",
"36210.660000",
"29928.593748",
"30554.417316",
"31705.126934"
],
"o": [
"29000.000000",
"29841.463200",
"30972.587999",
"30000.000000",
"36001.800000",
"35810.640000",
"36423.060000",
"36210.660000",
"29928.593748",
"30554.417316",
"31705.126934"
],
"h": [
"29000.000000",
"29841.463200",
"30972.587999",
"30000.000000",
"36001.800000",
"35810.640000",
"36423.060000",
"36210.660000",
"29928.593748",
"30554.417316",
"31705.126934"
],
"l": [
"29000.000000",
"29841.463200",
"30972.587999",
"30000.000000",
"36001.800000",
"35810.640000",
"36423.060000",
"36210.660000",
"29928.593748",
"30554.417316",
"31705.126934"
],
"t": [
"1655279343",
"1654764261",
"1654250203",
"1654250042",
"1653910705",
"1653910623",
"1653910619",
"1652863962",
"1652861515",
"1652861454",
"1652861223"
],
"v": [
"1.000000",
"4.675927",
"14.779241",
"0.010000",
"15.648720",
"17.675478",
"4.143642",
"7.472474",
"22.791892",
"7.963304",
"6.261828"
]
}
Get exchange directions
URL: GET /trade/exchange/settings
Auth required : NO
Response:
{
"code": 200,
"data": {
"items": {
"BTC": [
{
"currency": "ETH",
"price": 13.6376644,
"fee": 5,
"min_volume": 0.001,
"max_volume": 10
},
{
"currency": "USD",
"price": 30000,
"fee": 0.5,
"min_volume": 0.01,
"max_volume": 200
}
],
"ETH": [
{
"currency": "BTC",
"price": 12.27389796,
"fee": 2,
"min_volume": 0.001,
"max_volume": 10
}
]
}
},
"message": "OK"
}
Create exchange
URL: POST /trade/exchange/add
Auth required : YES
Body JSON attributes : give, get, volume (for "give" currency)
Response:
[
{
"give": "BTC",
"get": "USD",
"volume": 1.5
},
{
"code": 200,
"data": {
"hash": "daf5a3e8-1392-4898-8d43-d13c8c82410b",
"direction": "BTC_USD",
"volume": 0.01,
"price": 10000,
"fee": 0.1,
"type": "sell",
"date_time": 1662638059
},
"message": "OK"
},
{
"code": 422,
"data": {
"volume": "Not enough reserve, maximum available amount 50000.001 USD"
},
"message": "Data validation failed"
}
]
Get my exchanges list
URL: GET /trade/exchange/my-list
Auth required : YES
Query params : sort, page, per-page, hash, direction, volume, price, type, date_from, date_to
Response:
{
"code": 200,
"data": {
"items": [
{
"hash": "3b1cb6ac-6b8e-40ec-bd86-1f2b83a0d30e",
"direction": "BTC_USD",
"volume": 0.5,
"price": 30000,
"fee": 0.1,
"type": "buy",
"date_time": 1661869324
},
{
"hash": "89ce364b-55a1-44fa-bf84-8bc67021a7ea",
"direction": "BTC_USD",
"volume": 2,
"price": 30000,
"fee": 0.5,
"type": "sell",
"date_time": 1661868921
}
],
"pagination": {
"page": 1,
"page_size": 20,
"shown_from": 1,
"shown_to": 2,
"total_count": 2
}
},
"message": "OK"
}
Get my locked balances
URL: GET /trade/currency/my-locked
Auth required : YES
Response:
{
"code": 200,
"data": {
"items": [
{
"amount": 300.1199999,
"currency": "USD"
},
{
"amount": 0.01,
"currency": "BTC"
}
]
},
"message": "OK"
}