mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-27 11:20:45 +08:00
Merge remote-tracking branch 'origin/concurrent-exchanges' into concurrent-exchanges
This commit is contained in:
@@ -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'))
|
||||
Reference in New Issue
Block a user