planet-winter/ccxt-ohlcv-fetcher

Data not writing to sqlite tables

domid opened this issue · 1 comments

domid commented

When I run the command I see that script is returning the right data in the terminal and it creates the .sqlite database file but no data is written to the candles table. The table has 0 rows.

Here is the command I'm running. Any ideas why the database is not being populated?

./ccxt-ohlcv-fetch.py -s 'LTC-PERP' -e ftx -t 15m --since 2021-04-22T00:00:00Z --debug -q

Sample data I see in the terminal window.
FTX LTC-PERP 2021-07-04T19:00:00.000Z [1625425200000, 145.8, 146.42, 145.63, 146.35, 193400.1485] FTX LTC-PERP 2021-07-04T19:15:00.000Z [1625426100000, 146.35, 146.44, 145.96, 146.29, 106234.0017] --------------------------------------Info-------------------------------------- last candle incomplete: dropped it --------------------------------------------------------------------------------

domid commented

session.commit() helps