added functionality to render trades

This commit is contained in:
Gert Wohlgemuth
2018-05-23 23:11:11 -07:00
parent 07155801bb
commit d66196a290
4 changed files with 93 additions and 7 deletions

View File

@@ -158,6 +158,28 @@ functions:
environment:
strategyTable: ${self:custom.strategyTable}
# loads all trades for a strategy and it's associated pairs
trades:
memorySize: 128
handler: freqtrade/aws/strategy.get_trades
events:
- http:
path: strategies/{user}/{name}/{stake}/{asset}
method: get
cors: true
request:
parameter:
paths:
user: true
name: true
stake: true
asset: true
environment:
strategyTable: ${self:custom.strategyTable}
tradeTable: ${self:custom.tradeTable}
#submits a new strategy to the system
submit:
memorySize: 128