EchoDEX Documents
  • πŸ‘‹Overview
  • architecture
    • 🌎EcoDEX Ecosystem
    • β˜„οΈEchoDEX ZkEVM
    • ✨Aggregator Liquidity
      • Smart Order Router (SOR) technology
    • πŸ’§Liquidity Protocol
      • EchoDEX AMM
      • Price discovery
  • economy
    • πŸ’΅Fees
    • 🎁Swap To Get xECP
    • πŸ“ˆ$ECP Tokenomics
    • πŸ₯‡$ECP Loyalty Program
    • 🎯xECP
  • API Documents
    • ⛓️Subgraph
    • ⛓️Restful API
  • Go to
    • πŸ’»Our Socials
    • πŸ—ΊοΈRoadmap
    • βœ…Audit Docs
    • βš™οΈTechnical Information
Powered by GitBook
On this page
  • 1. Get all pairs
  • 2. Get all tickers
  • 3. Get historical data by ticker_id
  1. API Documents

Restful API

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

PreviousSubgraphNextOur Socials

Last updated 1 year ago

API URL:

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

⛓️
https://api.echodex.io/info/{path}