Lean
$LEAN_TAG$
|
Resolves standardized security definitions such as FIGI, CUSIP, ISIN, SEDOL into a properly mapped Lean Symbol, and vice-versa. More...
Public Member Functions | |
Symbol | CUSIP (string cusip, DateTime tradingDate) |
Converts CUSIP into a Lean Symbol More... | |
string | CUSIP (Symbol symbol) |
Converts a Lean Symbol to its CUSIP number More... | |
Symbol | CompositeFIGI (string compositeFigi, DateTime tradingDate) |
Converts an asset's composite FIGI into a Lean Symbol More... | |
string | CompositeFIGI (Symbol symbol) |
Converts a Lean Symbol to its composite FIGI representation More... | |
Symbol | SEDOL (string sedol, DateTime tradingDate) |
Converts SEDOL into a Lean Symbol More... | |
string | SEDOL (Symbol symbol) |
Converts a Lean Symbol to its SEDOL representation More... | |
Symbol | ISIN (string isin, DateTime tradingDate) |
Converts ISIN into a Lean Symbol More... | |
string | ISIN (Symbol symbol) |
Converts a Lean Symbol to its ISIN representation More... | |
int? | CIK (Symbol symbol) |
Get's the CIK value associated with the given Symbol More... | |
Symbol[] | CIK (int cik, DateTime tradingDate) |
Converts CIK into a Lean Symbol array More... | |
Static Public Member Functions | |
static SecurityDefinitionSymbolResolver | GetInstance (IDataProvider dataProvider=null, string securitiesDefinitionKey=null) |
Gets the single instance of the symbol resolver More... | |
static void | Reset () |
Resets the security definition symbol resolver, forcing a reload when reused. Called in tests where multiple algorithms are run sequentially, and we need to guarantee that every test starts with the same environment. More... | |
Resolves standardized security definitions such as FIGI, CUSIP, ISIN, SEDOL into a properly mapped Lean Symbol, and vice-versa.
Definition at line 33 of file SecurityDefinitionSymbolResolver.cs.
Symbol QuantConnect.Securities.SecurityDefinitionSymbolResolver.CUSIP | ( | string | cusip, |
DateTime | tradingDate | ||
) |
Converts CUSIP into a Lean Symbol
cusip | The Committee on Uniform Securities Identification Procedures (CUSIP) number of a security |
tradingDate | The date that the stock was trading at with the CUSIP provided. This is used to get the ticker of the symbol on this date. |
Definition at line 69 of file SecurityDefinitionSymbolResolver.cs.
string QuantConnect.Securities.SecurityDefinitionSymbolResolver.CUSIP | ( | Symbol | symbol | ) |
Converts a Lean Symbol to its CUSIP number
symbol | The Lean Symbol |
Definition at line 86 of file SecurityDefinitionSymbolResolver.cs.
Symbol QuantConnect.Securities.SecurityDefinitionSymbolResolver.CompositeFIGI | ( | string | compositeFigi, |
DateTime | tradingDate | ||
) |
Converts an asset's composite FIGI into a Lean Symbol
compositeFigi | The composite Financial Instrument Global Identifier (FIGI) of a security |
tradingDate | The date that the stock was trading at with the composite FIGI provided. This is used to get the ticker of the symbol on this date. |
Definition at line 102 of file SecurityDefinitionSymbolResolver.cs.
string QuantConnect.Securities.SecurityDefinitionSymbolResolver.CompositeFIGI | ( | Symbol | symbol | ) |
Converts a Lean Symbol to its composite FIGI representation
symbol | The Lean Symbol |
Definition at line 119 of file SecurityDefinitionSymbolResolver.cs.
Symbol QuantConnect.Securities.SecurityDefinitionSymbolResolver.SEDOL | ( | string | sedol, |
DateTime | tradingDate | ||
) |
Converts SEDOL into a Lean Symbol
sedol | The Stock Exchange Daily Official List (SEDOL) security identifier of a security |
tradingDate | The date that the stock was trading at with the SEDOL provided. This is used to get the ticker of the symbol on this date. |
Definition at line 135 of file SecurityDefinitionSymbolResolver.cs.
string QuantConnect.Securities.SecurityDefinitionSymbolResolver.SEDOL | ( | Symbol | symbol | ) |
Converts a Lean Symbol to its SEDOL representation
symbol | The Lean Symbol |
Definition at line 152 of file SecurityDefinitionSymbolResolver.cs.
Symbol QuantConnect.Securities.SecurityDefinitionSymbolResolver.ISIN | ( | string | isin, |
DateTime | tradingDate | ||
) |
Converts ISIN into a Lean Symbol
isin | The International Securities Identification Number (ISIN) of a security |
tradingDate | The date that the stock was trading at with the ISIN provided. This is used to get the ticker of the symbol on this date. |
Definition at line 168 of file SecurityDefinitionSymbolResolver.cs.
string QuantConnect.Securities.SecurityDefinitionSymbolResolver.ISIN | ( | Symbol | symbol | ) |
Converts a Lean Symbol to its ISIN representation
symbol | The Lean Symbol |
Definition at line 185 of file SecurityDefinitionSymbolResolver.cs.
int? QuantConnect.Securities.SecurityDefinitionSymbolResolver.CIK | ( | Symbol | symbol | ) |
Get's the CIK value associated with the given Symbol
symbol | The Lean Symbol |
Definition at line 195 of file SecurityDefinitionSymbolResolver.cs.
Symbol [] QuantConnect.Securities.SecurityDefinitionSymbolResolver.CIK | ( | int | cik, |
DateTime | tradingDate | ||
) |
Converts CIK into a Lean Symbol array
cik | The Central Index Key (CIK) of a company |
tradingDate | The date that the stock was trading at with the CIK provided. This is used to get the ticker of the symbol on this date. |
Definition at line 211 of file SecurityDefinitionSymbolResolver.cs.
|
static |
Gets the single instance of the symbol resolver
dataProvider | Data provider used to obtain symbol mappings data |
securitiesDefinitionKey | Location to read the securities definition data from |
Definition at line 299 of file SecurityDefinitionSymbolResolver.cs.
|
static |
Resets the security definition symbol resolver, forcing a reload when reused. Called in tests where multiple algorithms are run sequentially, and we need to guarantee that every test starts with the same environment.
Definition at line 317 of file SecurityDefinitionSymbolResolver.cs.