Wrong startTime returned for /futures/data/takerlongshortRatio

Dear Binance,

I’d like to get taker buy/sell volume and combine them with the candles but wrong startTime is returned for /futures/data/takerlongshortRatio.

Here’s the curl test command for takerlongshortRatio :

curl ‘https://fapi.binance.com/futures/data/takerlongshortRatio?symbol=ETHUSDT&period=5m&startTime=1648771200000&limit=1

response:
[{“buySellRatio”:“1.5972”,“sellVol”:“922.5230”,“buyVol”:“1473.4090”,“timestamp”:1649486700000}]

for candles
curl ‘https://fapi.binance.com/fapi/v1/klines?interval=5m&limit=1&symbol=ETHUSDT&startTime=1648771200000

response:
[[1648771200000,“3281.43”,“3288.36”,“3271.90”,“3285.90”,“13463.944”,1648771499999,“44180082.13523”,11910,“7471.159”,“24520683.25900”,“0”]]

As you see, the candle response match with the requested startTime but the taker buy/sell volume response doesn’t.

Is this bug or working as intended?

Thanks,
Yumi

Can I get any update on this?

Thanks

The Long / Short Ratio endpoints require both startTime and endTime parameters to be passed to apply a timestamp filter.

1 Like

Hey Alex,

It works after passing startTime and endTime.

Thanks for the help!