Files
ritmex-bot/docs/nado/developer-resources/api/v2/trades.md
T

2.4 KiB

Trades

Request

{% tabs %} {% tab title="Get pairs" %} GET [ARCHIVE_V2_ENDPOINT]/trades?ticker_id=BTC-PERP_USDT0&limit=10&max_trade_id=1000000 {% endtab %} {% endtabs %}

Request Parameters

ParameterTypeRequiredDescription
ticker_idstringYesIdentifier of a ticker with delimiter to separate base/target.
limitintegerNoNumber of historical trades to retrieve. Defaults to 100. Max of 500.
max_trade_idintegerNoMax trade id to include in the result. Use for pagination.

Response

[
    {
        "product_id": 1,
        "ticker_id": "BTC-PERP_USDT0",
        "trade_id": 6351,
        "price": 112029.5896,
        "base_filled": -0.388,
        "quote_filled": 43467.4807648,
        "timestamp": 1757335618,
        "trade_type": "sell"
    },
    {
        "product_id": 1,
        "ticker_id": "BTC-PERP_USDT0",
        "trade_id": 6350,
        "price": 112032.58899999999,
        "base_filled": -0.179,
        "quote_filled": 20053.833431,
        "timestamp": 1757335618,
        "trade_type": "sell"
    }
]

Response Fields

Field NameTypeNullableDescription
product_idu32NoUnique identifier for the product.
ticker_idstringNoIdentifier of a ticker with delimiter to separate base/target.
trade_idintegerNoA unique ID associated with the trade for the currency pair transaction.
pricedecimalNoTrade price of base asset in target currency.
base_filleddecimalNoAmount of base volume filled in trade.
quote_filleddecimalNoAmount of quote/target volume filled in trade.
timestampintegerNoUnix timestamp in seconds for when the transaction occurred.
trade_typestringNoIndicates the type of the transaction that was completed ("buy" or "sell").