MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / __init__

Method __init__

projects/Python/proto/proto.py:375–385  ·  view source on GitHub ↗
(self, id=0, symbol="", side=None, type=None, price=float(0.0), volume=float(0.0))

Source from the content-addressed store, hash-verified

373 __slots__ = "id", "symbol", "side", "type", "price", "volume",
374
375 def __init__(self, id=0, symbol="", side=None, type=None, price=float(0.0), volume=float(0.0)):
376 if side is None:
377 side = OrderSide()
378 if type is None:
379 type = OrderType()
380 self.id = id
381 self.symbol = symbol
382 self.side = side
383 self.type = type
384 self.price = price
385 self.volume = volume
386
387 # Struct shallow copy
388 def copy(self, other):

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

OrderSideClass · 0.70
OrderTypeClass · 0.70

Tested by

no test coverage detected