df-lighter-core 0.0.1-beta

Lighter SDK for Rust: markets, account, trading, transfers, pools and binary options on Lighter and on Robinhood Chain, with exact decimals and the API key signer in Rust. Native and wasm.
Documentation
//! `pool_data`: a pool's trades, orders, positions and shares. Its terms and returns
//! (`pool_info`) are the [`crate::earn::pools::PoolInfo`] the pool reads answer. A public pool's
//! need no auth token; another account's pool, its own.

use crate::account::history::PositionFunding;
use crate::account::{Order, PoolShare, Position};
use crate::markets::Trade;
use crate::utils::AccountIndex;

/// `pool_data`: what a pool's account does.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct PoolData {
    /// The pool's account.
    pub account: AccountIndex,
    pub trades: Vec<Trade>,
    pub orders: Vec<Order>,
    pub positions: Vec<Position>,
    pub shares: Vec<PoolShare>,
    pub fundings: Vec<PositionFunding>,
}