changed from form param to json
This commit is contained in:
parent
f5c6e638f1
commit
7e8461b8fe
@ -173,8 +173,8 @@ def _submit_result_to_backend(data):
|
|||||||
print(data)
|
print(data)
|
||||||
try:
|
try:
|
||||||
print(
|
print(
|
||||||
post("{}/trade".format(os.environ.get('BASE_URL', 'https://freq.isaac.international/dev/trade')),
|
post("{}/trade".format(os.environ.get('BASE_URL', 'https://freq.isaac.international/dev')),
|
||||||
data=data))
|
json=data))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("submission ignored: {}".format(e))
|
print("submission ignored: {}".format(e))
|
||||||
|
|
||||||
@ -347,7 +347,7 @@ if __name__ == "__main__":
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "BASE_URL",
|
"name": "BASE_URL",
|
||||||
"value": "https://freq.isaac.international/dev/trade"
|
"value": "https://freq.isaac.international/dev"
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
from freqtrade.aws.trade import store
|
from freqtrade.aws.trade import store, submit
|
||||||
from freqtrade.aws.tables import get_trade_table
|
from freqtrade.aws.tables import get_trade_table
|
||||||
import simplejson as json
|
import simplejson as json
|
||||||
from boto3.dynamodb.conditions import Key, Attr
|
from boto3.dynamodb.conditions import Key, Attr
|
||||||
|
Loading…
Reference in New Issue
Block a user