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
地图的绘制方式发生了变化。