lightweight-charts-python
lightweight-charts-python copied to clipboard
[BUG] Fix incorrect data parsing/naming
Expected Behavior
Possible fix:
- def _set_interval(self, df: pd.DataFrame)
- def _df_datetime_format(self, df: pd.DataFrame, exclude_lowercase=None)
- def _single_datetime_format(self, arg) -> float
patches:
-
time interval s (possible issues if interval less second) - abstract.py.patch_s.txt
-
time interval ms - abstract.py.patch_ms.txt
Current Behaviour
Example of 1M history data: history_BTCUSDT_1M.csv
Reproducible Example
1. 1M history for > 1 month. eg. 08-10.2022:
2. Last 1M data completed (next 5m tick is new month).
3. Mew 1M data collects by lower timeframes.
Environment
- OS: any
- Library: 2.1