wrote doc and started writing schemas
This commit is contained in:
parent
4ffb8e3bbf
commit
b199805c5d
2
freqtrade/aws/schemas.py
Normal file
2
freqtrade/aws/schemas.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
|
39
freqtrade/aws/strategy.py
Normal file
39
freqtrade/aws/strategy.py
Normal 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
|
@ -120,25 +120,6 @@ functions:
|
|||||||
environment:
|
environment:
|
||||||
strategyTable: ${self:custom.strategyTable}
|
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
|
#TODO
|
||||||
#submits a new strategy to the system
|
#submits a new strategy to the system
|
||||||
submit:
|
submit:
|
||||||
|
Loading…
Reference in New Issue
Block a user