Interface ISecurityMappingStorage
- Namespace
- StockSharp.Algo.Storages
- Assembly
- StockSharp.Algo.dll
Security identifier mappings storage.
public interface ISecurityMappingStorage
- Extension Methods
Methods
Get(string)
Get security identifier mappings for storage.
IEnumerable<SecurityIdMapping> Get(string storageName)
Parameters
storageNamestringStorage name.
Returns
- IEnumerable<SecurityIdMapping>
Security identifiers mapping.
GetStorageNames()
Get storage names.
IEnumerable<string> GetStorageNames()
Returns
- IEnumerable<string>
Storage names.
Init()
Initialize the storage.
IDictionary<string, Exception> Init()
Returns
- IDictionary<string, Exception>
Possible errors with storage names. Empty dictionary means initialization without any issues.
Remove(string, SecurityId)
Remove security mapping.
bool Remove(string storageName, SecurityId stockSharpId)
Parameters
storageNamestringStorage name.
stockSharpIdSecurityIdStockSharp format.
Returns
Save(string, SecurityIdMapping)
Save security identifier mapping.
bool Save(string storageName, SecurityIdMapping mapping)
Parameters
storageNamestringStorage name.
mappingSecurityIdMappingSecurity identifier mapping.
Returns
TryGetAdapterId(string, SecurityId)
Try get AdapterId.
SecurityId? TryGetAdapterId(string storageName, SecurityId stockSharpId)
Parameters
storageNamestringStorage name.
stockSharpIdSecurityIdStockSharp format.
Returns
TryGetStockSharpId(string, SecurityId)
Try get StockSharpId.
SecurityId? TryGetStockSharpId(string storageName, SecurityId adapterId)
Parameters
storageNamestringStorage name.
adapterIdSecurityIdAdapter format.
Returns
- SecurityId?
StockSharpId if identifier exists. Otherwise, null.
Events
Changed
The new native security identifier added to storage.
event Action<string, SecurityIdMapping> Changed