dxFeed .Net API
5.13.0
dxFeed .Net API library intended to provide market data access for DX clients
|
Defines standard fields of InstrumentProfile and provides data access methods. Please see Instrument Profile Format documentation for complete description. More...
Public Member Functions | |
override string | ToString () |
Returns string representation of field. More... | |
string | GetField (InstrumentProfile ip) |
Returns value of this field for specified profile in textual representation. More... | |
void | SetField (InstrumentProfile ip, string value) |
Sets value of this field (in textual representation) to specified profile. More... | |
Type | GetFieldType () |
Returns type of this field. More... | |
bool | IsNumericField () |
Returns "true" if this field supports numeric representation of a value. More... | |
double | GetNumericField (InstrumentProfile ip) |
Returns value of this field for specified profile in numeric representation. More... | |
void | SetNumericField (InstrumentProfile ip, double value) |
Sets value of this field (in numeric representation) to specified profile. More... | |
Static Public Member Functions | |
static InstrumentProfileField | Find (string name) |
Returns field for specified name or null if field is not found. More... | |
static string | FormatNumber (double d) |
Format number More... | |
static double | ParseNumber (string s) |
Parse number from string. More... | |
static string | FormatDate (int d) |
Convert unix time to specified date fromat and returns its string representation. More... | |
static int | ParseDate (string s) |
Parse date from string. More... | |
Properties | |
string | Name [get, private set] |
Get name of instrument profile field. More... | |
static InstrumentProfileField [] | Values [get] |
Get all default instrument profile fields. More... | |
Private Member Functions | |
InstrumentProfileField (string name) | |
Static Private Member Functions | |
static string | FormatNumberImpl (double d) |
Format number implementztion. More... | |
static DateFormat | GetDateFormat () |
Returns date formatter instance. More... | |
Private Attributes | |
const string | F_TYPE = "TYPE" |
const string | F_SYMBOL = "SYMBOL" |
const string | F_DESCRIPTION = "DESCRIPTION" |
const string | F_LOCAL_SYMBOL = "LOCAL_SYMBOL" |
const string | F_LOCAL_DESCRIPTION = "LOCAL_DESCRIPTION" |
const string | F_COUNTRY = "COUNTRY" |
const string | F_OPOL = "OPOL" |
const string | F_EXCHANGE_DATA = "EXCHANGE_DATA" |
const string | F_EXCHANGES = "EXCHANGES" |
const string | F_CURRENCY = "CURRENCY" |
const string | F_BASE_CURRENCY = "BASE_CURRENCY" |
const string | F_CFI = "CFI" |
const string | F_ISIN = "ISIN" |
const string | F_SEDOL = "SEDOL" |
const string | F_CUSIP = "CUSIP" |
const string | F_ICB = "ICB" |
const string | F_SIC = "SIC" |
const string | F_MULTIPLIER = "MULTIPLIER" |
const string | F_PRODUCT = "PRODUCT" |
const string | F_UNDERLYING = "UNDERLYING" |
const string | F_SPC = "SPC" |
const string | F_ADDITIONAL_UNDERLYINGS = "ADDITIONAL_UNDERLYINGS" |
const string | F_MMY = "MMY" |
const string | F_EXPIRATION = "EXPIRATION" |
const string | F_LAST_TRADE = "LAST_TRADE" |
const string | F_STRIKE = "STRIKE" |
const string | F_OPTION_TYPE = "OPTION_TYPE" |
const string | F_EXPIRATION_STYLE = "EXPIRATION_STYLE" |
const string | F_SETTLEMENT_STYLE = "SETTLEMENT_STYLE" |
const string | F_PRICE_INCREMENTS = "PRICE_INCREMENTS" |
const string | F_TRADING_HOURS = "TRADING_HOURS" |
Static Private Attributes | |
static Dictionary< string, InstrumentProfileField > | fieldsMap = new Dictionary<string, InstrumentProfileField>() |
static readonly ThreadLocal< NumberFormatInfo > | numberFormatter = new ThreadLocal<NumberFormatInfo>() |
static readonly ThreadLocal< DateFormat > | dateFormatter = new ThreadLocal<DateFormat>() |
static readonly string [] | formattedNumbers = new string[20000] |
static readonly string [] | formattedDates = new string[30000] |
static readonly ConcurrentDictionary< string, double > | parsedNumbers = new ConcurrentDictionary<string, double>() |
static readonly ConcurrentDictionary< string, int > | parsedDates = new ConcurrentDictionary<string, int>() |
static readonly long | DAY = 24 * 3600 * 1000 |
Defines standard fields of InstrumentProfile and provides data access methods. Please see Instrument Profile Format documentation for complete description.
|
inlineprivate |
|
inlinestatic |
Returns field for specified name or null if field is not found.
name | Name of field to find. |
System.ArgumentNullException | If name is null. |
|
inlinestatic |
Convert unix time to specified date fromat and returns its string representation.
d | Date time in unix time. |
System.FormatException | |
System.InvalidOperationException | If number formatter error occurs. |
|
inlinestatic |
Format number
d | The number to format. |
System.InvalidOperationException | Can't format number. |
|
inlinestaticprivate |
Format number implementztion.
d | Number to format. |
System.InvalidOperationException | If number formatter error occurs. |
|
inlinestaticprivate |
Returns date formatter instance.
System.InvalidOperationException | If number formatter error occurs. |
|
inline |
Returns value of this field for specified profile in textual representation.
ip | Profile fot which get field. |
System.InvalidOperationException | Can't format certain field. |
|
inline |
Returns type of this field.
|
inline |
Returns value of this field for specified profile in numeric representation.
ip | Profile from get field. |
System.ArgumentException | If this field has no numeric representation. |
|
inline |
Returns "true" if this field supports numeric representation of a value.
|
inlinestatic |
Parse date from string.
s | String representation of date. |
System.ArgumentNullException | |
System.InvalidOperationException | If number formatter error occurs. |
System.FormatException |
|
inlinestatic |
Parse number from string.
s | String representation of number. |
System.ArgumentNullException | |
System.FormatException |
|
inline |
Sets value of this field (in textual representation) to specified profile.
ip | Profile to set field. |
value | Value that set into field. |
System.InvalidOperationException | If text uses wrong format or contains invalid values. |
|
inline |
Sets value of this field (in numeric representation) to specified profile.
ip | Profile tos set value. |
value | Value ehich set to field. |
System.ArgumentException | If this field has no numeric representation |
|
inline |
Returns string representation of field.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticprivate |
|
staticprivate |
|
static |
|
static |
|
static |
|
static |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
staticprivate |
|
static |
|
static |
|
staticprivate |
|
staticprivate |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
getprivate set |
Get name of instrument profile field.
|
staticget |
Get all default instrument profile fields.