Struct hyperliquid_rust_sdk::InfoClient
source · pub struct InfoClient {
pub http_client: HttpClient,
/* private fields */
}
Fields§
§http_client: HttpClient
Implementations§
source§impl InfoClient
impl InfoClient
pub async fn new( client: Option<Client>, base_url: Option<BaseUrl> ) -> Result<InfoClient, Error>
pub async fn subscribe( &mut self, subscription: Subscription, sender_channel: UnboundedSender<Message> ) -> Result<u32, Error>
pub async fn unsubscribe(&mut self, subscription_id: u32) -> Result<(), Error>
pub async fn open_orders( &self, address: H160 ) -> Result<Vec<OpenOrdersResponse>, Error>
pub async fn user_state( &self, address: H160 ) -> Result<UserStateResponse, Error>
pub async fn user_states( &self, addresses: Vec<H160> ) -> Result<Vec<UserStateResponse>, Error>
pub async fn meta(&self) -> Result<Meta, Error>
pub async fn all_mids(&self) -> Result<HashMap<String, String>, Error>
pub async fn user_fills( &self, address: H160 ) -> Result<Vec<UserFillsResponse>, Error>
pub async fn funding_history( &self, coin: String, start_time: u64, end_time: Option<u64> ) -> Result<Vec<FundingHistoryResponse>, Error>
pub async fn recent_trades( &self, coin: String ) -> Result<Vec<RecentTradesResponse>, Error>
pub async fn l2_snapshot( &self, coin: String ) -> Result<L2SnapshotResponse, Error>
pub async fn candles_snapshot( &self, coin: String, interval: String, start_time: u64, end_time: u64 ) -> Result<Vec<CandlesSnapshotResponse>, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for InfoClient
impl Send for InfoClient
impl Sync for InfoClient
impl Unpin for InfoClient
impl !UnwindSafe for InfoClient
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