Skip to main content

map_ws_portfolio

Function map_ws_portfolio 

Source
pub fn map_ws_portfolio(
    positions: &[WsPortfolioPosition],
    now: Instant,
) -> Event
Expand description

Maps a portfolio WebSocket message to an Event::Portfolio. The rules are those of map_rest_portfolio. Every message is a full portfolio, not a change.