I used GET /sapi/v1/asset/assetDividend, and declared a StartTime and endTime, but they seem to get ignored. I was able to increase the limit and declare asset, but can’t limit the time scope.
Has anyone else had this issue? Or am I declaring the time wrong? I’m using Unix epoch in milliseconds.
I’m using the Python API:
import os from binance import Client, ThreadedWebsocketManager, ThreadedDepthCacheManager # Keys retrieve from ENV variables client = Client(os.environ.get('BINANCE_API_KEY'), os.environ.get('BINANCE_SECRET_KEY')) dividends = client.get_asset_dividend_history(startTime=1609426800000, endTime=1616909235000, limit=10) print(dividends)
This code just gives me the 10 latest transactions, even though the startTime is from the beginning of 2021, and endTime is 3 months after that.