From b199805c5d722921659be30f0f444c9c11d636b1 Mon Sep 17 00:00:00 2001 From: Gert Wohlgemuth Date: Sat, 12 May 2018 08:50:33 -0700 Subject: [PATCH] wrote doc and started writing schemas --- freqtrade/aws/schemas.py | 2 ++ freqtrade/aws/strategy.py | 39 +++++++++++++++++++++++++++++++++++++++ serverless.yml | 19 ------------------- 3 files changed, 41 insertions(+), 19 deletions(-) create mode 100644 freqtrade/aws/schemas.py create mode 100644 freqtrade/aws/strategy.py diff --git a/freqtrade/aws/schemas.py b/freqtrade/aws/schemas.py new file mode 100644 index 000000000..139597f9c --- /dev/null +++ b/freqtrade/aws/schemas.py @@ -0,0 +1,2 @@ + + diff --git a/freqtrade/aws/strategy.py b/freqtrade/aws/strategy.py new file mode 100644 index 000000000..5816411fd --- /dev/null +++ b/freqtrade/aws/strategy.py @@ -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 diff --git a/serverless.yml b/serverless.yml index 5c4a99a68..c0d6d86f7 100644 --- a/serverless.yml +++ b/serverless.yml @@ -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: