Method
__init__
(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): |
Tested by
no test coverage detected