ISecurityMappingStorage

StockSharp.Algo.Storages

金融商品識別子マッピングのための単一のストレージ。

プロパティ

Mappings
public IEnumerable<SecurityIdMapping> Mappings { get; }
value = iSecurityMappingStorage.Mappings

金融商品識別子マッピングをすべて取得します。

メソッド

Remove
public bool Remove(SecurityId stockSharpId)
result = iSecurityMappingStorage.Remove(stockSharpId)

金融商品マッピングを削除します。

stockSharpId
StockSharp format.

戻り値: マッピングが削除された場合。 それ以外の場合は、 .

Save
public bool Save(SecurityIdMapping mapping)
result = iSecurityMappingStorage.Save(mapping)

金融商品識別子マッピングを保存します。

mapping
金融商品識別子マッピング。

戻り値: 金融商品マッピングを追加した場合。変更があった場合は、.

TryGetAdapterId
public SecurityId? TryGetAdapterId(SecurityId stockSharpId)
result = iSecurityMappingStorage.TryGetAdapterId(stockSharpId)

Try get AdapterId.

stockSharpId
StockSharp format.

戻り値: AdapterId識別子が存在する場合。 それ以外の場合は、.

TryGetStockSharpId
public SecurityId? TryGetStockSharpId(SecurityId adapterId)
result = iSecurityMappingStorage.TryGetStockSharpId(adapterId)

Try get StockSharpId.

adapterId
アダプターのフォーマット。

戻り値: StockSharpId識別子が存在する場合。 それ以外の場合は、.

イベント

Changed
public event Action<SecurityIdMapping> Changed
iSecurityMappingStorage.Changed += handler

マッピングが変更されました。