Bump pythonNet version 2.0.12 (#6310)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
* Updates after pythonNet rebase * Bump pythonNet version 2.0.12 * Fix exception types being thrown
This commit is contained in:
@@ -58,6 +58,7 @@ class CustomModelsAlgorithm(QCAlgorithm):
|
||||
# If we want to use methods from other models, you need to inherit from one of them
|
||||
class CustomFillModel(ImmediateFillModel):
|
||||
def __init__(self, algorithm):
|
||||
super().__init__()
|
||||
self.algorithm = algorithm
|
||||
self.absoluteRemainingByOrderId = {}
|
||||
self.random = Random(387510346)
|
||||
@@ -85,6 +86,7 @@ class CustomFillModel(ImmediateFillModel):
|
||||
|
||||
class CustomFeeModel(FeeModel):
|
||||
def __init__(self, algorithm):
|
||||
super().__init__()
|
||||
self.algorithm = algorithm
|
||||
|
||||
def GetOrderFee(self, parameters):
|
||||
@@ -107,6 +109,7 @@ class CustomSlippageModel:
|
||||
|
||||
class CustomBuyingPowerModel(BuyingPowerModel):
|
||||
def __init__(self, algorithm):
|
||||
super().__init__()
|
||||
self.algorithm = algorithm
|
||||
|
||||
def HasSufficientBuyingPowerForOrder(self, parameters):
|
||||
|
||||
Reference in New Issue
Block a user