fixed some format issues and added better logging

This commit is contained in:
Gert Wohlgemuth 2018-05-24 19:46:11 -07:00
parent 644702a595
commit 203166687b
2 changed files with 5 additions and 8 deletions

View File

@ -58,7 +58,7 @@ def backtest(event, context):
) )
till = datetime.datetime.today() till = datetime.datetime.today()
fromDate = till - datetime.timedelta(days=5) fromDate = till - datetime.timedelta(days=7)
if 'from' in event['body']: if 'from' in event['body']:
fromDate = datetime.datetime.strptime(event['body']['from'], '%Y%m%d') fromDate = datetime.datetime.strptime(event['body']['from'], '%Y%m%d')

View File

@ -218,7 +218,7 @@ functions:
#backtests the strategy #backtests the strategy
backtest: backtest:
memorySize: 2048 memorySize: 128
handler: freqtrade/aws/backtesting_lambda.backtest handler: freqtrade/aws/backtesting_lambda.backtest
events: events:
@ -229,11 +229,8 @@ functions:
tradeTable: ${self:custom.tradeTable} tradeTable: ${self:custom.tradeTable}
strategyTable: ${self:custom.strategyTable} strategyTable: ${self:custom.strategyTable}
usagePlan: # not more than 2 runners at any given time
# we want to use as few lambdas as possible reservedConcurrency: 2
throttle:
burstLimit: 1
rateLimit: 1
# schedules all registered strategies on a daily base # schedules all registered strategies on a daily base
schedule: schedule:
@ -242,7 +239,7 @@ functions:
events: events:
- schedule: - schedule:
rate: rate(240 minutes) rate: rate(1440 minutes)
enabled: true enabled: true
- schedule: - schedule:
rate: rate(5 minutes) rate: rate(5 minutes)