Interface IPositionControllerProvider
Interface described position controller provider.
Namespace: StockSharp.Algo.Matching
Assembly: StockSharp.Algo.dll
Syntax
public interface IPositionControllerProvider
Properties
CommissionManager
Commission manager.
Declaration
ICommissionManager CommissionManager { get; }
Property Value
Type | Description |
---|---|
ICommissionManager |
Controllers
All controllers.
Declaration
IEnumerable<IPositionController> Controllers { get; }
Property Value
Type | Description |
---|---|
IEnumerable<IPositionController> |
Methods
GetController(String)
Get controller for the specified portfolio name.
Declaration
IPositionController GetController(string portfolioName)
Parameters
Type | Name | Description |
---|---|---|
String | portfolioName | Portfolio name. |
Returns
Type | Description |
---|---|
IPositionController | Controller. |
Reset()
Reset state.
Declaration
void Reset()
TryGetController(String, out IPositionController)
Try get controller for the specified portfolio name.
Declaration
bool TryGetController(string portfolioName, out IPositionController controller)
Parameters
Type | Name | Description |
---|---|---|
String | portfolioName | Portfolio name. |
IPositionController | controller | Controller. |
Returns
Type | Description |
---|---|
Boolean | true if controller was found, otherwise, false. |