fixed some bugs, improved the backtesting and strategy table. Possible now to specify which features we want to use in the backtesting api
This commit is contained in:
parent
1b77d66e2c
commit
07155801bb
@ -188,59 +188,30 @@ functions:
|
|||||||
strategyTable: ${self:custom.strategyTable}
|
strategyTable: ${self:custom.strategyTable}
|
||||||
|
|
||||||
|
|
||||||
#TODO
|
|
||||||
#backtests the strategy
|
#backtests the strategy
|
||||||
backtest:
|
backtest:
|
||||||
memorySize: 256
|
memorySize: 256
|
||||||
handler: freqtrade/aws/backtesting_lambda.run
|
handler: freqtrade/aws/backtesting_lambda.backtest
|
||||||
|
|
||||||
events:
|
events:
|
||||||
- sns: ${self:custom.snsTopic}
|
- sns: ${self:custom.snsTopic}
|
||||||
environment:
|
environment:
|
||||||
topic: ${self:custom.snsTopic}
|
topic: ${self:custom.snsTopic}
|
||||||
tradeTable: ${self:custom.tradeTable}
|
tradeTable: ${self:custom.tradeTable}
|
||||||
|
|
||||||
#TODO
|
|
||||||
# schedules all registered strategies on a daily base
|
|
||||||
daily:
|
|
||||||
memorySize: 128
|
|
||||||
handler: freqtrade/aws/backtesting_lambda.run
|
|
||||||
|
|
||||||
events:
|
|
||||||
- sns: ${self:custom.snsTopic}
|
|
||||||
environment:
|
|
||||||
topic: ${self:custom.snsTopic}
|
|
||||||
strategyTable: ${self:custom.strategyTable}
|
strategyTable: ${self:custom.strategyTable}
|
||||||
|
|
||||||
resources:
|
|
||||||
Resources:
|
|
||||||
|
|
||||||
#####################################################################
|
# schedules all registered strategies on a daily base
|
||||||
# keeps track of all strategfies, associated to their user accounts
|
schedule:
|
||||||
#####################################################################
|
memorySize: 128
|
||||||
FreqStrategyTable:
|
handler: freqtrade/aws/backtesting_lambda.cron
|
||||||
Type: 'AWS::DynamoDB::Table'
|
|
||||||
DeletionPolicy: Retain
|
|
||||||
|
|
||||||
Properties:
|
events:
|
||||||
AttributeDefinitions:
|
- schedule:
|
||||||
-
|
rate: rate(10 minutes)
|
||||||
AttributeName: name
|
enabled: true
|
||||||
AttributeType: S
|
|
||||||
-
|
|
||||||
AttributeName: user
|
|
||||||
AttributeType: S
|
|
||||||
|
|
||||||
|
environment:
|
||||||
KeySchema:
|
topic: ${self:custom.snsTopic}
|
||||||
-
|
tradeTable: ${self:custom.tradeTable}
|
||||||
'AttributeName': 'user'
|
strategyTable: ${self:custom.strategyTable}
|
||||||
'KeyType': 'HASH'
|
|
||||||
-
|
|
||||||
'AttributeName': 'name'
|
|
||||||
'KeyType': 'RANGE'
|
|
||||||
|
|
||||||
ProvisionedThroughput:
|
|
||||||
ReadCapacityUnits: 1
|
|
||||||
WriteCapacityUnits: 1
|
|
||||||
TableName: ${self:custom.strategyTable}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user