nautilus_model::ffi::data::depth

Function orderbook_depth10_new

Source
#[no_mangle]
pub unsafe extern "C" fn orderbook_depth10_new(
    instrument_id: InstrumentId,
    bids_ptr: *const BookOrder,
    asks_ptr: *const BookOrder,
    bid_counts_ptr: *const u32,
    ask_counts_ptr: *const u32,
    flags: u8,
    sequence: u64,
    ts_event: UnixNanos,
    ts_init: UnixNanos,
) -> OrderBookDepth10
Expand description

ยงSafety

  • Assumes bids and asks are valid pointers to arrays of BookOrder of length 10.
  • Assumes bid_counts and ask_counts are valid pointers to arrays of u32 of length 10.