Get Trades
Get the latest trades for a pair. This is a public endpoint (no authentication required).
pairSymbolis required.lastdefaults to50and must be between1and50.
Trades
GET /api/v2/trades
Query Parameters
| Name | Type | Description |
|---|---|---|
| pairSymbol* | string | BTCUSDT, ETHUSDT etc. |
| last | integer | How many recent trades to return (default 50). Values above 50 or <= 0 are rejected, not clamped. |
- 200
- 400: bad request
- 400: pair not found
{
"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"
}
]
}
{ "data": null, "success": false, "message": "INVALID_REQUEST_ERROR", "code": 1038 }
{ "data": null, "success": false, "message": "PAIR_NOT_FOUND_ERROR", "code": 1027 }
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
- C#
curl -X GET "https://api.global.btcturk.com/api/v2/trades?pairSymbol=BTCUSDT&last=30"
using var client = new HttpClient { BaseAddress = new Uri("https://api.global.btcturk.com") };
var response = await client.GetAsync("/api/v2/trades?pairSymbol=BTCUSDT&last=30");
Console.WriteLine(await response.Content.ReadAsStringAsync());