wrote doc and started writing schemas

This commit is contained in:
Gert Wohlgemuth 2018-05-12 08:50:33 -07:00
parent 4ffb8e3bbf
commit b199805c5d
3 changed files with 41 additions and 19 deletions

2
freqtrade/aws/schemas.py Normal file
View File

@ -0,0 +1,2 @@

39
freqtrade/aws/strategy.py Normal file
View File

@ -0,0 +1,39 @@
def names(event, context):
"""
returns the names of all registered strategies, but public and private
:param event:
:param context:
:return:
"""
pass
def performance(event, context):
"""
returns the performance of the specified strategy
:param event:
:param context:
:return:
"""
pass
def code(event, context):
"""
returns the code of the requested strategy, if it's public
:param event:
:param context:
:return:
"""
pass
def submit(event, context):
"""
combiles the given strategy and stores it in the internal database
:param event:
:param context:
:return:
"""
pass

View File

@ -120,25 +120,6 @@ functions:
environment:
strategyTable: ${self:custom.strategyTable}
#TODO
# returns the generated Isaac rewards
# for the given strategy
rewards:
memorySize: 128
handler: freqtrade/aws/strategy.rewards
events:
- http:
path: strategies/{name}/rewards
method: get
cors: true
request:
parameter:
paths:
name: true
environment:
strategyTable: ${self:custom.strategyTable}
#TODO
#submits a new strategy to the system
submit: