[−][src]Struct luno_sdk::LunoClient
Implementations
impl LunoClient
[src]
pub fn new(api_key: &str, api_secret: &str) -> LunoClient
[src]
pub fn get_base_url(&self, append: Option<&str>) -> String
[src]
pub fn add_url_params(
&self,
url_str: String,
params: HashMap<&str, String>
) -> String
[src]
&self,
url_str: String,
params: HashMap<&str, String>
) -> String
pub async fn dispatch<'_>(
&'_ self,
method: Method,
url_str: String,
auth: bool
) -> Result<Response, Box<dyn Error>>
[src]
&'_ self,
method: Method,
url_str: String,
auth: bool
) -> Result<Response, Box<dyn Error>>
Trait Implementations
impl Accounts for LunoClient
[src]
fn update_account_name<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 str,
name: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: &'life1 str,
name: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn create_account<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
currency: &'life1 str,
name: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
currency: &'life1 str,
name: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn list_pending_transactions<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn list_transactions<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str,
min_row: i32,
max_row: i32
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: &'life1 str,
min_row: i32,
max_row: i32
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn list_balances<'life0, 'life1, 'async_trait>(
&'life0 self,
assets: Vec<&'life1 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
assets: Vec<&'life1 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Beneficiaries for LunoClient
[src]
fn list_beneficiaries<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Market for LunoClient
[src]
fn get_ticker<'life0, 'life1, 'async_trait>(
&'life0 self,
ticker: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
ticker: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_tickers<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn list_trades_market<'life0, 'life1, 'async_trait>(
&'life0 self,
pair: &'life1 str,
since: Option<NaiveDateTime>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
pair: &'life1 str,
since: Option<NaiveDateTime>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_orderbook_top<'life0, 'life1, 'async_trait>(
&'life0 self,
pair: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
pair: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_orderbook<'life0, 'life1, 'async_trait>(
&'life0 self,
pair: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
pair: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Orders for LunoClient
[src]
fn get_fee_info<'life0, 'life1, 'async_trait>(
&'life0 self,
pair: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
pair: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn list_orders<'life0, 'life1, 'async_trait>(
&'life0 self,
params: Option<HashMap<&'life1 str, String>>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
params: Option<HashMap<&'life1 str, String>>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn list_trades_user<'life0, 'life1, 'async_trait>(
&'life0 self,
params: HashMap<&'life1 str, String>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
params: HashMap<&'life1 str, String>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_order<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn post_market_order<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
&'life0 self,
pair: &'life1 str,
action: &'life2 str,
counter_volume: Option<&'life3 str>,
base_volume: Option<&'life4 str>,
base_account_id: Option<&'life5 str>,
counter_account_id: Option<&'life6 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
pair: &'life1 str,
action: &'life2 str,
counter_volume: Option<&'life3 str>,
base_volume: Option<&'life4 str>,
base_account_id: Option<&'life5 str>,
counter_account_id: Option<&'life6 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
Self: 'async_trait,
fn post_limit_order<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'life8, 'life9, 'async_trait>(
&'life0 self,
pair: &'life1 str,
action: &'life2 str,
post_only: Option<&'life3 str>,
volume: &'life4 str,
price: &'life5 str,
stop_price: Option<&'life6 str>,
stop_direction: Option<&'life7 str>,
base_account_id: Option<&'life8 str>,
counter_account_id: Option<&'life9 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
'life7: 'async_trait,
'life8: 'async_trait,
'life9: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
pair: &'life1 str,
action: &'life2 str,
post_only: Option<&'life3 str>,
volume: &'life4 str,
price: &'life5 str,
stop_price: Option<&'life6 str>,
stop_direction: Option<&'life7 str>,
base_account_id: Option<&'life8 str>,
counter_account_id: Option<&'life9 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
'life7: 'async_trait,
'life8: 'async_trait,
'life9: 'async_trait,
Self: 'async_trait,
fn stop_order<'life0, 'life1, 'async_trait>(
&'life0 self,
order_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
order_id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Quotes for LunoClient
[src]
fn exercise_quote<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn delete_quote<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn create_quote<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
action: &'life1 str,
base_amount: f64,
pair: &'life2 str,
base_account_id: Option<&'life3 str>,
counter_account_id: Option<&'life4 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
action: &'life1 str,
base_amount: f64,
pair: &'life2 str,
base_account_id: Option<&'life3 str>,
counter_account_id: Option<&'life4 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait,
fn get_quote<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Receive for LunoClient
[src]
fn get_receive_address<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
asset: &'life1 str,
address: Option<&'life2 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
asset: &'life1 str,
address: Option<&'life2 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn create_receive_address<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
asset: &'life1 str,
name: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
asset: &'life1 str,
name: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl Send for LunoClient
[src]
fn send<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'life7, 'async_trait>(
&'life0 self,
amount: &'life1 str,
currency: &'life2 str,
address: &'life3 str,
description: Option<&'life4 str>,
message: Option<&'life5 str>,
external_id: Option<&'life6 str>,
dest_tag_flag: bool,
dest_tag: Option<&'life7 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
'life7: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
amount: &'life1 str,
currency: &'life2 str,
address: &'life3 str,
description: Option<&'life4 str>,
message: Option<&'life5 str>,
external_id: Option<&'life6 str>,
dest_tag_flag: bool,
dest_tag: Option<&'life7 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
'life6: 'async_trait,
'life7: 'async_trait,
Self: 'async_trait,
impl Withdrawals for LunoClient
[src]
fn list_withdrawal_requests<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_withdrawal<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn request_withdrawal<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
action: &'life1 str,
amount: &'life2 str,
benef_id: Option<&'life3 str>,
reference: Option<&'life4 str>,
extern_id: Option<&'life5 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
action: &'life1 str,
amount: &'life2 str,
benef_id: Option<&'life3 str>,
reference: Option<&'life4 str>,
extern_id: Option<&'life5 str>
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
Self: 'async_trait,
fn cancel_withdrawal_request<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for LunoClient
impl Send for LunoClient
impl Sync for LunoClient
impl Unpin for LunoClient
impl !UnwindSafe for LunoClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,