Skip to main content

portfolio

Function portfolio 

pub fn portfolio(
    p: &PortfolioResponse,
    cash: Vec<Balance>,
    now: Instant,
) -> Portfolio
Expand description

A [Portfolio] from a GetPortfolio answer and the cash you already have.

Positions come from the answer, with currency holdings left out.