dxFeed .Net API
5.13.0
dxFeed .Net API library intended to provide market data access for DX clients
|
Type of the candle aggregation period constitutes CandlePeriod type together its actual value. More...
Public Member Functions | |
long | GetPeriodIntervalMillis () |
Returns candle type period in milliseconds as closely as possible. Certain types like SECOND and DAY span a specific number of milliseconds. MONTH, OPTEXP and YEAR are approximate. Candle type period of TICK, VOLUME, PRICE, PRICE_MOMENTUM and PRICE_RENKO is not defined and this method returns 0 . More... | |
override string | ToString () |
Returns string representation of this candle type. The string representation of candle type is the shortest unique prefix of the lower case string that corresponds to its type name. For example, TICK is represented as "t" , while MONTH is represented as "mo" to distinguish it from MINUTE that is represented as "m" . More... | |
Static Public Member Functions | |
static CandleType | Parse (string s) |
Parses string representation of candle type into object. Any string that is a prefix of candle type name can be parsed (including the one that was returned by ToString()) and case is ignored for parsing. More... | |
Static Public Attributes | |
static readonly CandleType | TICK = new CandleType(0, "t", 0) |
Certain number of ticks. More... | |
static readonly CandleType | SECOND = new CandleType(1, "s", 1000L) |
Certain number of seconds. More... | |
static readonly CandleType | MINUTE = new CandleType(2, "m", 60 * 1000L) |
Certain number of minutes. More... | |
static readonly CandleType | HOUR = new CandleType(3, "h", 60 * 60 * 1000L) |
Certain number of hours. More... | |
static readonly CandleType | DAY = new CandleType(4, "d", 24 * 60 * 60 * 1000L) |
Certain number of days. More... | |
static readonly CandleType | WEEK = new CandleType(5, "w", 7 * 24 * 60 * 60 * 1000L) |
Certain number of weeks. More... | |
static readonly CandleType | MONTH = new CandleType(6, "mo", 30 * 24 * 60 * 60 * 1000L) |
Certain number of months. More... | |
static readonly CandleType | OPTEXP = new CandleType(7, "o", 30 * 24 * 60 * 60 * 1000L) |
Certain number of option expirations. More... | |
static readonly CandleType | YEAR = new CandleType(8, "y", 365 * 24 * 60 * 60 * 1000L) |
Certain number of years. More... | |
static readonly CandleType | VOLUME = new CandleType(9, "v", 0) |
Certain volume of trades. More... | |
static readonly CandleType | PRICE = new CandleType(10, "p", 0) |
Certain price change, calculated according to the following rules: More... | |
static readonly CandleType | PRICE_MOMENTUM = new CandleType(11, "pm", 0) |
Certain price change, calculated according to the following rules: More... | |
static readonly CandleType | PRICE_RENKO = new CandleType(12, "pr", 0) |
Certain price change, calculated according to the following rules: More... | |
Properties | |
int | Id [get] |
Get id of candle period type More... | |
Private Member Functions | |
CandleType (int typeId, string typeStr, long periodIntervalMillis) | |
Private Attributes | |
readonly int | typeId |
readonly string | typeStr |
readonly long | periodIntervalMillis |
Static Private Attributes | |
static Dictionary< string, CandleType > | objCash = new Dictionary<string, CandleType>() |
Type of the candle aggregation period constitutes CandlePeriod type together its actual value.
|
inlineprivate |
|
inline |
Returns candle type period in milliseconds as closely as possible. Certain types like SECOND and DAY span a specific number of milliseconds. MONTH, OPTEXP and YEAR are approximate. Candle type period of TICK, VOLUME, PRICE, PRICE_MOMENTUM and PRICE_RENKO is not defined and this method returns 0
.
|
inlinestatic |
Parses string representation of candle type into object. Any string that is a prefix of candle type name can be parsed (including the one that was returned by ToString()) and case is ignored for parsing.
s | string representation of candle type. |
ArgumentException | if the string representation is invalid. |
|
inline |
Returns string representation of this candle type. The string representation of candle type is the shortest unique prefix of the lower case string that corresponds to its type name. For example, TICK is represented as "t"
, while MONTH is represented as "mo"
to distinguish it from MINUTE that is represented as "m"
.
|
static |
Certain number of days.
|
static |
Certain number of hours.
|
static |
Certain number of minutes.
|
static |
Certain number of months.
|
staticprivate |
|
static |
Certain number of option expirations.
|
private |
|
static |
Certain price change, calculated according to the following rules:
|
static |
Certain price change, calculated according to the following rules:
|
static |
Certain price change, calculated according to the following rules:
|
static |
Certain number of seconds.
|
static |
Certain number of ticks.
|
private |
|
private |
|
static |
Certain volume of trades.
|
static |
Certain number of weeks.
|
static |
Certain number of years.
|
get |
Get id of candle period type