Click or drag to resize

ExternalConnectionBaseGetInstrument Method (Dispatcher, FuncInstrumentDefination, Boolean, String, String, InstrumentType, Exchange, Currency, Double, DateTime, Double, Boolean, Boolean, OptionType, Double, 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 name,
	string symbol,
	InstrumentType instrumentType,
	Exchange exchange,
	Currency currency,
	double tickSize,
	DateTime expiryDate,
	double pointValue,
	bool isExchangeQueried,
	bool isWeeklyContract,
	OptionType optionType,
	double strikePrice,
	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
name
Type: SystemString
Name of the Instrument
symbol
Type: SystemString
Symbol
instrumentType
Type: SharpCharts.Base.DataInstrumentType
Instrument
exchange
Type: SharpCharts.Base.DataExchange
Exchange
currency
Type: SharpCharts.Base.DataCurrency
Currency
tickSize
Type: SystemDouble
Tick size
expiryDate
Type: SystemDateTime
Expiry date
pointValue
Type: SystemDouble
Point value
isExchangeQueried
Type: SystemBoolean
Is queried by exchange
isWeeklyContract
Type: SystemBoolean
Is weekly contract
optionType
Type: SharpCharts.Base.DataOptionType
Option type
strikePrice
Type: SystemDouble
Strike price
isAddedToCache (Optional)
Type: SystemBoolean
Is real time data is subscribed

Return Value

Type: Instrument
See Also