ISecurityMappingStorage

StockSharp.Algo.Storages

Single storage for security identifier mappings.

Properties

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

Get all security identifier mappings.

Methods

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

Remove security mapping.

stockSharpId
StockSharp format.

Returns: if mapping was removed. Otherwise, .

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

Save security identifier mapping.

mapping
Security identifier mapping.

Returns: if security mapping was added. If was changed, .

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

Try get AdapterId.

stockSharpId
StockSharp format.

Returns: AdapterId if identifier exists. Otherwise, .

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

Try get StockSharpId.

adapterId
Adapter format.

Returns: StockSharpId if identifier exists. Otherwise, .

Events

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

The mapping changed.