Click or drag to resize

ExternalConnectionBaseGetInstrument Method (Dispatcher, FuncInstrumentDefination, Boolean, String, InstrumentType, Exchange, Currency, Double, Boolean, Boolean)

Gets the instrument from database

Namespace:  SharpCharts.Base.Connection
Assembly:  SharpCharts.Base (in SharpCharts.Base.dll) Version: 1.0.0.42 (1.0.0.42)
Syntax
C#
public static Instrument GetInstrument(
	Dispatcher dispatcher,
	Func<InstrumentDefination, bool> isMatch,
	string symbol,
	InstrumentType instrumentType,
	Exchange exchange,
	Currency currency,
	double tickSize,
	bool isExchangeQueried,
	bool isAddedToCache = true
)

Parameters

dispatcher
Type: System.Windows.ThreadingDispatcher
Current dispatcher
isMatch
Type: SystemFuncInstrumentDefination, Boolean
Is compared by the connection. Set null if the match is calculated internally
symbol
Type: SystemString
Symbol
instrumentType
Type: SharpCharts.Base.DataInstrumentType
Instrument type
exchange
Type: SharpCharts.Base.DataExchange
Exchange
currency
Type: SharpCharts.Base.DataCurrency
Currency
tickSize
Type: SystemDouble
Tick size
isExchangeQueried
Type: SystemBoolean
Is queried by exchange
isAddedToCache (Optional)
Type: SystemBoolean
Is real tiem data subscribed

Return Value

Type: Instrument
See Also