pub struct LiqConfig {
pub owner: Pubkey,
pub cross_exposure: f64,
pub scoring_skew: f64,
pub percent_volume: f64,
pub instrument: HashMap<String, LiqConfigByInstrument>,
pub meta: ActionMeta,
}Expand description
Liquidation and ADL related config
Fields§
§owner: Pubkey§cross_exposure: f64maximum cross exposure across assets
scoring_skew: f64Scoring skew (P&L vs leverage)
percent_volume: f64% of volume to take <- strategy specific
instrument: HashMap<String, LiqConfigByInstrument>configuration per instrument
meta: ActionMetaTrait Implementations§
Source§impl<'de> Deserialize<'de> for LiqConfig
impl<'de> Deserialize<'de> for LiqConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LiqConfig
impl RefUnwindSafe for LiqConfig
impl Send for LiqConfig
impl Sync for LiqConfig
impl Unpin for LiqConfig
impl UnsafeUnpin for LiqConfig
impl UnwindSafe for LiqConfig
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