Lean  $LEAN_TAG$
QuantConnect.Brokerages.ISymbolMapper Interface Reference

Provides the mapping between Lean symbols and brokerage specific symbols. More...

Inheritance diagram for QuantConnect.Brokerages.ISymbolMapper:
[legend]

Public Member Functions

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=0)
 Converts a brokerage symbol to a Lean symbol instance More...
 

Detailed Description

Provides the mapping between Lean symbols and brokerage specific symbols.

Definition at line 23 of file ISymbolMapper.cs.

Member Function Documentation

◆ GetBrokerageSymbol()

string QuantConnect.Brokerages.ISymbolMapper.GetBrokerageSymbol ( Symbol  symbol)

Converts a Lean symbol instance to a brokerage symbol

Parameters
symbolA Lean symbol instance
Returns
The brokerage symbol

Implemented in QuantConnect.Brokerages.SymbolPropertiesDatabaseSymbolMapper.

◆ GetLeanSymbol()

Symbol QuantConnect.Brokerages.ISymbolMapper.GetLeanSymbol ( string  brokerageSymbol,
SecurityType  securityType,
string  market,
DateTime  expirationDate = default(DateTime),
decimal  strike = 0,
OptionRight  optionRight = 0 
)

Converts a brokerage symbol to a Lean symbol instance

Parameters
brokerageSymbolThe brokerage symbol
securityTypeThe security type
marketThe market
expirationDateExpiration date of the security(if applicable)
strikeThe strike of the security (if applicable)
optionRightThe option right of the security (if applicable)
Returns
A new Lean Symbol instance

Implemented in QuantConnect.Brokerages.SymbolPropertiesDatabaseSymbolMapper.


The documentation for this interface was generated from the following file: