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