added support for backtest ranges to collect more data and initial support for pagination
This commit is contained in:
@@ -223,6 +223,7 @@ functions:
|
||||
|
||||
events:
|
||||
- sns: ${self:custom.snsTopic}
|
||||
|
||||
environment:
|
||||
topic: ${self:custom.snsTopic}
|
||||
tradeTable: ${self:custom.tradeTable}
|
||||
@@ -241,6 +242,19 @@ functions:
|
||||
- schedule:
|
||||
rate: rate(5 minutes)
|
||||
enabled: false
|
||||
|
||||
# manual trigger for a longer range
|
||||
# TODO protect with api key
|
||||
- http:
|
||||
path: strategies/backtest/{from}/{till}
|
||||
method: post
|
||||
cors: true
|
||||
request:
|
||||
parameter:
|
||||
paths:
|
||||
from: true
|
||||
till: true
|
||||
|
||||
environment:
|
||||
topic: ${self:custom.snsTopic}
|
||||
tradeTable: ${self:custom.tradeTable}
|
||||
|
||||
Reference in New Issue
Block a user