pub struct IndodaxClient { /* private fields */ }Implementations§
Source§impl IndodaxClient
impl IndodaxClient
pub fn new(signer: Option<Signer>) -> Result<Self, IndodaxError>
pub fn with_ws_token(self, token: Option<String>) -> Self
pub fn signer(&self) -> Option<&Signer>
pub fn ws_token(&self) -> Option<&str>
pub fn http_client(&self) -> &Client
pub async fn public_get<T: DeserializeOwned>( &self, path: &str, ) -> Result<T, IndodaxError>
pub async fn countdown_cancel_all( &self, pair: Option<&str>, countdown_time: u64, ) -> Result<Value, IndodaxError>
pub async fn generate_ws_token(&self) -> Result<(String, String), IndodaxError>
pub async fn public_get_v2<T: DeserializeOwned>( &self, path: &str, params: &[(&str, &str)], ) -> Result<T, IndodaxError>
pub async fn private_post_v1<T: DeserializeOwned>( &self, method: &str, params: &HashMap<String, String>, ) -> Result<T, IndodaxError>
pub async fn private_get_v2<T: DeserializeOwned>( &self, path: &str, params: &HashMap<String, String>, ) -> Result<T, IndodaxError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for IndodaxClient
impl !RefUnwindSafe for IndodaxClient
impl Send for IndodaxClient
impl Sync for IndodaxClient
impl Unpin for IndodaxClient
impl UnsafeUnpin for IndodaxClient
impl !UnwindSafe for IndodaxClient
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