pub struct BirdeyeClient { /* private fields */ }Implementations§
Source§impl BirdeyeClient
impl BirdeyeClient
pub fn new(api_key: String) -> Self
pub async fn get_token_price(&self, address: String) -> Result<String, String>
pub async fn get_token_price_history( &self, address: String, resolution: String, time_from: Option<i64>, time_to: Option<i64>, limit: Option<i32>, ) -> Result<String, String>
pub async fn get_multi_token_price( &self, addresses: String, ) -> Result<String, String>
pub async fn get_token_trending( &self, limit: Option<i32>, ) -> Result<String, String>
pub async fn get_token_ohlcv( &self, address: String, resolution: String, time_from: i64, time_to: i64, ) -> Result<String, String>
pub async fn get_pair_ohlcv( &self, pair_address: String, resolution: String, time_from: i64, time_to: i64, ) -> Result<String, String>
pub async fn get_token_trades( &self, address: String, limit: Option<i32>, offset: Option<i32>, ) -> Result<String, String>
pub async fn get_pair_trades( &self, pair_address: String, limit: Option<i32>, offset: Option<i32>, ) -> Result<String, String>
pub async fn get_token_overview( &self, address: String, ) -> Result<String, String>
pub async fn get_token_list( &self, limit: Option<i32>, offset: Option<i32>, ) -> Result<String, String>
pub async fn get_token_security( &self, address: String, ) -> Result<String, String>
pub async fn get_token_market_list( &self, address: String, ) -> Result<String, String>
pub async fn get_token_new_listing( &self, limit: Option<i32>, offset: Option<i32>, ) -> Result<String, String>
pub async fn get_token_top_traders( &self, address: String, limit: Option<i32>, ) -> Result<String, String>
pub async fn get_gainers_losers(&self) -> Result<String, String>
pub async fn get_trader_txs_by_time( &self, address: String, time_from: i64, time_to: i64, limit: Option<i32>, ) -> Result<String, String>
pub async fn list_supported_chains(&self) -> Result<String, String>
pub async fn get_wallet_portfolio( &self, wallet_address: String, chain_id: String, ) -> Result<String, String>
pub async fn get_wallet_portfolio_multichain( &self, wallet_address: String, ) -> Result<String, String>
pub async fn get_wallet_transaction_history( &self, wallet_address: String, chain_id: String, limit: Option<i32>, offset: Option<i32>, ) -> Result<String, String>
pub async fn get_wallet_transaction_history_multichain( &self, wallet_address: String, limit: Option<i32>, offset: Option<i32>, ) -> Result<String, String>
pub async fn simulate_transaction( &self, chain_id: String, tx_data: String, ) -> Result<String, String>
Trait Implementations§
Source§impl Clone for BirdeyeClient
impl Clone for BirdeyeClient
Source§fn clone(&self) -> BirdeyeClient
fn clone(&self) -> BirdeyeClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BirdeyeClient
impl !RefUnwindSafe for BirdeyeClient
impl Send for BirdeyeClient
impl Sync for BirdeyeClient
impl Unpin for BirdeyeClient
impl !UnwindSafe for BirdeyeClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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 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>
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