Merge remote-tracking branch 'origin/concurrent-exchanges' into concurrent-exchanges

This commit is contained in:
fredfortier
2017-10-20 13:17:10 -04:00
7 changed files with 525 additions and 586 deletions
+8
View File
@@ -0,0 +1,8 @@
from catalyst.api import order, record, symbol
def initialize(context):
context.asset = symbol('btc_usd')
def handle_data(context, data):
order(asset, 1)
record(btc=data.current(context.asset, 'price'))