binance-us / binance-us-api-docs

Official Documentation for the Binance US APIs and Streams
409 stars 169 forks source link

Python Errors related to Klines #37

Open Choonie12 opened 3 years ago

Choonie12 commented 3 years ago

Using Python Binance Version 0.7.11 and am getting these error codes after about two minutes of querying and using Kline intervals of 5 minutes or more. Appear to be data issues and not sure where/how to change the modules. Has anyone received these error codes, know the fix or where i can fine the information to make the fixes? Many thanks for any information you can provide!!!

Error Messages

File "pandas_libs\index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc File "pandas_libs\index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc File "pandas_libs\hashtable_class_helper.pxi", line 4554, in pandas._libs.hashtable.PyObjectHashTable.get_item File "pandas_libs\hashtable_class_helper.pxi", line 4562, in pandas._libs.hashtable.PyObjectHashTable.get_item KeyError: 4

indexing.py", line 889, in getitemreturn self._getitem_tuple(key) indexing.py", line 1060, in _getitem_tuple return self._getitem_lowerdim(tup)indexing.py", line 807, in _getitem_lowerdim section = self._getitem_axis(key, axis=i)indexing.py", line 1124, in _getitem_axis return self._get_label(key, axis=axis)indexing.py", line 1073, in _get_label return self.obj.xs(label, axis=axis)generic.py", line 3724, in xs return self[key] frame.py", line 3024, in getitem indexer = self.columns.get_loc(key) indexes\base.py", line 3082, in get_loc raise KeyError(key) from err KeyError: 4

PengRusty commented 2 years ago

Hi, Binace.us doesn't provide python library yet, the only official API documentation is https://docs.binance.us/