|
dxFeed Graal Native SDK 3.13.0
|
| int32_t dxfg_AdditionalUnderlyings_EMPTY | ( | graal_isolatethread_t * | thread, |
| DXFG_OUT dxfg_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.
Sample:
| [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_AdditionalUnderlyings_getMap | ( | graal_isolatethread_t * | thread, |
| dxfg_additional_underlyings_t * | additionalUnderlyings, | ||
| DXFG_OUT dxfg_string_to_double_map_entry_t ** | mapEntries, | ||
| DXFG_OUT int32_t * | size ) |
Returns internal representation of additional underlyings as a map from underlying symbol to its SPC.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | additionalUnderlyings | The additional underlyings handle. |
| [out] | mapEntries | A pointer to the array of map entries ([string, double] pair). |
| [out] | size | A pointer to the array size. |
| int32_t dxfg_AdditionalUnderlyings_getSPC | ( | 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.
Sample:
| [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_AdditionalUnderlyings_getSPC2 | ( | graal_isolatethread_t * | thread, |
| dxfg_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.
Sample:
| [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_AdditionalUnderlyings_getText | ( | graal_isolatethread_t * | thread, |
| dxfg_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.
Sample:
| [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_AdditionalUnderlyings_valueOf | ( | graal_isolatethread_t * | thread, |
| const char * | text, | ||
| DXFG_OUT dxfg_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_AdditionalUnderlyings_getText() for format specification.
Sample:
| [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_AdditionalUnderlyings_valueOf2 | ( | graal_isolatethread_t * | thread, |
| const dxfg_string_to_double_map_entry_t * | mapEntries, | ||
| int32_t | size, | ||
| DXFG_OUT dxfg_additional_underlyings_t ** | additionalUnderlyings ) |
Returns an instance of additional underlyings for specified internal representation. The handle of this instance will be written to the passed pointer.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | mapEntries | The array of map entries ([string, double] pair). |
| [in] | size | A size of the array. |
| [out] | additionalUnderlyings | The pointer to result's handle (additional underlyings for specified internal representation) |