lightweight-charts-python icon indicating copy to clipboard operation
lightweight-charts-python copied to clipboard

[BUG] Fix incorrect data parsing/naming

Open nickjustincase opened this issue 6 months ago • 0 comments

Expected Behavior

Image Image

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:

  1. time interval s (possible issues if interval less second) - abstract.py.patch_s.txt

  2. time interval ms - abstract.py.patch_ms.txt

Current Behaviour

Image Image

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

nickjustincase avatar Jul 13 '25 21:07 nickjustincase