Struct levana_perpswap_cosmos::contracts::market::entry::StatusResp
source · pub struct StatusResp {Show 26 fields
pub market_id: MarketId,
pub base: String,
pub quote: String,
pub market_type: MarketType,
pub collateral: Token,
pub config: Config,
pub liquidity: LiquidityStats,
pub next_crank: Option<CrankWorkInfo>,
pub last_crank_completed: Option<Timestamp>,
pub next_deferred_execution: Option<Timestamp>,
pub newest_deferred_execution: Option<Timestamp>,
pub next_liquifunding: Option<Timestamp>,
pub deferred_execution_items: u32,
pub last_processed_deferred_exec_id: Option<DeferredExecId>,
pub borrow_fee: Decimal256,
pub borrow_fee_lp: Decimal256,
pub borrow_fee_xlp: Decimal256,
pub long_funding: Number,
pub short_funding: Number,
pub long_notional: Notional,
pub short_notional: Notional,
pub long_usd: Usd,
pub short_usd: Usd,
pub instant_delta_neutrality_fee_value: Signed<Decimal256>,
pub delta_neutrality_fee_fund: Collateral,
pub fees: Fees,
}Expand description
Overall market status information
Returned from QueryMsg::Status
Fields§
§market_id: MarketIdThis market’s identifier
base: StringBase asset
quote: StringQuote asset
market_type: MarketTypeType of market
collateral: TokenThe asset used for collateral within the system
config: ConfigConfig for this market
liquidity: LiquidityStatsCurrent status of the liquidity pool
next_crank: Option<CrankWorkInfo>Next bit of crank work available, if any
last_crank_completed: Option<Timestamp>Timestamp of the last completed crank
next_deferred_execution: Option<Timestamp>Earliest deferred execution price timestamp needed
newest_deferred_execution: Option<Timestamp>Latest deferred execution price timestamp needed
next_liquifunding: Option<Timestamp>Next liquifunding work item timestamp
deferred_execution_items: u32Number of work items sitting in the deferred execution queue
last_processed_deferred_exec_id: Option<DeferredExecId>Last processed deferred execution ID, if any
borrow_fee: Decimal256Overall borrow fee rate (annualized), combining LP and xLP
borrow_fee_lp: Decimal256LP component of Self::borrow_fee
borrow_fee_xlp: Decimal256xLP component of Self::borrow_fee
long_funding: NumberLong funding rate (annualized)
short_funding: NumberShort funding rate (annualized)
long_notional: NotionalTotal long interest, given in the notional asset.
short_notional: NotionalTotal short interest, given in the notional asset.
long_usd: UsdTotal long interest, given in USD, converted at the current exchange rate.
short_usd: UsdTotal short interest, given in USD, converted at the current exchange rate.
instant_delta_neutrality_fee_value: Signed<Decimal256>Instant delta neutrality fee value
This is based on net notional and the sensitivity parameter
delta_neutrality_fee_fund: CollateralAmount of collateral in the delta neutrality fee fund.
fees: FeesFees held by the market contract
Trait Implementations§
source§impl Clone for StatusResp
impl Clone for StatusResp
source§fn clone(&self) -> StatusResp
fn clone(&self) -> StatusResp
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StatusResp
impl Debug for StatusResp
source§impl<'de> Deserialize<'de> for StatusResp
impl<'de> Deserialize<'de> for StatusResp
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>,
source§impl JsonSchema for StatusResp
impl JsonSchema for StatusResp
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moresource§impl PartialEq for StatusResp
impl PartialEq for StatusResp
source§fn eq(&self, other: &StatusResp) -> bool
fn eq(&self, other: &StatusResp) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for StatusResp
impl Serialize for StatusResp
impl StructuralPartialEq for StatusResp
Auto Trait Implementations§
impl Freeze for StatusResp
impl RefUnwindSafe for StatusResp
impl Send for StatusResp
impl Sync for StatusResp
impl Unpin for StatusResp
impl UnwindSafe for StatusResp
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moresource§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more