Skip to main content

map_state_list

Function map_state_list 

Source
pub fn map_state_list(
    known_cid: Option<ClientOrderId>,
    resp: &OrderStateListResponse,
    now: Instant,
) -> Option<OrderSnapshot>
Expand description

The latest report of an answer with a data list (GET /orders, /orders*/sync) as a snapshot. known_cid is the cid the caller asked about (a status answer is about that order); without it the ids of the answer are used.