nautilus_model::ffi::instruments::synthetic

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

ยงSafety

  • Assumes components_ptr is a valid C string pointer of a JSON format list of strings.
  • Assumes formula_ptr is a valid C string pointer.