Provides a string->Symbol mapping to allow for user defined strings to be lifted into a Symbol This is mainly used via the Symbol implicit operator, but also functions that create securities should also call Set to add new mappings
More...
|
static void | Set (string ticker, Symbol symbol) |
| Adds a mapping for the specified ticker More...
|
|
static Symbol | GetSymbol (string ticker) |
| Gets the Symbol object that is mapped to the specified string ticker symbol More...
|
|
static bool | TryGetSymbol (string ticker, out Symbol symbol) |
| Gets the Symbol object that is mapped to the specified string ticker symbol More...
|
|
static string | GetTicker (Symbol symbol) |
| Gets the string ticker symbol that is mapped to the specified Symbol More...
|
|
static bool | TryGetTicker (Symbol symbol, out string ticker) |
| Gets the string ticker symbol that is mapped to the specified Symbol More...
|
|
static bool | TryRemove (Symbol symbol) |
| Removes the mapping for the specified symbol from the cache More...
|
|
static bool | TryRemove (string ticker) |
| Removes the mapping for the specified symbol from the cache More...
|
|
static void | Clear () |
| Clears the current caches More...
|
|
Provides a string->Symbol mapping to allow for user defined strings to be lifted into a Symbol This is mainly used via the Symbol implicit operator, but also functions that create securities should also call Set to add new mappings
Definition at line 29 of file SymbolCache.cs.
◆ Set()
static void QuantConnect.SymbolCache.Set |
( |
string |
ticker, |
|
|
Symbol |
symbol |
|
) |
| |
|
static |
Adds a mapping for the specified ticker
- Parameters
-
ticker | The string ticker symbol |
symbol | The symbol object that maps to the string ticker symbol |
Definition at line 40 of file SymbolCache.cs.
◆ GetSymbol()
static Symbol QuantConnect.SymbolCache.GetSymbol |
( |
string |
ticker | ) |
|
|
static |
Gets the Symbol object that is mapped to the specified string ticker symbol
- Parameters
-
ticker | The string ticker symbol |
- Returns
- The symbol object that maps to the specified string ticker symbol
Definition at line 64 of file SymbolCache.cs.
◆ TryGetSymbol()
static bool QuantConnect.SymbolCache.TryGetSymbol |
( |
string |
ticker, |
|
|
out Symbol |
symbol |
|
) |
| |
|
static |
Gets the Symbol object that is mapped to the specified string ticker symbol
- Parameters
-
ticker | The string ticker symbol |
symbol | The output symbol object |
- Returns
- The symbol object that maps to the specified string ticker symbol
Definition at line 80 of file SymbolCache.cs.
◆ GetTicker()
static string QuantConnect.SymbolCache.GetTicker |
( |
Symbol |
symbol | ) |
|
|
static |
Gets the string ticker symbol that is mapped to the specified Symbol
- Parameters
-
- Returns
- The string ticker symbol that maps to the specified symbol object
Definition at line 92 of file SymbolCache.cs.
◆ TryGetTicker()
static bool QuantConnect.SymbolCache.TryGetTicker |
( |
Symbol |
symbol, |
|
|
out string |
ticker |
|
) |
| |
|
static |
Gets the string ticker symbol that is mapped to the specified Symbol
- Parameters
-
symbol | The symbol object |
ticker | The output string ticker symbol |
- Returns
- The string ticker symbol that maps to the specified symbol object
Definition at line 106 of file SymbolCache.cs.
◆ TryRemove() [1/2]
static bool QuantConnect.SymbolCache.TryRemove |
( |
Symbol |
symbol | ) |
|
|
static |
Removes the mapping for the specified symbol from the cache
- Parameters
-
symbol | The symbol whose mappings are to be removed |
- Returns
- True if the symbol mapping were removed from the cache
Just used for testing
Definition at line 120 of file SymbolCache.cs.
◆ TryRemove() [2/2]
static bool QuantConnect.SymbolCache.TryRemove |
( |
string |
ticker | ) |
|
|
static |
Removes the mapping for the specified symbol from the cache
- Parameters
-
ticker | The ticker whose mappings are to be removed |
- Returns
- True if the symbol mapping were removed from the cache
Just used for testing
Definition at line 134 of file SymbolCache.cs.
◆ Clear()
static void QuantConnect.SymbolCache.Clear |
( |
| ) |
|
|
static |
Clears the current caches
Just used for testing
Definition at line 146 of file SymbolCache.cs.
The documentation for this class was generated from the following file: