4.7.3.1 Access to the symbols from QuoteManager. SymbolStorage

The studies can access the list of symbols available in the database. Access to this service is performed via the SymbolStorage property returned by the ISymbolStorage interface. This interface contains methods for requesting the symbols under different criteria.

MTPA_MCSymbolInfo2[] GetSymbols(string data_feed);

Returns an array of MTPA_MCSymbolInfo2 structures corresponding to all the instruments added into the database from a data source set as a parameter in the data_feed.

Example:
MTPA_MCSymbolInfo2[]  IQFeedSymbols = SymbolStorage.GetSymbols("IQFeed");

Will return an array of all the symbols added from IQFeed that are available in database that can be found in the QuoteManager.

MTPA_MCSymbolInfo2[] GetSymbols(string data_feed, string name);

Will return an array of MTPA_MCSymbolInfo2 structures corresponding to all the instruments available in the database added from the data_feed source and the symbol name = name.

Example:
MTPA_MCSymbolInfo2[]  IQFeedSymbolsMSFT=SymbolStorage.GetSymbols("IQFeed", "MSFT");

Will return an array of all the symbols from the database with IQFeed as data source and the symbol name is MSFT.

MTPA_MCSymbolInfo2[] GetSymbols(string data_feed, string name, ESymbolCategory cat);

Will return an array of MTPA_MCSymbolInfo2 structures corresponding to all the instruments in the base added from the data_feed source with the cat category.

Example:
MTPA_MCSymbolInfo2[]  IQFeedSymbolsMSFTStock = SymbolStorage.GetSymbols("IQFeed", "MSFT", ESymbolCategory.Stock);

Will return an array of all the symbols in the database added from IQFeed with the name MSFT and the category is Stock.

MTPA_MCSymbolInfo2[] GetSymbols(string data_feed, string name, ESymbolCategory _cat, string Exchange);

Returns an array of MTPA_MCSymbolInfo2 structures corresponding to all the instruments in database added from the data_feed source with name symbol name, cat category and Exchange exchange.

Example:
MTPA_MCSymbolInfo2[]  IQFeedSymbolsMSFTStockCME = 
SymbolStorage.GetSymbols("IQFeed", "MSFT", ESymbolCategory.Stock, “CME”);

Will return an array of all the instruments from the database added from IQFeed, with MSFT as the symbol name, Stock as the category and CME as the exchange.

This service can be used for obtaining all the attributes of the symbol based on its key parameters only.