Method
__init__
(self,
underlying: PairType,
expiration: datetime,
size: float,
type: InstrumentType = InstrumentType.FUTURE,
*args, **kwargs)
Source from the content-addressed store, hash-verified
| 135 | size: float |
| 136 | |
| 137 | def __init__(self, |
| 138 | underlying: PairType, |
| 139 | expiration: datetime, |
| 140 | size: float, |
| 141 | type: InstrumentType = InstrumentType.FUTURE, |
| 142 | *args, **kwargs): |
| 143 | self.underlying = underlying |
| 144 | self.expiration = expiration |
| 145 | self.size = size |
| 146 | self.type = type |
| 147 | super(Future, self).__init__(underlying=underlying, |
| 148 | type=type, |
| 149 | expiration=expiration, |
| 150 | size=size) |
| 151 | |
| 152 | @property |
| 153 | def instrument(self): |
Callers
nothing calls this directly
Tested by
no test coverage detected