pub enum Interest {
Book {
coin: String,
},
Trades {
coin: String,
},
Candles {
coin: String,
interval: Interval,
},
Mids {
dex: String,
},
Context {
coin: String,
},
PerpContexts,
SpotContexts,
State {
user: Address,
},
Orders {
user: Address,
dex: String,
},
Fills {
user: Address,
},
Fundings {
user: Address,
},
Ledger {
user: Address,
},
}Expand description
What a reader needs kept live. A coin is spelled as the venue spells it: BTC, xyz:XYZ100
(HIP-3), @107 or PURR/USDC (spot), #14720 (an outcome side).
Variants§
Book
A market’s whole book, ungrouped: its frames name no grouping, so one book a coin.
Trades
A market’s prints.
Candles
A market’s candles at one interval.
Mids
Every coin’s mid on one perp dex, "" the first, which also carries spot and outcomes.
Context
One market’s context: a perp’s, a spot pair’s or an outcome side’s.
PerpContexts
Every perp’s context on every dex, in one frame.
SpotContexts
Every spot pair’s and outcome side’s context, in one frame.
State
An account’s clearinghouse on every dex, its spot balances and its mode: what its positions, usable balances and worth are read from.
Orders
An account’s resting orders on one dex; spot and outcome orders come with the first.
Fills
Fundings
Ledger
Deposits, withdrawals, transfers and every other ledger row but funding.
Implementations§
Trait Implementations§
impl Eq for Interest
impl StructuralPartialEq for Interest
Auto Trait Implementations§
impl Freeze for Interest
impl RefUnwindSafe for Interest
impl Send for Interest
impl Sync for Interest
impl Unpin for Interest
impl UnsafeUnpin for Interest
impl UnwindSafe for Interest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.