⛓️Restful API

We build a restful API for any analysis platforms query data from our DEX

1. Get all pairs

https://api.echodex.io/info/pairs

The /pairs endpoint provides a summary on cryptoasset trading pairs available on the DEX.

Response:

Name
Data type
Description

ticker_id

string

Identifier of a ticker

base

string

Contract Address of a the base cryptoasset

target

string

Contract Address of the target cryptoasset

pool_id

string

Pair address of base and target

2. Get all tickers

https://api.echodex.io/info/tickers

The /tickers endpoint provides 24-hour pricing and volume information on each market pair available on the DEX.

Response:

Name
Data Type
Description

ticker_id

string

Identifier of a ticker

base_currency

string

Contract Address of a the base cryptoasset

target_currency

string

Contract Address of the target cryptoasset

last_price

decimal

Last transacted price of base currency based on given target currency

base_volume

decimal

24 hour trading volume for the pair (unit in base)

target_volume

decimal

24 hour trading volume for the pair (unit in target)

pool_id

string

Pair address or base and target

liquidity_in_usd

decimal

Pool liquidity in USD

3. Get historical data by ticker_id

https://api.echodex.io/info/historical_trades?ticker_id=???

The /historical_trades is used to return data on historical completed trades for a given market pair.

Query Parameters:

Name
Data Type
Description

ticker_id

string (required)

A ticker_id you want to query data

type

string

To indicate nature of trade - buy/sell

limit

interger

Number of historical trades to retrieve from time of query

start_time

date

Start time from which to query historical trades from

end_time

date

End time for historical trades query

Response:

Name
Data Type
Description

trade_id

string

A unique ID associated with the trade for the currency pair transaction

price

decimal

Transaction price of base asset in target currency

base_volume

decimal

Transaction amount in base pair volume

target_volume

decimal

Transaction amount in target pair volume

trade_timestamp

timestamp

Unix timestamp in milliseconds for when the transaction occurred.

type

string

To indicate nature of trade - buy/sell

Last updated