Skip to content

Commit cc51621

Browse files
committed
modify prime assets field
1 parent e0976e6 commit cc51621

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tigeropen/trade/domain/prime_account.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ class PortfolioAccount:
99
"""
1010
prime/paper account assets
1111
"""
12-
def __init__(self, account, timestamp=None):
12+
def __init__(self, account, update_timestamp=None):
1313
"""
1414
:param account:
15-
:param timestamp: asset update timestamp in milliseconds.
15+
:param update_timestamp: asset update timestamp in milliseconds.
1616
"""
1717
self.account = account
18-
self.timestamp = timestamp
18+
self.update_timestamp = update_timestamp
1919
self._segments = dict()
2020

2121
@property
2222
def segments(self):
2323
"""account information by contract type
24-
:return: dict with two keys, 'SEC' for stocks, 'FUT' for futures;
24+
:return: dict with two keys, 'S' for stocks, 'C' for commodity futures;
2525
"""
2626
return self._segments
2727

@@ -33,7 +33,7 @@ def add_segment(self, segment):
3333
return self._segments.get(segment.category)
3434

3535
def __repr__(self):
36-
d = {'account': self.account, 'timestamp': self.timestamp, 'segments': self.segments}
36+
d = {'account': self.account, 'update_timestamp': self.update_timestamp, 'segments': self.segments}
3737
return MODEL_REPR.format(self.__class__.__name__, d)
3838

3939

0 commit comments

Comments
 (0)