added support for backtest ranges to collect more data and initial support for pagination

This commit is contained in:
Gert Wohlgemuth
2018-05-24 14:05:29 -07:00
parent f2b8609127
commit e37e7bd914
5 changed files with 145 additions and 8 deletions

View File

@@ -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}