Skip to main content

Crate gmsol_model

Crate gmsol_model 

Source
Expand description

A Rust implementation of GMX V2 Model.

Re-exports§

pub use action::MarketAction;
pub use bank::Bank;
pub use clock::ClockKind;
pub use error::Error;
pub use market::BaseMarket;
pub use market::BaseMarketExt;
pub use market::BaseMarketMut;
pub use market::BaseMarketMutExt;
pub use market::BorrowingFeeMarket;
pub use market::BorrowingFeeMarketExt;
pub use market::BorrowingFeeMarketMut;
pub use market::BorrowingFeeMarketMutExt;
pub use market::LiquidityMarket;
pub use market::LiquidityMarketExt;
pub use market::LiquidityMarketMut;
pub use market::LiquidityMarketMutExt;
pub use market::PerpMarket;
pub use market::PerpMarketExt;
pub use market::PerpMarketMut;
pub use market::PerpMarketMutExt;
pub use market::PnlFactorKind;
pub use market::PositionImpactMarket;
pub use market::PositionImpactMarketExt;
pub use market::PositionImpactMarketMut;
pub use market::PositionImpactMarketMutExt;
pub use market::SwapMarket;
pub use market::SwapMarketExt;
pub use market::SwapMarketMut;
pub use market::SwapMarketMutExt;
pub use pool::Balance;
pub use pool::BalanceExt;
pub use pool::Delta;
pub use pool::Pool;
pub use pool::PoolExt;
pub use pool::PoolKind;
pub use position::Position;
pub use position::PositionExt;
pub use position::PositionMut;
pub use position::PositionMutExt;
pub use position::PositionState;
pub use position::PositionStateExt;
pub use position::PositionStateMut;
pub use num_traits;

Modules§

action
Actions.
bank
Bank.
clock
Clock.
error
Error type.
fixed
Fixed-point decimal type.
glvglv
GLV calculations.
market
Market.
num
Number utils.
params
Market params.
pool
Pool.
position
Position.
price
Price.
testtest
Utils for testing.
utils
Utils.

Type Aliases§

Result
Alias for result.