optimizing trade db handling to lower monthly cost

This commit is contained in:
Gert Wohlgemuth
2018-06-02 14:44:09 -07:00
parent cd462db993
commit 13b533820f
6 changed files with 161 additions and 90 deletions

View File

@@ -631,6 +631,7 @@ def lambda_context():
os.environ["strategyTable"] = "StrategyTable"
os.environ["tradeTable"] = "TradeTable"
os.environ["topic"] = "UnitTestTopic"
os.environ["BASE_URL"] = "http://127.0.0.1/test"
client = session.client('sns')
client.create_topic(Name=os.environ["topic"])
@@ -643,7 +644,7 @@ def lambda_context():
responses.add_passthru('https://api.github.com')
responses.add_passthru('https://bittrex.com')
responses.add_passthru('https://api.binance.com')
# here we will define required tables later
yield
sns.stop()
dynamo.stop()