[][src]Struct cryptomkt::CryptoMktClient

pub struct CryptoMktClient { /* fields omitted */ }

CryptoMkt Client

Methods

impl CryptoMktClient
[src]

pub fn new<'a>(api_key: &'a str, secret_key: &'a str) -> Self
[src]

Create the new Client instance

pub fn get_markets(&self) -> Vec<Market>
[src]

Get Market List

pub fn create_market<'a>(&self, name: &'a str) -> Market
[src]

Return a new market from NAME

pub fn get_balance(&self) -> Result<Vec<Balance>, CryptoMktErrorType>
[src]

A balance corresponds to the status of your cryptocurrency and local wallets. This state contains the available balance, account balance and corresponding wallet.

pub fn create_payment_order<'a>(
    &self,
    to_receive: f32,
    to_receive_currency: &'a str,
    payment_receiver: &'a str,
    external_id: Option<String>,
    callback_url: Option<String>,
    error_url: Option<String>,
    success_url: Option<String>,
    refund_email: Option<String>
) -> Result<Payment, CryptoMktErrorType>
[src]

It allows you to create a payment order, delivering QRs and urls to pay.

pub fn payment_order_status<'a>(
    &self,
    id: &'a str
) -> Result<Payment, CryptoMktErrorType>
[src]

Returns the status of a payment order

pub fn get_payment_orders<'a>(
    &self,
    start_date: &'a str,
    end_date: &'a str,
    page: Option<i32>,
    limit: Option<i32>
) -> Result<Vec<Payment>, CryptoMktErrorType>
[src]

Returns the list of generated payment orders

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T