fixing backtesting and perisstence

This commit is contained in:
Gert Wohlgemuth
2018-05-23 00:25:38 -07:00
parent c25aa22690
commit 9fd735a3a0
12 changed files with 355 additions and 236 deletions

View File

@@ -609,33 +609,8 @@ def lambda_context():
client = session.client('sns')
dynamodb = boto3.resource('dynamodb')
os.environ["strategyTable"] = "StrategyTable"
dynamodb.create_table(
TableName=os.environ["strategyTable"],
KeySchema=[
{
'AttributeName': 'user',
'KeyType': 'HASH'
},
{
'AttributeName': 'name',
'KeyType': 'RANGE'
}
],
AttributeDefinitions=[
{
'AttributeName': 'user',
'AttributeType': 'S'
}, {
'AttributeName': 'name',
'AttributeType': 'S'
}
],
ProvisionedThroughput={
'ReadCapacityUnits': 1,
'WriteCapacityUnits': 1
}
)
os.environ["tradeTable"] = "TradeTable"
os.environ["topic"] = "UnitTestTopic"
import responses