» UfoDex Public API, version 1

UfoDex Public API, version 1

This section describes public UfoDex HTTP API, version 1.

Table of contents

Get list of available trading tickers

  https://ufodex.io/dexsrv/mainnet/api/v1/gettickers

Get list of available tickers.


Get ticker pair information

  https://ufodex.io/dexsrv/mainnet/api/v1/getticker/<cur1>/<cur2>

Get information about the pair. OHLC data is provided for the last active 24h candle.

Call examples:

Response:

Field name Description
GenTime Last update time
Label Ticker pair label
Ask Ask price
Bid Bid price
Open Last Open price
High Last High price
Low Last Low price
Close Last Close price
Volume Volume in trading currency for the last 24 hours (cur1 volume)
BaseVolume Volume in base currency for the last 24 hours (cur2 volume)

Get list of supported coins with parameters

  https://ufodex.io/dexsrv/mainnet/api/v1/coins/list

Get list of supported coins with coin-specific parameters.


Get historical candles data

  https://ufodex.io/dexsrv/mainnet/api/v1/history/ohlc/<cur1>/<cur2>/<format>

Get historical OHLC data for the specified ticker pair.

Avaiable formats:

  • highstock
  • json
  • csv

Call examples:

Response example for Highstock data:

[
 [1552900500000.0000000000,0.0000050000,0.0000050000,0.0000050000,0.0000050000,1000.0000000000]
]

Response:

Field index Description
0 Candle timestamp
1 Open price
2 High price
3 Low price
4 Close price
5 Volume (cur1)

Get orderbook for ticker pair

  https://ufodex.io/dexsrv/mainnet/api/v1/orderbook/get/<cur1>/<cur2>

Get available orders from orderbook for the specified ticker pair.

Call examples:

Response cointans the array of orders.