Skip to main content

Recent klines

GET /market/recent-klines

REQUIRE SIGN : Yes

This endpoint returns the recent klines of the symbol used

ExchangeAvailable
Binance Spot
Kraken Spot
Gate.IO Spot

Parameters

NameTypeMandatoryDescription
asset1StringYESFirst asset of the symbol. ex : "BTC" of "BTCUSDT"
asset2StingYESSecond asset of the symbol. ex : "USDT" of "BTCUSDT"
limitUintNOLimit of the klines. ex : 100
intervalStringNOInterval of the klines. ex : "1m"

Request Example

curl -X POST 'https://api.exayn.com/v1/market/recent-klines&asset1=BTC&asset2=ETH&signature=xxx' \
-H 'X-API-KEY: <PLACE YOUR PUBLIC KEY>' \
-H 'X-API-EXCHANGE-KEY: <PLACE YOUR EXCHANGE API KEY NAME>' \
-H 'Content-Type: application/json'

Response Example

[
{
"openTime": 1623931200000,
"openPrice": "0.06900000",
"highPrice": "0.06900000",
"lowPrice": "0.06900000",
"closePrice": "0.06900000",
"volume": "0.00000000",
"closeTime": 1623931259999,
"numberOfTrades": 2, // Nullable
},
...
]