pub struct PlatformPortfolioResponse {Show 17 fields
pub schema_version: u16,
pub contract_version: String,
pub wallet_address: String,
pub server_time_ms: u64,
pub observed_at_ms: u64,
pub observed_slot: String,
pub market_count: u32,
pub balances: Vec<PlatformPortfolioBalance>,
pub positions: Vec<PlatformPortfolioPosition>,
pub open_orders: Vec<PlatformPortfolioOrder>,
pub recent_fills: Vec<PlatformPortfolioFill>,
pub unavailable_market_ids: Vec<String>,
pub equity_usd_micros: Option<String>,
pub available_usd_micros: Option<String>,
pub locked_usd_micros: Option<String>,
pub valuation_complete: bool,
pub unpriced_asset_ids: Vec<String>,
}Expand description
The owner’s whole account in one public read, by wallet address: balances, per-market positions, open orders, and recent fills across every live market, plus USD totals. No signature and no market selection is needed. Amounts are exact atomic strings; USD totals are null whenever any held asset lacks a fresh public mark, so a partial valuation is never presented as complete.
Fields§
§schema_version: u16§contract_version: String§wallet_address: String§server_time_ms: u64§observed_at_ms: u64When the on-chain state behind this snapshot was observed.
observed_slot: StringChain slot the snapshot was observed at.
market_count: u32Live markets included in the snapshot.
balances: Vec<PlatformPortfolioBalance>§positions: Vec<PlatformPortfolioPosition>§open_orders: Vec<PlatformPortfolioOrder>Every open order across every live market.
recent_fills: Vec<PlatformPortfolioFill>Recent fills across every live market, newest first (bounded).
Markets whose orders and fills could not be read for this snapshot; balances and positions are still complete.
equity_usd_micros: Option<String>Sum of every balance’s value_usd_micros; null unless the valuation is complete.
available_usd_micros: Option<String>Exact USD value of every available balance; null unless the valuation is complete.
locked_usd_micros: Option<String>equity_usd_micros - available_usd_micros; null unless the valuation is complete.
valuation_complete: bool§unpriced_asset_ids: Vec<String>Trait Implementations§
Source§impl Clone for PlatformPortfolioResponse
impl Clone for PlatformPortfolioResponse
Source§fn clone(&self) -> PlatformPortfolioResponse
fn clone(&self) -> PlatformPortfolioResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more