Exchanges

Exchanges are platforms where cryptocurrencies are traded, such as Binance, Coinbase, and PancakeSwap. We calculate the prices of coins based on the tickers coming from these exchanges.

GET /api/v1/exchanges/{id}

Returns data for a specific cryptocurrency exchange, including volume, supported coins, trading pairs, liquidity, and trust score.

Request parameters:

  • id: the ID of the exchange to retrieve data for (e.g. binance, coinbase)

Example request:

bashCopy codeGET /api/v1/exchanges/binance

Example response:

jsonCopy code{
    "id": "binance",
    "name": "Binance",
    "volume_usd": 1250345.67,
    "supported_coins": [
        {
            "id": "BTC",
            "name": "Bitcoin",
            "symbol": "BTC"
        },
        {
            "id": "ETH",
            "name": "Ethereum",
            "symbol": "ETH"
        }
    ],
    "supported_pairs": [
        {
            "id": "BTC/USD",
            "name": "Bitcoin/US Dollar",
            "base_currency_id": "BTC",
            "quote_currency_id": "USD",
            "last_price": 50000.0,
            "volume": 1234.56,
            "price_change_percent_24h": 2.35
        },
        {
            "id": "ETH/USD",
            "name": "Ethereum/US Dollar",
            "base_currency_id": "ETH",
            "quote_currency_id": "USD",
            "last_price": 1500.0,
            "volume": 789.01,
            "price_change_percent_24h": -1.75
        }
    ],
    "liquidity_score": 0.87,
    "trust_score": 0.95
}

supported_coins

An array of objects representing the coins supported by the exchange. Each object includes the following fields:

  • id: the ID of the coin (e.g. BTC for Bitcoin, ETH for Ethereum)

  • name: the name of the coin (e.g. Bitcoin, Ethereum)

  • symbol: the symbol of the coin (e.g. BTC, ETH)

supported_pairs

An array of objects representing the trading pairs supported by the exchange. Each object includes the following fields:

  • id: the ID of the trading pair (e.g. BTC/USD, ETH/USD)

  • name: the name of the trading pair (e.g. Bitcoin/US Dollar, Ethereum/US Dollar)

  • base_currency_id: the ID of the base currency (e.g. BTC for BTC/USD, ETH for ETH/USD)

  • quote_currency_id: the ID of the quote currency (e.g. USD for BTC/USD, USD for ETH/USD)

  • last_price: the last traded price for the trading pair

  • volume: the 24-hour trading volume for the trading pair

  • price_change_percent_24h: the percentage change in price over the last 24 hours

liquidity_score

A score indicating the liquidity of the exchange, ranging from 0.0 (low liquidity) to 1.0 (high liquidity).

trust_score

A score indicating the trustworthiness of the exchange, ranging from 0.0 (low trust) to 1.0 (high trust). The trust score is based on various factors such as security, user reviews, and regulatory compliance.Coming Soon!

GET /exchanges

Last updated