|
dxFeed Graal Native SDK 3.15.0-rc1
|
The v4 functions and type names of the group Glossary. Every function returns DXFG_EXECUTE_SUCCESSFULLY or DXFG_EXECUTE_FAIL and writes its result to a DXFG_OUT parameter, see The v4 functions. More...
Data Structures | |
| struct | dxfg_v4_double_list |
| A list of doubles: the array holds the values themselves, not pointers to them. More... | |
| struct | dxfg_v4_string_to_double_map_entry_list |
| A list of string to double map entries: the array holds the entries themselves, not pointers to them. More... | |
| struct | dxfg_v4_cfi_value_list |
| A list of CFI value handles. More... | |
Typedefs | |
| typedef dxfg_additional_underlyings_t | dxfg_v4_additional_underlyings_t |
| typedef dxfg_cfi_t | dxfg_v4_cfi_t |
| typedef dxfg_cfi_attribute_t | dxfg_v4_cfi_attribute_t |
| typedef dxfg_cfi_value_t | dxfg_v4_cfi_value_t |
| typedef dxfg_price_increments_t | dxfg_v4_price_increments_t |
| typedef struct dxfg_v4_double_list | dxfg_v4_double_list |
| A list of doubles: the array holds the values themselves, not pointers to them. | |
| typedef struct dxfg_v4_string_to_double_map_entry_list | dxfg_v4_string_to_double_map_entry_list |
| A list of string to double map entries: the array holds the entries themselves, not pointers to them. | |
| typedef struct dxfg_v4_cfi_value_list | dxfg_v4_cfi_value_list |
| A list of CFI value handles. | |
The v4 functions and type names of the group Glossary. Every function returns DXFG_EXECUTE_SUCCESSFULLY or DXFG_EXECUTE_FAIL and writes its result to a DXFG_OUT parameter, see The v4 functions.
https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/AdditionalUnderlyings.html
Use dxfg_Object_toString() to retrieve a string representation.
Use dxfg_Object_equals() to compare for equality.
Use dxfg_Object_hashCode() to get the hash code.
Describes single attribute with all values as defined in the ISO 10962 standard.
https://en.wikipedia.org/wiki/ISO_10962 https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/CFI.Attribute.html
| typedef dxfg_cfi_t dxfg_v4_cfi_t |
A handle of a wrapper class for Classification of Financial Instruments code as defined in ISO 10962 standard. Main purpose is to provide code validity checks and to construct textual explanation of CFI code as defined in the standard via API. This handle does not provide API-accessible constants for specific instrument attributes and values.
https://en.wikipedia.org/wiki/ISO_10962 https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/CFI.html
| typedef struct dxfg_v4_cfi_value_list dxfg_v4_cfi_value_list |
A list of CFI value handles.
A list that a function returns (dxfg_v4_CFI_decipher(), dxfg_v4_CFI_Attribute_getValues()) is released with dxfg_v4_cfi_value_list_release(), which releases every handle of the list too.
| typedef dxfg_cfi_value_t dxfg_v4_cfi_value_t |
Describes single value of single character of CFI code as defined in the ISO 10962 standard.
https://en.wikipedia.org/wiki/ISO_10962 https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/CFI.Value.html
| typedef struct dxfg_v4_double_list dxfg_v4_double_list |
A list of doubles: the array holds the values themselves, not pointers to them.
A list that a function returns (dxfg_v4_PriceIncrements_getPriceIncrements()) is released with dxfg_v4_double_list_release(). A list that the caller passes to a function (dxfg_v4_PriceIncrements_valueOfIncrements()) is only read by it and stays with the caller.
Represents rules for valid price quantization for a given instrument on a certain exchange. These rules are defined as a set of price ranges with associated price increments. Each price increment defines what price values are valid for corresponding price range - valid prices shall be divisible by corresponding price increment.
All price ranges shall be mutually exclusive and they shall cover entire space from 0 to infinity. Therefore all ranges can be represented as a sequence of numbers where increments are interleaved with range limits, with extreme limits (0 and infinity) omitted for short. Negative space (from negative infinity to 0) uses symmetrical price ranges.
There is a special value EMPTY which is used to represent unknown or undefined rules. This value has empty textual representation and is considered to have sole increment with value 0.
See dxfg_PriceIncrements_getText() and dxfg_PriceIncrements_getPriceIncrements() for details about used formats and representations.
NOTE:This class produces precise results for decimal numbers with at most 14 significant digits and at most 14 digits after decimal point.
https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/PriceIncrements.html
| typedef struct dxfg_v4_string_to_double_map_entry_list dxfg_v4_string_to_double_map_entry_list |
A list of string to double map entries: the array holds the entries themselves, not pointers to them.
A list that a function returns (dxfg_v4_AdditionalUnderlyings_getMap()) is released with dxfg_v4_string_to_double_map_entry_list_release(), which frees the keys too. A list that the caller passes to a function (dxfg_v4_AdditionalUnderlyings_valueOfMap()) is only read by it and stays with the caller.
| int32_t dxfg_v4_AdditionalUnderlyings_EMPTY | ( | graal_isolatethread_t * | thread, |
| DXFG_OUT dxfg_v4_additional_underlyings_t ** | emptyAdditionalUnderlyings ) |
Returns an empty additional underlyings (https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/AdditionalUnderlyings.html#EMPTY it has empty text and empty map). The handle of this instance will be written to the passed pointer.
| [in] | thread | The current GraalVM Isolate's thread. |
| [out] | emptyAdditionalUnderlyings | The pointer to result's handle (an empty additional underlyings https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/AdditionalUnderlyings.html#EMPTY) |
| int32_t dxfg_v4_AdditionalUnderlyings_getMap | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_additional_underlyings_t * | additionalUnderlyings, | ||
| DXFG_OUT dxfg_v4_string_to_double_map_entry_list ** | map ) |
Returns internal representation of additional underlyings as a map from underlying symbol to its SPC.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | additionalUnderlyings | The additional underlyings handle. |
| [out] | map | The pointer to the variable that receives the list of the map entries ([string, double] pairs; release it with dxfg_v4_string_to_double_map_entry_list_release()); must not be NULL. |
| int32_t dxfg_v4_AdditionalUnderlyings_getSPC | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_additional_underlyings_t * | additionalUnderlyings, | ||
| const char * | symbol, | ||
| DXFG_OUT double * | spc ) |
Returns SPC for specified underlying symbol or 0 is specified symbol is not found. The spc will be written to the passed pointer.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | additionalUnderlyings | The additional underlyings handle. |
| [in] | symbol | The symbol by which spc will be obtained. |
| [out] | spc | The pointer to spc. |
| int32_t dxfg_v4_AdditionalUnderlyings_getSPCFromText | ( | graal_isolatethread_t * | thread, |
| const char * | text, | ||
| const char * | symbol, | ||
| DXFG_OUT double * | spc ) |
Returns SPC for specified underlying symbol or 0 is specified symbol is not found. The spc will be written to the passed pointer.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | text | The textual representation of the additional underlyings. |
| [in] | symbol | The symbol by which spc will be obtained. |
| [out] | spc | The pointer to spc. |
| int32_t dxfg_v4_AdditionalUnderlyings_getText | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_additional_underlyings_t * | additionalUnderlyings, | ||
| DXFG_OUT char ** | text ) |
Returns textual representation of additional underlyings in the format: Where UNDERLYING is a symbol of underlying instrument and SPC is a number of shares per contract of that underlying. All additional underlyings are listed in the alphabetical order of underlying symbol. In cases when option settles with additional cash the underlying symbol will specify cash symbol and SPC will specify amount of cash. The textual info will be written to the passed pointer.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | additionalUnderlyings | The additional underlyings handle. |
| [out] | text | A pointer to the textual representation of the additional underlyings. |
| int32_t dxfg_v4_AdditionalUnderlyings_valueOf | ( | graal_isolatethread_t * | thread, |
| const char * | text, | ||
| DXFG_OUT dxfg_v4_additional_underlyings_t ** | additionalUnderlyings ) |
Returns an instance of additional underlyings for specified textual representation. The handle of this instance will be written to the passed pointer.
See dxfg_v4_AdditionalUnderlyings_getText() for format specification.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | text | The textual representation. |
| [out] | additionalUnderlyings | The pointer to result's handle (additional underlyings for specified textual representation) |
| int32_t dxfg_v4_AdditionalUnderlyings_valueOfMap | ( | graal_isolatethread_t * | thread, |
| const dxfg_v4_string_to_double_map_entry_list * | map, | ||
| DXFG_OUT dxfg_v4_additional_underlyings_t ** | additionalUnderlyings ) |
Returns an instance of additional underlyings for a map from underlying symbols to their SPC (the internal representation).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | map | The map entries ([string, double] pairs); the list stays with the caller. A NULL list or a list of size 0 is an empty map. A list with a positive size and NULL elements is an error. |
| [out] | additionalUnderlyings | The pointer to the variable that receives the additional underlyings (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| int32_t dxfg_v4_CFI_Attribute_getDescription | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_attribute_t * | cfiAttribute, | ||
| DXFG_OUT char ** | description ) |
Returns description of this attribute.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfiAttribute | The CFI attribute handle. |
| [out] | description | A pointer to the attribute description. |
| int32_t dxfg_v4_CFI_Attribute_getName | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_attribute_t * | cfiAttribute, | ||
| DXFG_OUT char ** | name ) |
Returns short name of this attribute.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfiAttribute | The CFI attribute handle. |
| [out] | name | A pointer to the attribute name. |
| int32_t dxfg_v4_CFI_Attribute_getValues | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_attribute_t * | cfiAttribute, | ||
| DXFG_OUT dxfg_v4_cfi_value_list ** | values ) |
Returns values of this attribute.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfiAttribute | The CFI attribute handle. |
| [out] | values | The pointer to the variable that receives the list of the values (release it with dxfg_v4_cfi_value_list_release()); must not be NULL. |
| int32_t dxfg_v4_CFI_decipher | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_t * | cfi, | ||
| DXFG_OUT dxfg_v4_cfi_value_list ** | values ) |
Returns the values that explain the meaning of each character of the CFI code. The list always has 6 elements, and each value explains the corresponding character. If certain character is inapplicable, unknown or unrecognized - corresponding value will contain reference to this fact.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | values | The pointer to the variable that receives the list of the values (release it with dxfg_v4_cfi_value_list_release()); must not be NULL. |
| int32_t dxfg_v4_CFI_describe | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_t * | cfi, | ||
| DXFG_OUT char ** | description ) |
Returns short textual description of this CFI code by listing names of all values for the characters in this CFI code.
The code will be written to the passed pointer.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | description | A pointer to the description. |
| int32_t dxfg_v4_CFI_EMPTY | ( | graal_isolatethread_t * | thread, |
| DXFG_OUT dxfg_v4_cfi_t ** | emptyCfi ) |
Returns an empty CFI (it has code "XXXXXX"). (https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/CFI.html#EMPTY). The handle of this instance will be written to the passed pointer.
| [in] | thread | The current GraalVM Isolate's thread. |
| [out] | emptyCfi | The pointer to result's handle (an empty CFI https://docs.dxfeed.com/dxfeed/api/com/dxfeed/glossary/CFI.html#EMPTY) |
| int32_t dxfg_v4_CFI_getCategory | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_t * | cfi, | ||
| DXFG_OUT int16_t * | category ) |
Returns single UTF16 character for instrument category - the first character of the CFI code.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | category | A pointer to the result. |
| int32_t dxfg_v4_CFI_getCode | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_t * | cfi, | ||
| DXFG_OUT char ** | code ) |
Returns CFI code. The code always has length of 6 characters. The code will be written to the passed pointer.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | code | A pointer to the CFI code. |
| int32_t dxfg_v4_CFI_getGroup | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_t * | cfi, | ||
| DXFG_OUT int16_t * | group ) |
Returns single UTF16 character for instrument group - the second character of the CFI code.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | group | A pointer to the result. |
| int32_t dxfg_v4_CFI_getIntCode | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | intCode ) |
Returns integer representation of CFI code. The code will be written to the passed pointer.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | intCode | A pointer to the result. |
| int32_t dxfg_v4_CFI_isDebtInstrument | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | isDebtInstrument ) |
Returns 1 if corresponding instrument is a debt instrument, 0 otherwise.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | isDebtInstrument | A pointer to the result. |
| int32_t dxfg_v4_CFI_isEntitlement | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | isEntitlement ) |
Returns 1 if corresponding instrument is an entitlement (right), 0 otherwise.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | isEntitlement | A pointer to the result. |
| int32_t dxfg_v4_CFI_isEquity | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | isEquity ) |
Returns 1 if corresponding instrument is an equity, 0 otherwise.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | isEquity | A pointer to the result. |
| int32_t dxfg_v4_CFI_isFuture | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | isFuture ) |
Returns 1 if corresponding instrument is a future, 0 otherwise.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | isFuture | A pointer to the result. |
| int32_t dxfg_v4_CFI_isOption | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | isOption ) |
Returns 1 if corresponding instrument is an option, 0 otherwise.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | isOption | A pointer to the result. |
| int32_t dxfg_v4_CFI_isOther | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | isOther ) |
Returns 1 if corresponding instrument is an other (miscellaneous) instrument, 0 otherwise.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | isOther | A pointer to the result. |
| int32_t dxfg_v4_CFI_Value_getAttribute | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_value_t * | cfiValue, | ||
| DXFG_OUT dxfg_v4_cfi_attribute_t ** | attribute ) |
Returns attribute that contains this value.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfiValue | The CFI value handle. |
| [out] | attribute | A pointer to the result. |
| int32_t dxfg_v4_CFI_Value_getCode | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_value_t * | cfiValue, | ||
| DXFG_OUT int16_t * | code ) |
Returns single UTF16 character code of this value.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfiValue | The CFI value handle. |
| [out] | code | A pointer to the result. |
| int32_t dxfg_v4_CFI_Value_getDescription | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_value_t * | cfiValue, | ||
| DXFG_OUT char ** | description ) |
Returns description of this value.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfiValue | The CFI value handle. |
| [out] | description | A pointer to the value description. |
| int32_t dxfg_v4_CFI_Value_getName | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_value_t * | cfiValue, | ||
| DXFG_OUT char ** | name ) |
Returns short name of this value.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfiValue | The CFI value handle. |
| [out] | name | A pointer to the value name. |
| int32_t dxfg_v4_cfi_value_list_release | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_cfi_value_list * | values ) |
Releases a list of CFI values that a function returned (dxfg_v4_CFI_decipher(), dxfg_v4_CFI_Attribute_getValues()): releases every CFI value handle, frees the array of the handles and the list itself. To keep a value after that, clone its handle first with dxfg_v4_JavaObjectHandler_clone().
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | values | The list to release. If it is NULL, nothing is done. |
| int32_t dxfg_v4_CFI_valueOf | ( | graal_isolatethread_t * | thread, |
| const char * | code, | ||
| DXFG_OUT dxfg_v4_cfi_t ** | cfi ) |
Returns an instance of CFI for specified CFI code. (https://en.wikipedia.org/wiki/ISO_10962) Accepts short code and expands it to 6 letters by appending "X" at the end. The handle of this instance will be written to the passed pointer.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | code | The CFI code. |
| [out] | cfi | The pointer to result's handle (for specified CFI code) |
| int32_t dxfg_v4_CFI_valueOfIntCode | ( | graal_isolatethread_t * | thread, |
| int32_t | intCode, | ||
| DXFG_OUT dxfg_v4_cfi_t ** | cfi ) |
Returns an instance of CFI for specified integer representation of CFI code. The handle of this instance will be written to the passed pointer.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | intCode | The integer representation of CFI code. |
| [out] | cfi | The pointer to result's handle (for specified CFI code) |
| int32_t dxfg_v4_double_list_release | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_double_list * | list ) |
Releases a list of doubles that a function returned (dxfg_v4_PriceIncrements_getPriceIncrements()): frees the array of the values and the list itself.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | list | The list to release. If it is NULL, nothing is done. |
| int32_t dxfg_v4_PriceIncrements_EMPTY | ( | graal_isolatethread_t * | thread, |
| DXFG_OUT dxfg_v4_price_increments_t ** | emptyPriceIncrements ) |
Returns an empty price increments - it has empty text and sole increment with value 0. The handle of this instance will be written to the passed pointer.
| [in] | thread | The current GraalVM Isolate's thread. |
| [out] | emptyPriceIncrements | The pointer to result's handle. |
| int32_t dxfg_v4_PriceIncrements_getPriceIncrement | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_price_increments_t * | priceIncrements, | ||
| DXFG_OUT double * | priceIncrement ) |
Returns first price increment (for price range adjacent to 0), usually the smallest one. Returns 0 for EMPTY price increments.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | priceIncrements | The price increments handle. |
| [out] | priceIncrement | A pointer to the result. |
| int32_t dxfg_v4_PriceIncrements_getPriceIncrementForPrice | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_price_increments_t * | priceIncrements, | ||
| double | price, | ||
| DXFG_OUT double * | priceIncrement ) |
Returns price increment which shall be applied to the specified price. If price is Not-a-Number (NaN) then first price increment is returned. If price is a breakpoint between two ranges then minimum of upward and downward increments is returned. This method is equivalent to calling dxfg_PriceIncrements_getPriceIncrement3(thread, price_increments, price, 0, &price_increment).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | priceIncrements | The price increments handle. |
| [in] | price | The price. |
| [out] | priceIncrement | A pointer to the result. |
| int32_t dxfg_v4_PriceIncrements_getPriceIncrementForPriceAndDirection | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_price_increments_t * | priceIncrements, | ||
| double | price, | ||
| int32_t | direction, | ||
| DXFG_OUT double * | priceIncrement ) |
Returns price increment which shall be applied to the specified price in the specified direction. If price is Not-a-Number (NaN) then first price increment is returned. If price is a breakpoint between two ranges and direction is 0 then minimum of upward and downward increments is returned.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | priceIncrements | The price increments handle. |
| [in] | price | The price. |
| [in] | direction | The direction. |
| [out] | priceIncrement | A pointer to the result. |
| int32_t dxfg_v4_PriceIncrements_getPriceIncrements | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_price_increments_t * | priceIncrements, | ||
| DXFG_OUT dxfg_v4_double_list ** | increments ) |
Returns internal representation of price increments as a single list of double values. This list specifies all numbers from textual representation (see dxfg_v4_PriceIncrements_getText()) in the same order. Therefore numbers at even positions are increments and numbers at odd positions are upper limits. The list always has odd length - the infinite upper limit of last range is always omitted and the first increment (for price range adjacent to 0) is always included even for EMPTY value.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | priceIncrements | The price increments handle. |
| [out] | increments | The pointer to the variable that receives the list of the values (release it with dxfg_v4_double_list_release()); must not be NULL. |
| int32_t dxfg_v4_PriceIncrements_getPricePrecision | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_price_increments_t * | priceIncrements, | ||
| DXFG_OUT int32_t * | pricePrecision ) |
Returns first price precision (for price range adjacent to 0), usually the largest one. Returns 0 for EMPTY price increments.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | priceIncrements | The price increments handle. |
| [out] | pricePrecision | A pointer to the result. |
| int32_t dxfg_v4_PriceIncrements_getPricePrecisionForPrice | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_price_increments_t * | priceIncrements, | ||
| double | price, | ||
| DXFG_OUT int32_t * | pricePrecision ) |
Returns price precision for the price range which contains specified price. Price precision is a number of decimal digits after decimal point that are needed to represent all valid prices in the given price range. This method returns price precision in the interval [0, 18] inclusive. If price is Not-a-Number (NaN) then first price precision is returned. If price is a breakpoint between two ranges then precision of lower range is returned.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | priceIncrements | The price increments handle. |
| [in] | price | The price. |
| [out] | pricePrecision | A pointer to the result. |
| int32_t dxfg_v4_PriceIncrements_getText | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_price_increments_t * | priceIncrements, | ||
| DXFG_OUT char ** | text ) |
Returns textual representation of price increments in the format:
TEXT ::= "" | LIST LIST ::= INCREMENT | RANGE "; " LIST RANGE ::= INCREMENT " " UPPER_LIMIT
Where INCREMENT is a price increment in the given price range and UPPER_LIMIT is the upper bound of that range. All ranges are listed in the ascending order of upper limits and the last range is considered to extend toward infinity and is therefore specified without upper limit. All increments and limits are finite positive numbers. The case with empty text is a special stub used for EMPTY value, it uses sole increment with value 0.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | priceIncrements | The price increments handle. |
| [out] | text | A pointer to the textual representation of the price increments. |
| int32_t dxfg_v4_PriceIncrements_incrementPrice | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_price_increments_t * | priceIncrements, | ||
| double | price, | ||
| int32_t | direction, | ||
| DXFG_OUT double * | incrementedPrice ) |
Returns specified price incremented in the specified direction by appropriate increment and then rounded to nearest valid value. If price is Not-a-Number (NaN) then NaN is returned. If appropriate price increment is 0 then specified price is returned as is. This method is equivalent to calling dxfg_PriceIncrements_incrementPrice2(thread, priceIncrements, price, direction, 0, &incrementedPrice).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | priceIncrements | The price increments handle. |
| [in] | price | The price. |
| [in] | direction | The direction. |
| [out] | incrementedPrice | A pointer to the result. |
| int32_t dxfg_v4_PriceIncrements_incrementPriceWithStep | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_price_increments_t * | priceIncrements, | ||
| double | price, | ||
| int32_t | direction, | ||
| double | step, | ||
| DXFG_OUT double * | incrementedPrice ) |
Returns specified price incremented in the specified direction by the maximum of specified step and appropriate increment, and then rounded to nearest valid value. If price is Not-a-Number (NaN) then NaN is returned. If both step and appropriate price increment are 0 then specified price is returned as is. Note that step must be positive even for negative directions.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | priceIncrements | The price increments handle. |
| [in] | price | The price. |
| [in] | direction | The direction. |
| [in] | step | The step. |
| [out] | incrementedPrice | A pointer to the result. |
| int32_t dxfg_v4_PriceIncrements_roundPrice | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_price_increments_t * | priceIncrements, | ||
| double | price, | ||
| DXFG_OUT double * | roundedPrice ) |
Returns specified price rounded to nearest valid value. If price is Not-a-Number (NaN) then NaN is returned. If appropriate price increment is 0 then specified price is returned as is. This method is equivalent to calling dxfg_PriceIncrements_roundPrice2(isolate_thread, price_increments, price, 0, &rounded_price).
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | priceIncrements | The price increments handle. |
| [in] | price | The price. |
| [out] | roundedPrice | A pointer to the result. |
| int32_t dxfg_v4_PriceIncrements_roundPriceWithDirection | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_price_increments_t * | priceIncrements, | ||
| double | price, | ||
| int32_t | direction, | ||
| DXFG_OUT double * | roundedPrice ) |
Returns specified price rounded in the specified direction to nearest value that is valid according to price increment rules. If price is Not-a-Number (NaN) then NaN is returned. If appropriate price increment is 0 then specified price is returned as is. If direction is 0 then price is rounded to nearest valid value.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | priceIncrements | The price increments handle. |
| [in] | price | The price. |
| [in] | direction | The direction. |
| [out] | roundedPrice | A pointer to the result. |
| int32_t dxfg_v4_PriceIncrements_roundPriceWithRoundingMode | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_price_increments_t * | priceIncrements, | ||
| double | price, | ||
| dxfg_v4_rounding_mode_t | roundingMode, | ||
| DXFG_OUT double * | roundedPrice ) |
Returns specified price rounded according to specified rounding mode to nearest value that is valid according to price increment rules. If price is Not-a-Number (NaN) then NaN is returned. If appropriate price increment is 0 then specified price is returned as is.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | priceIncrements | The price increments handle. |
| [in] | price | The price. |
| [in] | roundingMode | The rounding mode. |
| [out] | roundedPrice | A pointer to the result. |
| int32_t dxfg_v4_PriceIncrements_valueOf | ( | graal_isolatethread_t * | thread, |
| const char * | text, | ||
| DXFG_OUT dxfg_v4_price_increments_t ** | priceIncrements ) |
Returns an instance of price increments for specified textual representation. The handle of this instance will be written to the passed pointer.
See dxfg_v4_PriceIncrements_getText() for format specification.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | text | The textual representation. |
| [out] | priceIncrements | The pointer to result's handle (price increments for specified textual representation) |
| int32_t dxfg_v4_PriceIncrements_valueOfIncrement | ( | graal_isolatethread_t * | thread, |
| double | increment, | ||
| DXFG_OUT dxfg_v4_price_increments_t ** | priceIncrements ) |
Returns an instance of price increments for specified single increment.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | increment | The single increment. |
| [out] | priceIncrements | The pointer to result's handle. |
| int32_t dxfg_v4_PriceIncrements_valueOfIncrements | ( | graal_isolatethread_t * | thread, |
| const dxfg_v4_double_list * | increments, | ||
| DXFG_OUT dxfg_v4_price_increments_t ** | priceIncrements ) |
Returns an instance of price increments for specified internal representation. See dxfg_v4_PriceIncrements_getPriceIncrements() for details about internal representation.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | increments | The increments in internal representation; the list stays with the caller. A NULL list or a list of size 0 gives EMPTY. A list with a positive size and NULL elements is an error. |
| [out] | priceIncrements | The pointer to the variable that receives the price increments (release it with dxfg_v4_JavaObjectHandler_release()); must not be NULL. |
| int32_t dxfg_v4_string_to_double_map_entry_list_release | ( | graal_isolatethread_t * | thread, |
| dxfg_v4_string_to_double_map_entry_list * | list ) |
Releases a list of string to double map entries that a function returned (dxfg_v4_AdditionalUnderlyings_getMap()): frees the key of every entry, the array of the entries and the list itself.
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | list | The list to release. If it is NULL, nothing is done. |