Get Trades
2 parameters can be used for the trades enpoint:
pairSymbollast
You can send pairSymbol parameter in this format
BTCUSDTMax of 50 latest trades can be used for the
tradesparameter
There are 2 possible options:
Without last parameter
https://api.btcturk.com/api/v2/trades?pairSymbol=BTCUSDT
Default 50 trades of BTCUSDT
With last parameter
https://api.btcturk.com/api/v2/trades?pairSymbol=BTCUSDT&last=30
30 trades of BTCUSDT
Trades
GET https://api.btcturk.com/api/v2/trades
Query Parameters
Name
Type
Description
pairSymbol
string
BTCTRY, ETHTRY etc.
last
integer
Indicates how many last trades you want. Max is 50.
{
"success": true,
"message": null,
"code": 0,
"data": [
{
"pair": BTCTRY,
"pairNormalized": BTC_TRY,
"numerator": BTC,
"denominator": TRY,
"date": 1533650242300,
"tid": "636692470417865271",
"price": "33490",
"amount": "0.00032747"
},
{
"pair": BTCTRY,
"pairNormalized": BTC_TRY,
"numerator": BTC,
"denominator": TRY,
"date": 1533650237143,
"tid": "636692470367947749",
"price": "33245",
"amount": "0.00471901"
}
]
}Code Example
Last updated
Was this helpful?