Function synthetic_instrument_new
Source #[no_mangle]
pub unsafe extern "C" fn synthetic_instrument_new(
symbol: Symbol,
price_precision: u8,
components_ptr: *const c_char,
formula_ptr: *const c_char,
ts_event: u64,
ts_init: u64,
) -> SyntheticInstrument_API
Expand description
Changes the formula of the synthetic instrument.
§Panics
Panics if the formula update operation fails (unwrap
).
§Safety
This function assumes:
components_ptr
is a valid C string pointer of a JSON format list of strings.
formula_ptr
is a valid C string pointer.