Open mkaanerkoc opened 1 year ago
hello, may I ask you a question? I want to get the klines of perpetual futures but I don't know how to code it. I can just get klines of spot, can you help me or give me an e.g? thanks.
hello, may I ask you a question? I want to get the klines of perpetual futures but I don't know how to code it. I can just get klines of spot, can you help me or give me an e.g? thanks.
even though it is not a right place to ask it, check this method https://github.com/sammchardy/python-binance/blob/a354b258e295197ea375363ccbe3c2c49b099582/binance/client.py#L6023
Hoi hoi,
I recognized not so important but quite nice low-hanging fruit in the
futures
wrapper methods.The function below accepts
start_str
as mandatory argument. However, by API definition it is not mandatory and user can choose to retrieve recent data by giving onlylimit
argument ( actually, it is me ).I also checked
spot
methods and this parameter is optional there. so it means underlying '_historical_klines' method is supporting optional start_str argument.I would like to learn if there is any historical reason to do that so, if not, I would suggest to make it optional as well.