Skip to main content

Info

Struct Info 

Source
pub struct Info { /* private fields */ }
Expand description

Info API client

Implementations§

Source§

impl Info

Source

pub async fn meta(&self) -> Result<Value>

Get exchange metadata (perp assets, decimals, etc.)

Source

pub async fn spot_meta(&self) -> Result<Value>

Get spot metadata

Source

pub async fn meta_and_asset_ctxs(&self) -> Result<Value>

Get metadata with asset contexts (real-time funding, open interest)

Source

pub async fn spot_meta_and_asset_ctxs(&self) -> Result<Value>

Get spot metadata with contexts

Source

pub async fn exchange_status(&self) -> Result<Value>

Get exchange status

Source

pub async fn perp_dexes(&self) -> Result<Value>

Get all perp DEXes (HIP-3)

Source

pub async fn perp_categories(&self) -> Result<Value>

Get perp categories

Source

pub async fn perp_annotation(&self, asset: &str) -> Result<Value>

Get perp annotation for an asset

Source

pub async fn all_mids(&self, dex: Option<&str>) -> Result<Value>

Get all mid prices

Source

pub async fn get_mid(&self, asset: &str) -> Result<f64>

Get mid price for a single asset

Source

pub async fn l2_book( &self, coin: &str, n_sig_figs: Option<u32>, mantissa: Option<u32>, ) -> Result<Value>

Get L2 order book

Source

pub async fn recent_trades(&self, coin: &str) -> Result<Value>

Get recent trades

Source

pub async fn candles( &self, coin: &str, interval: &str, start_time: u64, end_time: Option<u64>, ) -> Result<Value>

Get candlestick data

Source

pub async fn funding_history( &self, coin: &str, start_time: u64, end_time: Option<u64>, ) -> Result<Value>

Get funding history

Source

pub async fn predicted_fundings(&self) -> Result<Value>

Get predicted fundings

Source

pub async fn clearinghouse_state( &self, user: &str, dex: Option<&str>, ) -> Result<Value>

Get clearinghouse state (positions, margin)

Source

pub async fn spot_clearinghouse_state(&self, user: &str) -> Result<Value>

Get spot clearinghouse state (token balances)

Source

pub async fn open_orders(&self, user: &str, dex: Option<&str>) -> Result<Value>

Get open orders

Source

pub async fn frontend_open_orders( &self, user: &str, dex: Option<&str>, ) -> Result<Value>

Get frontend open orders (enhanced)

Source

pub async fn order_status( &self, user: &str, oid: u64, dex: Option<&str>, ) -> Result<Value>

Get order status

Source

pub async fn historical_orders(&self, user: &str) -> Result<Value>

Get historical orders

Source

pub async fn user_fills( &self, user: &str, aggregate_by_time: bool, ) -> Result<Value>

Get user fills

Source

pub async fn user_fills_by_time( &self, user: &str, start_time: u64, end_time: Option<u64>, ) -> Result<Value>

Get user fills by time range

Source

pub async fn user_funding( &self, user: &str, start_time: Option<u64>, end_time: Option<u64>, ) -> Result<Value>

Get user funding payments

Source

pub async fn user_fees(&self, user: &str) -> Result<Value>

Get user fees

Source

pub async fn user_rate_limit(&self, user: &str) -> Result<Value>

Get user rate limit

Source

pub async fn user_role(&self, user: &str) -> Result<Value>

Get user role

Source

pub async fn sub_accounts(&self, user: &str) -> Result<Value>

Get sub-accounts

Source

pub async fn extra_agents(&self, user: &str) -> Result<Value>

Get extra agents (API keys)

Source

pub async fn portfolio(&self, user: &str) -> Result<Value>

Get portfolio history

Source

pub async fn web_data2(&self, user: &str) -> Result<Value>

Get comprehensive web data

Source

pub async fn batch_clearinghouse_states(&self, users: &[&str]) -> Result<Value>

Batch query clearinghouse states for multiple users

Source

pub async fn vault_summaries(&self) -> Result<Value>

Get all vault summaries

Source

pub async fn vault_details( &self, vault_address: &str, user: Option<&str>, ) -> Result<Value>

Get vault details

Source

pub async fn user_vault_equities(&self, user: &str) -> Result<Value>

Get user vault equities

Source

pub async fn leading_vaults(&self, user: &str) -> Result<Value>

Get leading vaults

Source

pub async fn delegations(&self, user: &str) -> Result<Value>

Get delegations

Source

pub async fn delegator_summary(&self, user: &str) -> Result<Value>

Get delegator summary

Source

pub async fn delegator_history(&self, user: &str) -> Result<Value>

Get delegator history

Source

pub async fn delegator_rewards(&self, user: &str) -> Result<Value>

Get delegator rewards

Source

pub async fn user_twap_slice_fills( &self, user: &str, limit: Option<u32>, ) -> Result<Value>

Get user TWAP slice fills

Source

pub async fn user_twap_history(&self, user: &str) -> Result<Value>

Get user TWAP history

Source

pub async fn borrow_lend_user_state(&self, user: &str) -> Result<Value>

Get borrow/lend user state

Source

pub async fn borrow_lend_reserve_state(&self, token: &str) -> Result<Value>

Get borrow/lend reserve state

Source

pub async fn all_borrow_lend_reserve_states(&self) -> Result<Value>

Get all borrow/lend reserve states

Source

pub async fn user_abstraction(&self, user: &str) -> Result<Value>

Get user abstraction mode

Source

pub async fn user_dex_abstraction(&self, user: &str) -> Result<Value>

Get user DEX abstraction mode

Source

pub async fn liquidatable(&self) -> Result<Value>

Get liquidatable positions

Source

pub async fn max_market_order_ntls(&self) -> Result<Value>

Get max market order notionals

Source

pub async fn max_builder_fee(&self, user: &str, builder: &str) -> Result<Value>

Get max builder fee

Source

pub async fn active_asset_data(&self, user: &str, asset: &str) -> Result<Value>

Get active asset data

Source

pub async fn token_details(&self, token_id: &str) -> Result<Value>

Get token details

Source

pub async fn spot_deploy_state(&self, user: &str) -> Result<Value>

Get spot deployment state for user

Source

pub async fn spot_pair_deploy_auction_status(&self) -> Result<Value>

Get spot pair deploy auction status

Source

pub async fn referral(&self, user: &str) -> Result<Value>

Get user’s referral information

Source

pub async fn user_non_funding_ledger_updates( &self, user: &str, start_time: Option<u64>, end_time: Option<u64>, ) -> Result<Value>

Get user’s non-funding ledger updates (deposits, withdrawals, transfers)

Source

pub async fn user_to_multi_sig_signers(&self, user: &str) -> Result<Value>

Get multi-sig signers for a user

Source

pub async fn gossip_root_ips(&self) -> Result<Value>

Get gossip root IPs for the network

Source

pub async fn perp_deploy_auction_status(&self) -> Result<Value>

Get perpetual deploy auction status

Source

pub async fn perps_at_open_interest_cap(&self) -> Result<Value>

Get perps that are at their open interest cap

Source

pub async fn validator_l1_votes(&self) -> Result<Value>

Get L1 validator votes

Source

pub async fn approved_builders(&self, user: &str) -> Result<Value>

Get list of approved builders for a user

Source

pub async fn all_perp_metas(&self) -> Result<Value>

Get consolidated universe, margin tables, asset contexts across all DEXs

Source

pub async fn perp_dex_limits(&self, dex: &str) -> Result<Value>

Get OI caps and transfer limits for builder-deployed markets

Source

pub async fn perp_dex_status(&self, dex: &str) -> Result<Value>

Get total net deposits for builder-deployed markets

Source

pub async fn aligned_quote_token_info(&self, token: u32) -> Result<Value>

Get aligned quote token information

Auto Trait Implementations§

§

impl Freeze for Info

§

impl !RefUnwindSafe for Info

§

impl Send for Info

§

impl Sync for Info

§

impl Unpin for Info

§

impl UnsafeUnpin for Info

§

impl !UnwindSafe for Info

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more