This commit is contained in:
EC2 Default User 2018-05-24 07:57:36 +00:00
commit 6301329921

View File

@ -1,6 +1,8 @@
import datetime import datetime
import logging import logging
import os import os
import tempfile
import boto3 import boto3
import simplejson as json import simplejson as json
from boto3.dynamodb.conditions import Key from boto3.dynamodb.conditions import Key
@ -88,7 +90,7 @@ def backtest(event, context):
"chat_id": "0" "chat_id": "0"
}, },
"initial_state": "running", "initial_state": "running",
"datadir": ".", "datadir": tempfile.gettempdir(),
"experimental": { "experimental": {
"use_sell_signal": response['Items'][0]['use_sell'], "use_sell_signal": response['Items'][0]['use_sell'],
"sell_profit_only": True "sell_profit_only": True