pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(creds: KrakenCredentials, tier: AccountTier) -> Self
pub async fn server_time(&self) -> Result<ServerTimeResponse, Error>
pub async fn system_status(&self) -> Result<SystemStatusResponse, Error>
pub async fn account_balance(&self) -> Result<AccountBalanceResponse, Error>
pub async fn asset_info( &self, asset: Option<String>, asset_class: Option<String>, ) -> Result<AssetInfoResponse, Error>
pub async fn recent_spreads( &self, pair: String, since: Option<u64>, ) -> Result<RecentSpreadsResponse, Error>
pub async fn asset_pairs( &self, pairs: Vec<String>, info: Option<AssetPairsInfo>, ) -> Result<AssetPairsResponse, Error>
pub async fn ticker( &self, asset_pair: AssetPair, ) -> Result<TickerResponse, Box<dyn Error>>
pub async fn open_orders( &self, trades: Option<bool>, user_ref: Option<u32>, ) -> Result<String, Error>
pub async fn trade_balance( &self, asset: Option<String>, ) -> Result<String, Error>
pub async fn debug_recent_spreads( &self, pair: String, since: Option<u64>, ) -> Result<String, Error>
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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