pub struct KrakenRawHttpClient { /* private fields */ }Implementations§
Source§impl KrakenRawHttpClient
impl KrakenRawHttpClient
pub fn new( base_url: Option<String>, timeout_secs: Option<u64>, max_retries: Option<u32>, retry_delay_ms: Option<u64>, retry_delay_max_ms: Option<u64>, proxy_url: Option<String>, ) -> Result<Self>
pub fn with_credentials( api_key: String, api_secret: String, base_url: Option<String>, timeout_secs: Option<u64>, max_retries: Option<u32>, retry_delay_ms: Option<u64>, retry_delay_max_ms: Option<u64>, proxy_url: Option<String>, ) -> Result<Self>
pub fn base_url(&self) -> &str
pub fn credential(&self) -> Option<&KrakenCredential>
pub fn cancel_all_requests(&self)
pub fn cancellation_token(&self) -> &CancellationToken
pub async fn get_server_time(&self) -> Result<ServerTime, KrakenHttpError>
pub async fn get_system_status(&self) -> Result<SystemStatus, KrakenHttpError>
pub async fn get_asset_pairs( &self, pairs: Option<Vec<String>>, ) -> Result<AssetPairsResponse, KrakenHttpError>
pub async fn get_ticker( &self, pairs: Vec<String>, ) -> Result<TickerResponse, KrakenHttpError>
pub async fn get_ohlc( &self, pair: &str, interval: Option<u32>, since: Option<i64>, ) -> Result<OhlcResponse, KrakenHttpError>
pub async fn get_book_depth( &self, pair: &str, count: Option<u32>, ) -> Result<OrderBookResponse, KrakenHttpError>
pub async fn get_trades( &self, pair: &str, since: Option<String>, ) -> Result<TradesResponse, KrakenHttpError>
pub async fn get_websockets_token( &self, ) -> Result<WebSocketToken, KrakenHttpError>
pub async fn get_instruments_futures( &self, ) -> Result<FuturesInstrumentsResponse, KrakenHttpError>
pub async fn get_tickers_futures( &self, ) -> Result<FuturesTickersResponse, KrakenHttpError>
pub async fn get_ohlc_futures( &self, tick_type: &str, symbol: &str, resolution: &str, from: Option<i64>, to: Option<i64>, ) -> Result<FuturesCandlesResponse, KrakenHttpError>
Trait Implementations§
Source§impl Debug for KrakenRawHttpClient
impl Debug for KrakenRawHttpClient
Auto Trait Implementations§
impl Freeze for KrakenRawHttpClient
impl !RefUnwindSafe for KrakenRawHttpClient
impl Send for KrakenRawHttpClient
impl Sync for KrakenRawHttpClient
impl Unpin for KrakenRawHttpClient
impl !UnwindSafe for KrakenRawHttpClient
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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