pub enum AssetKind {
Perp,
Spot,
Hip3Perp,
Outcome,
}Expand description
What an asset id names.
Variants§
Perp
A perp on the main dex: its index in meta.universe.
Spot
A spot pair: 10000 + pair index.
Hip3Perp
A perp on a HIP-3 dex: 100000 + dex * 10000 + index.
Outcome
A HIP-4 outcome side: 100000000 + 10 * outcome + side.
Implementations§
Source§impl AssetKind
impl AssetKind
pub const ALL: [AssetKind; 4]
pub const fn of(id: u32) -> AssetKind
Sourcepub const fn builder_cap(self) -> BuilderFee
pub const fn builder_cap(self) -> BuilderFee
The most a builder may take on an order of this kind: 0.1% on a perp, main dex or HIP-3, and 1% on spot. HIP-4 takes builder codes as spot does, per Hyperliquid’s HIP-4 page.
Trait Implementations§
impl Copy for AssetKind
impl Eq for AssetKind
impl StructuralPartialEq for AssetKind
Auto Trait Implementations§
impl Freeze for AssetKind
impl RefUnwindSafe for AssetKind
impl Send for AssetKind
impl Sync for AssetKind
impl Unpin for AssetKind
impl UnsafeUnpin for AssetKind
impl UnwindSafe for AssetKind
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
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
Compare self to
key and return true if they are equal.