added support to get the temp directory

This commit is contained in:
Gert Wohlgemuth 2018-05-24 00:57:18 -07:00
parent 8175fd207e
commit 85fba4fcb8

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