This commit is contained in:
EC2 Default User
2018-06-05 23:35:00 +00:00
3 changed files with 62 additions and 24 deletions

View File

@@ -105,25 +105,6 @@ functions:
environment:
strategyTable: ${self:custom.strategyTable}
#TODO
#returns the performance for the given strategy
performance:
memorySize: 128
handler: freqtrade/aws/strategy.performance
events:
- http:
path: strategies/{user}/{name}/performance
method: get
cors: true
request:
parameter:
paths:
user: true
name: true
environment:
strategyTable: ${self:custom.strategyTable}
#returns the source code of this given strategy
#unless it's private
code:
@@ -169,7 +150,7 @@ functions:
# loads all trades for a strategy and it's associated pairs
trades:
memorySize: 128
handler: freqtrade/aws/strategy.get_trades
handler: freqtrade/aws/trade.get_trades
events:
- http:
path: strategies/{user}/{name}/{stake}/{asset}
@@ -227,6 +208,24 @@ functions:
environment:
tradeTable: ${self:custom.tradeTable}
# stores the received message in the trade table
trade-aggregate:
memorySize: 128
handler: freqtrade/aws/trade.get_aggregated_trades
events:
- http:
path: trades/aggregate/{ticker}/{days}
method: get
cors: true
request:
parameter:
paths:
ticker: true
days: true
environment:
tradeTable: ${self:custom.tradeTable}
#submits a new strategy to the system
submit_github:
memorySize: 128