mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 17:56:34 +08:00
MAINT: remove __getitem__ as alias of __getattr__
This commit is contained in:
@@ -1406,9 +1406,10 @@ class TestBeforeTradingStart(WithDataPortal,
|
||||
assert (context.hd_portfolio.__dict__[k]
|
||||
== bts_portfolio.__dict__[k])
|
||||
record(pos_value=bts_portfolio.positions_value)
|
||||
record(pos_amount=bts_portfolio.positions[sid(3)]['amount'])
|
||||
record(last_sale_price=bts_portfolio.positions[sid(3)]
|
||||
['last_sale_price'])
|
||||
record(pos_amount=bts_portfolio.positions[sid(3)].amount)
|
||||
record(
|
||||
last_sale_price=bts_portfolio.positions[sid(3)].last_sale_price
|
||||
)
|
||||
def handle_data(context, data):
|
||||
if not context.ordered:
|
||||
order(sid(3), 1)
|
||||
|
||||
Reference in New Issue
Block a user