File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments