Skip to main content

Get Trades

Get the latest trades for a pair. This is a public endpoint (no authentication required).

  • pairSymbol is required.
  • last defaults to 50 and must be between 1 and 50.

Trades​

GET /api/v2/trades

Query Parameters​

NameTypeDescription
pairSymbol*stringBTCUSDT, ETHUSDT etc.
lastintegerHow many recent trades to return (default 50). Values above 50 or <= 0 are rejected, not clamped.
{
"success": true,
"message": null,
"code": 0,
"data": [
{
"pair": "BTCUSDT",
"pairNormalized": "BTC_USDT",
"numerator": "BTC",
"denominator": "USDT",
"date": 1790168707937,
"tid": "101963842125958698",
"price": "85400",
"amount": "0.01170258",
"side": "buy"
},
{
"pair": "BTCUSDT",
"pairNormalized": "BTC_USDT",
"numerator": "BTC",
"denominator": "USDT",
"date": 1790168707937,
"tid": "101963842125958699",
"price": "85400",
"amount": "0.00058489",
"side": "buy"
}
]
}

An unknown pair returns 400 PAIR_NOT_FOUND_ERROR (1027).

side is the taker's side: buy means the buyer took liquidity.

Code Example​

curl -X GET "https://api.global.btcturk.com/api/v2/trades?pairSymbol=BTCUSDT&last=30"