|
dxFeed Graal Native SDK 3.12.0
|
| int32_t dxfg_CFI_decipher | ( | graal_isolatethread_t * | thread, |
| dxfg_cfi_t * | cfi, | ||
| DXFG_OUT dxfg_cfi_value_t ** | values, | ||
| DXFG_OUT int32_t * | size ) |
Returns array of values (dxfg_cfi_value_t) that explain meaning of each character in the CFI code. Array always has length of 6 and each value explains corresponding character. If certain character is inapplicable, unknown or unrecognized - corresponding value will contain reference to this fact.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | values | A pointer to the result. |
| [out] | size | A pointer to the result size. |
| int32_t dxfg_CFI_describe | ( | graal_isolatethread_t * | thread, |
| dxfg_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.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | description | A pointer to the description. |
| int32_t dxfg_CFI_EMPTY | ( | graal_isolatethread_t * | thread, |
| DXFG_OUT dxfg_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.
Sample:
| [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_CFI_getCategory | ( | graal_isolatethread_t * | thread, |
| dxfg_cfi_t * | cfi, | ||
| DXFG_OUT int16_t * | category ) |
Returns single UTF16 character for instrument category - the first character of the CFI code.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | category | A pointer to the result. |
| int32_t dxfg_CFI_getCode | ( | graal_isolatethread_t * | thread, |
| dxfg_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.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | code | A pointer to the CFI code. |
| int32_t dxfg_CFI_getGroup | ( | graal_isolatethread_t * | thread, |
| dxfg_cfi_t * | cfi, | ||
| DXFG_OUT int16_t * | group ) |
Returns single UTF16 character for instrument group - the second character of the CFI code.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | group | A pointer to the result. |
| int32_t dxfg_CFI_getIntCode | ( | graal_isolatethread_t * | thread, |
| dxfg_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | intCode ) |
Returns integer representation of CFI code. The code will be written to the passed pointer.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | intCode | A pointer to the result. |
| int32_t dxfg_CFI_isDebtInstrument | ( | graal_isolatethread_t * | thread, |
| dxfg_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | isDebtInstrument ) |
Returns 1 if corresponding instrument is a debt instrument, 0 otherwise.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | isDebtInstrument | A pointer to the result. |
| int32_t dxfg_CFI_isEntitlement | ( | graal_isolatethread_t * | thread, |
| dxfg_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | isEntitlement ) |
Returns 1 if corresponding instrument is an entitlement (right), 0 otherwise.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | isEntitlement | A pointer to the result. |
| int32_t dxfg_CFI_isEquity | ( | graal_isolatethread_t * | thread, |
| dxfg_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | isEquity ) |
Returns 1 if corresponding instrument is an equity, 0 otherwise.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | isEquity | A pointer to the result. |
| int32_t dxfg_CFI_isFuture | ( | graal_isolatethread_t * | thread, |
| dxfg_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | isFuture ) |
Returns 1 if corresponding instrument is a future, 0 otherwise.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | isFuture | A pointer to the result. |
| int32_t dxfg_CFI_isOption | ( | graal_isolatethread_t * | thread, |
| dxfg_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | isOption ) |
Returns 1 if corresponding instrument is an option, 0 otherwise.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | isOption | A pointer to the result. |
| int32_t dxfg_CFI_isOther | ( | graal_isolatethread_t * | thread, |
| dxfg_cfi_t * | cfi, | ||
| DXFG_OUT int32_t * | isOther ) |
Returns 1 if corresponding instrument is an other (miscellaneous) instrument, 0 otherwise.
Sample:
| [in] | thread | The current GraalVM Isolate's thread. |
| [in] | cfi | The CFI handle. |
| [out] | isOther | A pointer to the result. |
| int32_t dxfg_CFI_valueOf | ( | graal_isolatethread_t * | thread, |
| const char * | code, | ||
| DXFG_OUT dxfg_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.
Sample:
| [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_CFI_valueOf2 | ( | graal_isolatethread_t * | thread, |
| int32_t | intCode, | ||
| DXFG_OUT dxfg_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.
Sample:
| [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) |