MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / __init__

Method __init__

Data/stocksim.py:58–70  ·  view source on GitHub ↗
(self,name)

Source from the content-addressed store, hash-verified

56
57class StockTrack(object):
58 def __init__(self,name):
59 self.name = name
60 self.history = []
61 self.price = 0
62 self.time = 0
63 self.index = 0
64 self.open = 0
65 self.low = 0
66 self.high = 0
67 self.volume = 0
68 self.initial = 0
69 self.change = 0
70 self.date = ""
71 def add_data(self,record):
72 self.history.append(record)
73 def reset(self,time):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected