pub struct CombosApi { /* private fields */ }Expand description
Combos namespace — combinatorial (multi-market) positions and their lifecycle activity.
A combo row on /activity (where isCombo is true) carries a conditionId
equal to the combo’s combo_condition_id; pass it to
market_id here to fetch the combo’s legs
and detail.
Implementations§
Source§impl CombosApi
impl CombosApi
Sourcepub fn positions(&self, user_address: impl Into<String>) -> ListComboPositions
pub fn positions(&self, user_address: impl Into<String>) -> ListComboPositions
List a user’s combinatorial positions (GET /v1/positions/combos).
Open positions with a shares_balance below 0.001 are omitted (a dust
floor for sub-0.001 remainders left by “sell all” cashouts); resolved
positions are served regardless of balance.
Sourcepub fn activity(&self, user_address: impl Into<String>) -> ListComboActivity
pub fn activity(&self, user_address: impl Into<String>) -> ListComboActivity
List a user’s combo lifecycle and redeem events
(GET /v1/activity/combos).
Covers split, merge, convert, compress, wrap, unwrap, and redeem — the
combo counterpart to the trade rows on /activity.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CombosApi
impl !UnwindSafe for CombosApi
impl Freeze for CombosApi
impl Send for CombosApi
impl Sync for CombosApi
impl Unpin for CombosApi
impl UnsafeUnpin for CombosApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more