The service root URL:
https://stat-api.deex.exchange:2087
-
Request: /get_all_assets/
Response: JSON list of assets
[„Asset1“, „Asset2“…]
Example:
https://stat-api.deex.exchange:2087/get_all_assets/
Error: If there is an error, the system responds with a 404 error code. -
Request: /get_markets/<name>/
Attributes:
◦ <name> - the asset name
Response: JSON list of the asset’s markets
[{
„market“ : „Asset1/Asset2“,
„last_price“: 11111
}]
Example:
https://stat-api.deex.exchange:2087/get_markets/DEEX/
Error: If there is an error, the system responds with a 404 error code. -
Request: /get_market_data/<base_asset>/<quote_asset>/
Attributes:
◦ <base_asset> - the base asset name
◦ <quote_asset> - the quote asset name
Response: JSON with 24hs volume and ticker data.
Example:
https://stat-api.deex.exchange:2087/get_market_data/BTS/DEEX/
{
"ticker": {
"time": "2019-03-05T21:51:06",
"base": "BTS",
"base_volume": "57730.842600",
"latest": "0.340000",
"lowest_ask": "0.365989",
"max_24h_sale": "0.386000",
"quote": "DEEX",
"highest_bid": "0.330000",
"quote_volume": "158823.525900",
"min_24h_buy": "0.366000"
}
}, where: -
base — the base asset;
-
base_volume — 24hs volume of the base asset on this market;
-
quote — the quote asset;
-
quote_volume — 24hs volume of the quote asset on this market;
-
time — time when this volume was fixed;
-
highest_bid — the highest price a buyer of an asset is willing to pay for that asset;
-
latest — latest price of filled order;
-
lowest_ask — the lowest price a seller of an asset is willing to accept for that asset;
-
max_24h_sale — 24H maximum sale price;
-
min_24h_buy — 24H minimum buy price.
Error: If there is an error, the system responds with a 404 error code.
-
Request: /get_all_markets/
Response: JSON list of markets
[„last_price“: "sourceAsset": "market": "dest_volume": "source_volume": "destAsset": …]
Example:
https://stat-api.deex.exchange:2087/get_all_markets/
{
[{
"last_price": "11507.475395",
"sourceAsset": "DEEX",
"market": "DEEX/DEEX.ETH",
"dest_volume": "0.000000",
"source_volume": "0.000000",
"destAsset": "DEEX.ETH"
...
}
]}
where: -
last_price - last price;
-
sourceAsset - base asset;
-
market - market;
-
source_volume - volume of the base asset;
-
dest_volume - volume of the quote asset;
-
destAsset - quote asset.
Error: If there is an error, the system responds with a 404 error code.