@@ -12,15 +12,17 @@ class Portfolio(BaseModel):
1212 * trading_symbol: str, trading symbol of the portfolio
1313 * unallocated: float, the size of the trading symbol that is not
1414 allocated. For example, if the trading symbol is USDT and the unallocated
15- is 1000, it means that the portfolio has 1000 USDT that is not allocated to any position.
15+ is 1000, it means that the portfolio has 1000 USDT that is not
16+ allocated to any position.
1617 * net_size: float, net size of the portfolio is the initial balance of the
1718 portfolio plus the all the net gains of the trades. The
1819 * realized: float, the realized gain of the portfolio is the sum of all the
1920 realized gains of the trades.
2021 * total_revenue: float, the total revenue of the portfolio is the sum
2122 of all the orders (price * size)
2223 * total_cost: float, the total cost of the portfolio is the sum of all the
23- costs of the trades (price * size (for buy orders) or -price * size (for sell orders))
24+ costs of the trades (price * size (for buy orders)
25+ or -price * size (for sell orders))
2426 * total_net_gain: float, the total net gain of the portfolio is the sum of
2527 all the net gains of the trades
2628 * total_trade_volume: float, the total trade volume of the
0 commit comments