mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 20:20:39 +08:00
MAINT: allows contract_multiplier to be non-integer
This commit is contained in:
committed by
Stewart Douglas
parent
6e8a4b8144
commit
de09433fd4
@@ -227,7 +227,7 @@ cdef class Future(Asset):
|
||||
cdef readonly object root_symbol
|
||||
cdef readonly object notice_date
|
||||
cdef readonly object expiration_date
|
||||
cdef readonly int contract_multiplier
|
||||
cdef readonly float contract_multiplier
|
||||
|
||||
def __cinit__(self,
|
||||
int sid, # sid is required
|
||||
@@ -240,7 +240,7 @@ cdef class Future(Asset):
|
||||
object expiration_date=None,
|
||||
object first_traded=None,
|
||||
object exchange="",
|
||||
int contract_multiplier=1):
|
||||
float contract_multiplier=1):
|
||||
|
||||
self.root_symbol = root_symbol
|
||||
self.notice_date = notice_date
|
||||
|
||||
Reference in New Issue
Block a user