Historical Data

Historical Data

GET https://tradeano.com/api/coingecko/historical_trades?ticker_id={symbol}&limit=10

Example : https://tradeano.com/api/coingecko/historical_trades?ticker_id=BTC_USDT&limit=10

Response Field
Data Type
Description

trade_id

integer

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

Buy – Identifies an ask that was removed from the order book.

Sell – Identifies a bid that was removed from the order book.

Output :-

{
    "buy": [
        {
            "trade_id": 4980,
            "price": "42631.97000000",
            "base_volume": "0.02000000",
            "target_volume": "852.63940000",
            "trade_timestamp": 1703853372,
            "type": "buy"
        },
        {
            "trade_id": 4930,
            "price": "42980.00000000",
            "base_volume": "0.09000000",
            "target_volume": "3868.20000000",
            "trade_timestamp": 1703773966,
            "type": "buy"
        },
        {
            "trade_id": 4875,
            "price": "42524.10000000",
            "base_volume": "0.02300000",
            "target_volume": "978.05430000",
            "trade_timestamp": 1703680844,
            "type": "buy"
        },
        {
            "trade_id": 4822,
            "price": "42771.58000000",
            "base_volume": "0.03000000",
            "target_volume": "1283.14740000",
            "trade_timestamp": 1703594434,
            "type": "buy"
        },
        {
            "trade_id": 4757,
            "price": "43570.02000000",
            "base_volume": "0.11000000",
            "target_volume": "4792.70220000",
            "trade_timestamp": 1703353575,
            "type": "buy"
        }
    ],
    "sell": [
        {
            "trade_id": "4980",
            "price": "42631.97000000",
            "base_volume": "0.02000000",
            "target_volume": "852.63940000",
            "trade_timestamp": 1703853372,
            "type": "sell"
        },
        {
            "trade_id": "4930",
            "price": "42980.00000000",
            "base_volume": "0.09000000",
            "target_volume": "3868.20000000",
            "trade_timestamp": 1703773966,
            "type": "sell"
        },
        {
            "trade_id": "4875",
            "price": "42524.10000000",
            "base_volume": "0.02300000",
            "target_volume": "978.05430000",
            "trade_timestamp": 1703680844,
            "type": "sell"
        },
        {
            "trade_id": "4822",
            "price": "42771.58000000",
            "base_volume": "0.03000000",
            "target_volume": "1283.14740000",
            "trade_timestamp": 1703594434,
            "type": "sell"
        },
        {
            "trade_id": "4757",
            "price": "43570.02000000",
            "base_volume": "0.11000000",
            "target_volume": "4792.70220000",
            "trade_timestamp": 1703353575,
            "type": "sell"
        }
    ]
}

Last updated