RiskManager
StockSharp.Algo.Risk
リスク管理責任者
継承元: BaseLogReceiver
実装: IRiskManager, ILogSource, IDisposable, IAsyncPersistable
コンストラクター
プロパティ
メソッド
CloneAsync
public ValueTask<IRiskManager> CloneAsync(CancellationToken cancellationToken)
result = riskManager.CloneAsync(cancellationToken)
Create a copy of the manager.
- cancellationToken
- CancellationToken
戻り値: Copy.
LoadAsync
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskManager.LoadAsync(storage, cancellationToken)
Asynchronously loads the state of the object from the specified SettingsStorage.
- storage
- The SettingsStorage instance from which to load the data.
- cancellationToken
- A token to monitor for cancellation requests.
戻り値: A task that represents the asynchronous load operation.
ProcessRules
public IEnumerable<IRiskRule> ProcessRules(Message message)
result = riskManager.ProcessRules(message)
取引メッセージを処理するため。
- message
- 取引メッセージ。
戻り値: ルールのリスト、メッセージによって活性化される。
SaveAsync
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = riskManager.SaveAsync(storage, cancellationToken)
Asynchronously saves the state of the object to the specified SettingsStorage.
- storage
- The SettingsStorage instance to which to save the data.
- cancellationToken
- A token to monitor for cancellation requests.
戻り値: A task that represents the asynchronous save operation.