IStrategyHost

StockSharp.Algo.Strategies.Decomposed

インフラの抽象化は、直接@Connector@の依存関係を置き換えます。

プロパティ

CurrentTime
public DateTime CurrentTime { get; }
value = iStrategyHost.CurrentTime

現在のUTCの時間。

HasPositions
public bool HasPositions { get; }
value = iStrategyHost.HasPositions

戦略のポジションが存在するかどうか。

StrategyId
public string StrategyId { get; }
value = iStrategyHost.StrategyId

戦略識別子。

メソッド

CanRefreshPnL
public bool CanRefreshPnL(DateTime time)
result = iStrategyHost.CanRefreshPnL(time)

PnL のリフレッシュは、指定された時間に許可されているか。

time
リフレッシュタイム
GetNextTransactionId
public long GetNextTransactionId()
result = iStrategyHost.GetNextTransactionId()

サブスクリプションのトランザクション ID を次のトランザクション ID で取得します。

SendOutMessageAsync
public ValueTask SendOutMessageAsync(Message message, CancellationToken cancellationToken)
result = iStrategyHost.SendOutMessageAsync(message, cancellationToken)

発信メッセージ(状態変更、注文など)を送信します。

message
ご挨拶
cancellationToken
担当: 佐藤 宏