mirror of
https://github.com/wassname/catalyst.git
synced 2026-09-09 11:19:23 +08:00
Remove all namedicts.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from protocol_utils import namedict, ndict
|
||||
from protocol_utils import ndict
|
||||
|
||||
__all__ = [
|
||||
namedict,
|
||||
ndict,
|
||||
]
|
||||
|
||||
@@ -55,7 +55,7 @@ def create_trading_environment(year=2006):
|
||||
return trading_environment
|
||||
|
||||
def create_trade(sid, price, amount, datetime):
|
||||
row = zp.namedict({
|
||||
row = zp.ndict({
|
||||
'source_id' : "test_factory",
|
||||
'type' : zp.DATASOURCE_TYPE.TRADE,
|
||||
'sid' : sid,
|
||||
@@ -88,7 +88,7 @@ def create_trade_history(sid, prices, amounts, interval, trading_calendar):
|
||||
return trades
|
||||
|
||||
def create_txn(sid, price, amount, datetime, btrid=None):
|
||||
txn = zp.namedict({
|
||||
txn = zp.ndict({
|
||||
'sid' : sid,
|
||||
'amount' : amount,
|
||||
'dt' : datetime,
|
||||
|
||||
Reference in New Issue
Block a user