Merge branch 'aws' of https://github.com/berlinguyinca/freqtrade into aws
This commit is contained in:
commit
f962bddf50
@ -264,7 +264,6 @@ class Arguments(object):
|
||||
default=None
|
||||
)
|
||||
|
||||
|
||||
self.parser.add_argument(
|
||||
'--stop-loss',
|
||||
help='Renders stop/loss information in the main chart',
|
||||
@ -310,7 +309,6 @@ class Arguments(object):
|
||||
default=None
|
||||
)
|
||||
|
||||
|
||||
self.parser.add_argument(
|
||||
'--plot-macd',
|
||||
help='Renders a macd chart of the given '
|
||||
@ -353,7 +351,6 @@ class Arguments(object):
|
||||
type=int
|
||||
)
|
||||
|
||||
|
||||
self.parser.add_argument(
|
||||
'-db', '--db-url',
|
||||
help='Show trades stored in database.',
|
||||
|
@ -192,8 +192,6 @@ def cron(event, context):
|
||||
MessageStructure='json'
|
||||
)
|
||||
|
||||
print(result)
|
||||
|
||||
if 'LastEvaluatedKey' in response:
|
||||
return table.scan(
|
||||
ExclusiveStartKey=response['LastEvaluatedKey']
|
||||
@ -207,4 +205,6 @@ def cron(event, context):
|
||||
while 'LastEvaluatedKey' in response:
|
||||
response = fetch(response, table)
|
||||
|
||||
pass
|
||||
return {
|
||||
"statusCode": 200
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ def get(event, context):
|
||||
|
||||
else:
|
||||
return {
|
||||
"statusCode": response['ResponseMetadata']['HTTPStatusCode'],
|
||||
"statusCode": 404,
|
||||
"body": json.dumps(response)
|
||||
}
|
||||
|
||||
@ -260,8 +260,15 @@ def submit_github(event, context):
|
||||
except ImportError as e:
|
||||
print("error: {}".format(e))
|
||||
print("imported/updated: {} strategies".format(strategies))
|
||||
return {
|
||||
"statusCode": 200,
|
||||
"body": json.dumps({"imported": strategies})
|
||||
}
|
||||
else:
|
||||
print("invalid response received \n{}\n".format(result))
|
||||
return {
|
||||
"statusCode": 404,
|
||||
"body": json.dumps({"error": result})
|
||||
}
|
||||
|
||||
|
||||
def get_trades(event, context):
|
||||
|
Loading…
Reference in New Issue
Block a user