Lean
$LEAN_TAG$
|
Provides the mapping between Lean symbols and brokerage symbols using the symbol properties database More...
Public Member Functions | |
SymbolPropertiesDatabaseSymbolMapper (string market) | |
Creates a new instance of the SymbolPropertiesDatabaseSymbolMapper class. More... | |
string | GetBrokerageSymbol (Symbol symbol) |
Converts a Lean symbol instance to a brokerage symbol More... | |
Symbol | GetLeanSymbol (string brokerageSymbol, SecurityType securityType, string market, DateTime expirationDate=default(DateTime), decimal strike=0, OptionRight optionRight=OptionRight.Call) |
Converts a brokerage symbol to a Lean symbol instance More... | |
bool | IsKnownLeanSymbol (Symbol symbol) |
Checks if the Lean symbol is supported by the brokerage More... | |
SecurityType | GetBrokerageSecurityType (string brokerageSymbol) |
Returns the security type for a brokerage symbol More... | |
bool | IsKnownBrokerageSymbol (string brokerageSymbol) |
Checks if the symbol is supported by the brokerage More... | |
Provides the mapping between Lean symbols and brokerage symbols using the symbol properties database
Definition at line 26 of file SymbolPropertiesDatabaseSymbolMapper.cs.
QuantConnect.Brokerages.SymbolPropertiesDatabaseSymbolMapper.SymbolPropertiesDatabaseSymbolMapper | ( | string | market | ) |
Creates a new instance of the SymbolPropertiesDatabaseSymbolMapper class.
market | The Lean market |
Definition at line 40 of file SymbolPropertiesDatabaseSymbolMapper.cs.
string QuantConnect.Brokerages.SymbolPropertiesDatabaseSymbolMapper.GetBrokerageSymbol | ( | Symbol | symbol | ) |
Converts a Lean symbol instance to a brokerage symbol
symbol | A Lean symbol instance |
Implements QuantConnect.Brokerages.ISymbolMapper.
Definition at line 71 of file SymbolPropertiesDatabaseSymbolMapper.cs.
Symbol QuantConnect.Brokerages.SymbolPropertiesDatabaseSymbolMapper.GetLeanSymbol | ( | string | brokerageSymbol, |
SecurityType | securityType, | ||
string | market, | ||
DateTime | expirationDate = default(DateTime) , |
||
decimal | strike = 0 , |
||
OptionRight | optionRight = OptionRight.Call |
||
) |
Converts a brokerage symbol to a Lean symbol instance
brokerageSymbol | The brokerage symbol |
securityType | The security type |
market | The market |
expirationDate | Expiration date of the security(if applicable) |
strike | The strike of the security (if applicable) |
optionRight | The option right of the security (if applicable) |
Implements QuantConnect.Brokerages.ISymbolMapper.
Definition at line 107 of file SymbolPropertiesDatabaseSymbolMapper.cs.
bool QuantConnect.Brokerages.SymbolPropertiesDatabaseSymbolMapper.IsKnownLeanSymbol | ( | Symbol | symbol | ) |
Checks if the Lean symbol is supported by the brokerage
symbol | The Lean symbol |
Definition at line 137 of file SymbolPropertiesDatabaseSymbolMapper.cs.
SecurityType QuantConnect.Brokerages.SymbolPropertiesDatabaseSymbolMapper.GetBrokerageSecurityType | ( | string | brokerageSymbol | ) |
Returns the security type for a brokerage symbol
brokerageSymbol | The brokerage symbol |
Definition at line 147 of file SymbolPropertiesDatabaseSymbolMapper.cs.
bool QuantConnect.Brokerages.SymbolPropertiesDatabaseSymbolMapper.IsKnownBrokerageSymbol | ( | string | brokerageSymbol | ) |
Checks if the symbol is supported by the brokerage
brokerageSymbol | The brokerage symbol |
Definition at line 177 of file SymbolPropertiesDatabaseSymbolMapper.cs.