GALANTHUS / ABI FUNCTION REFERENCE
gln_get_holding_market_value
Declared in <galanthus/c_api/gln_capi.h>.
GLN_API const char* GLN_CALL gln_get_holding_market_value(const gln_holding_t* in_holding);
Purpose
Returns the market value when available.
Return
Returns the holding market value as a borrowed materialized string. The market-value currency is exposed separately by gln_get_holding_market_value_currency. Returns NULL when the optional field is not materialized or when the input handle is NULL.
| Type | Nullability | Ownership |
|---|---|---|
const char* | nullable | borrowed |
Parameters
| Name | Direction | Type | Nullability | Ownership |
|---|---|---|---|---|
in_holding | input | const gln_holding_t* | nullable | borrowed |
Market Value Semantics
Returns the holding market value as a borrowed materialized string. The market-value currency is exposed separately by gln_get_holding_market_value_currency.
NULL means the materialized holding row has no market-value field.
Notes
Passing NULL for in_holding is allowed and returns NULL.
NULL means the provider did not supply this optional field for the row.
The returned pointer is borrowed from the owning backend result envelope and becomes invalid when that envelope is destroyed.