Hi Mike, I am still testing the candlewriting (0.5). You wrote:
Under what branch are you experiencing this? Are you sure the candleWriter plugin is enabled?
Yes, I have checked this, candleWriter Plugin is enabled and running on latest development branch. For debugging I use kraken, but other exchanges have the same prob. When I start with --import all data is written into postgresql fine. If I start with an empty db in realtime/watcher mode, candles are also written. If I start with candles inside db already, but missing 30 minutes, it is perfoming watcher.getTrades() but these candles never get written into db.
select to_timestamp(start),* from candles_eur_eth order by start desc limit 100
With this query I am monitoring and no new candle is written to postgres
Output:
2018-06-26 20:34:54 (INFO): Setting up Gekko in realtime mode
2018-06-26 20:34:54 (INFO):
2018-06-26 20:34:54 (INFO): Setting up:
2018-06-26 20:34:54 (INFO): Candle writer
2018-06-26 20:34:54 (INFO): Store candles in a database
2018-06-26 20:34:54 (INFO):
2018-06-26 20:34:54 (DEBUG): Check database exists: kraken
2018-06-26 20:34:54 (DEBUG): Database exists: kraken
2018-06-26 20:34:54 (DEBUG): Postgres connected to kraken
2018-06-26 20:34:54 (INFO): Setting up:
2018-06-26 20:34:54 (INFO): Trading Advisor
2018-06-26 20:34:54 (INFO): Calculate trading advice
2018-06-26 20:34:54 (INFO): Using the strategy: Think5eth
2018-06-26 20:34:54 (INFO): The trading method requests 600 minutes of historic data. Checking availablity..
2018-06-26 20:34:54 (DEBUG): endTime: 1530038040 - idealStartTime: 1530002040
2018-06-26 20:34:54 (INFO):
2018-06-26 20:34:54 (DEBUG): DB data available from 1530002040 to 1530037860
2018-06-26 20:34:54 (DEBUG): Available local data:
2018-06-26 20:34:54 (DEBUG): from: 600 minutes ago
2018-06-26 20:34:54 (DEBUG): to: 3 minutes ago
2018-06-26 20:34:54 (INFO): Usable local data available, trying to match with exchange data..
2018-06-26 20:34:54 (DEBUG): Fetching exchange data since 18 minutes ago
2018-06-26 20:34:54 (DEBUG): checkExchangeTrades
2018-06-26 20:34:54 (DEBUG): checkExchangeTrades, calling getTrades now, since: 1530036960000
2018-06-26 20:34:55 (DEBUG): Available exchange data:
2018-06-26 20:34:55 (DEBUG): from: 18 minutes ago
2018-06-26 20:34:55 (DEBUG): to: 1 minutes ago
2018-06-26 20:34:55 (DEBUG): Stitching datasets
2018-06-26 20:34:55 (INFO): Full history locally available. Seeding the trading method with all required historical candles.
2018-06-26 20:34:55 (DEBUG): Seeding with:
2018-06-26 20:34:55 (DEBUG): from: 600 minutes ago
2018-06-26 20:34:55 (DEBUG): to: 19 minutes ago
2018-06-26 20:34:55 (INFO): Setting up:
2018-06-26 20:34:55 (INFO): Mailer
2018-06-26 20:34:55 (INFO): Sends you an email everytime Gekko has new advice.
2018-06-26 20:34:55 (DEBUG): Setup email adviser.
2018-06-26 20:34:55 (INFO):
2018-06-26 20:34:56 (INFO): Send advice via email.
2018-06-26 20:34:56 (INFO): Setting up:
2018-06-26 20:34:56 (INFO): Advice logger
2018-06-26 20:34:56 (INFO):
2018-06-26 20:34:56 (INFO): Setting up:
2018-06-26 20:34:56 (INFO): Paper Trader
2018-06-26 20:34:56 (INFO): Paper trader that simulates fake trades.
2018-06-26 20:34:56 (INFO):
2018-06-26 20:34:56 (INFO): Setting up:
2018-06-26 20:34:56 (INFO): Performance Analyzer
2018-06-26 20:34:56 (INFO): Analyzes performances of trades
2018-06-26 20:34:56 (INFO):
2018-06-26 20:34:56 (INFO): Starting to watch the market: Kraken ETH/EUR
2018-06-26 20:34:56 (DEBUG): scheduling ticks
2018-06-26 20:34:56 (DEBUG): Requested ETH/EUR trade data from Kraken ...
2018-06-26 20:34:56 (DEBUG): Processing 71 new trades. From 2018-06-26 18:16:34 UTC to 2018-06-26 18:33:46 UTC. (17 minutes)
2018-06-26 20:35:16 (DEBUG): Requested ETH/EUR trade data from Kraken ...
2018-06-26 20:35:16 (DEBUG): Processing 2 new trades. From 2018-06-26 18:35:23 UTC to 2018-06-26 18:35:35 UTC. (a few seconds)
2018-06-26 20:35:36 (DEBUG): Requested ETH/EUR trade data from Kraken ...
Under what branch are you experiencing this? Are you sure the candleWriter plugin is enabled?
Yes, I have checked this, candleWriter Plugin is enabled and running on latest development branch. For debugging I use kraken, but other exchanges have the same prob. When I start with --import all data is written into postgresql fine. If I start with an empty db in realtime/watcher mode, candles are also written. If I start with candles inside db already, but missing 30 minutes, it is perfoming watcher.getTrades() but these candles never get written into db.
select to_timestamp(start),* from candles_eur_eth order by start desc limit 100
With this query I am monitoring and no new candle is written to postgres
Output:
2018-06-26 20:34:54 (INFO): Setting up Gekko in realtime mode
2018-06-26 20:34:54 (INFO):
2018-06-26 20:34:54 (INFO): Setting up:
2018-06-26 20:34:54 (INFO): Candle writer
2018-06-26 20:34:54 (INFO): Store candles in a database
2018-06-26 20:34:54 (INFO):
2018-06-26 20:34:54 (DEBUG): Check database exists: kraken
2018-06-26 20:34:54 (DEBUG): Database exists: kraken
2018-06-26 20:34:54 (DEBUG): Postgres connected to kraken
2018-06-26 20:34:54 (INFO): Setting up:
2018-06-26 20:34:54 (INFO): Trading Advisor
2018-06-26 20:34:54 (INFO): Calculate trading advice
2018-06-26 20:34:54 (INFO): Using the strategy: Think5eth
2018-06-26 20:34:54 (INFO): The trading method requests 600 minutes of historic data. Checking availablity..
2018-06-26 20:34:54 (DEBUG): endTime: 1530038040 - idealStartTime: 1530002040
2018-06-26 20:34:54 (INFO):
2018-06-26 20:34:54 (DEBUG): DB data available from 1530002040 to 1530037860
2018-06-26 20:34:54 (DEBUG): Available local data:
2018-06-26 20:34:54 (DEBUG): from: 600 minutes ago
2018-06-26 20:34:54 (DEBUG): to: 3 minutes ago
2018-06-26 20:34:54 (INFO): Usable local data available, trying to match with exchange data..
2018-06-26 20:34:54 (DEBUG): Fetching exchange data since 18 minutes ago
2018-06-26 20:34:54 (DEBUG): checkExchangeTrades
2018-06-26 20:34:54 (DEBUG): checkExchangeTrades, calling getTrades now, since: 1530036960000
2018-06-26 20:34:55 (DEBUG): Available exchange data:
2018-06-26 20:34:55 (DEBUG): from: 18 minutes ago
2018-06-26 20:34:55 (DEBUG): to: 1 minutes ago
2018-06-26 20:34:55 (DEBUG): Stitching datasets
2018-06-26 20:34:55 (INFO): Full history locally available. Seeding the trading method with all required historical candles.
2018-06-26 20:34:55 (DEBUG): Seeding with:
2018-06-26 20:34:55 (DEBUG): from: 600 minutes ago
2018-06-26 20:34:55 (DEBUG): to: 19 minutes ago
2018-06-26 20:34:55 (INFO): Setting up:
2018-06-26 20:34:55 (INFO): Mailer
2018-06-26 20:34:55 (INFO): Sends you an email everytime Gekko has new advice.
2018-06-26 20:34:55 (DEBUG): Setup email adviser.
2018-06-26 20:34:55 (INFO):
2018-06-26 20:34:56 (INFO): Send advice via email.
2018-06-26 20:34:56 (INFO): Setting up:
2018-06-26 20:34:56 (INFO): Advice logger
2018-06-26 20:34:56 (INFO):
2018-06-26 20:34:56 (INFO): Setting up:
2018-06-26 20:34:56 (INFO): Paper Trader
2018-06-26 20:34:56 (INFO): Paper trader that simulates fake trades.
2018-06-26 20:34:56 (INFO):
2018-06-26 20:34:56 (INFO): Setting up:
2018-06-26 20:34:56 (INFO): Performance Analyzer
2018-06-26 20:34:56 (INFO): Analyzes performances of trades
2018-06-26 20:34:56 (INFO):
2018-06-26 20:34:56 (INFO): Starting to watch the market: Kraken ETH/EUR
2018-06-26 20:34:56 (DEBUG): scheduling ticks
2018-06-26 20:34:56 (DEBUG): Requested ETH/EUR trade data from Kraken ...
2018-06-26 20:34:56 (DEBUG): Processing 71 new trades. From 2018-06-26 18:16:34 UTC to 2018-06-26 18:33:46 UTC. (17 minutes)
2018-06-26 20:35:16 (DEBUG): Requested ETH/EUR trade data from Kraken ...
2018-06-26 20:35:16 (DEBUG): Processing 2 new trades. From 2018-06-26 18:35:23 UTC to 2018-06-26 18:35:35 UTC. (a few seconds)
2018-06-26 20:35:36 (DEBUG): Requested ETH/EUR trade data from Kraken ...