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

* Updates after pythonNet rebase

* Bump pythonNet version 2.0.12

* Fix exception types being thrown
This commit is contained in:
Martin-Molinero
2022-05-02 14:38:50 -03:00
committed by GitHub
parent 64125668db
commit b9d3d99917
64 changed files with 384 additions and 347 deletions
@@ -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):