yasstake / rbot

GNU Lesser General Public License v3.0
11 stars 2 forks source link

Bybit 初回ダウンロード時にUNIXTIME0からダウンロードしてしまう。 #194

Closed yasstake closed 4 months ago

yasstake commented 10 months ago

% python3 ./src/test/bybit_test/market.py rbot version: 0.2.15 !!! ABSOLUTELY NO WARRANTY !!! !!! USE AT YOUR OWN RISK !!! See document at https://github.com/yasstake/rusty-bot All rights reserved. (c) 2022-2023 rbot developers / yasstake log download: 1 days archive latest_date: 2024-01-07T00:00:00.000000 log download (url = https://public.bybit.com/trading/BTCUSDT/BTCUSDT2024-01-07.csv.gz) download complete rec = 755643 download_latest fill out with kline data FROM: fix_time: "1970-01-01T00:00:00.000000"/0 TO:unfix_time: "2023-12-26T00:00:59.999999"/1703548859999999 downloaded klines: 1000 rec ^Cterminate 2 <frame at 0x10496fc10, file '/Volumes/yass_data/Project/rbot/./src/test/bybit_test/market.py', line 20, code >

yasstake commented 10 months ago

2回目はうまくいくので、おそらくCommit前のデータを見て処理している。

yasstake commented 9 months ago

find_latest_gapの中でDBがないと0、0と返すため前件ダウンロードになっていた。