Struct coinnect::bitstamp::credentials::BitstampCreds[][src]

pub struct BitstampCreds { /* fields omitted */ }

Methods

impl BitstampCreds
[src]

Create a new BitstampCreds from arguments.

Create a new BitstampCreds from a json configuration file. This file must follow this structure:

{
    "account_kraken": {
        "exchange"  : "kraken",
        "api_key"   : "123456789ABCDEF",
        "api_secret": "ABC&EF?abcdef"
    },
    "account_bitstamp": {
        "exchange"   : "bitstamp",
        "api_key"    : "1234567890ABCDEF1234567890ABCDEF",
        "api_secret" : "1234567890ABCDEF1234567890ABCDEF",
        "customer_id": "123456"
    }
}

For this example, you could use load your Bitstamp account with BitstampAPI::new(BitstampCreds::new_from_file("account_bitstamp", Path::new("/keys.json")))

Trait Implementations

impl Debug for BitstampCreds
[src]

Formats the value using the given formatter. Read more

impl Clone for BitstampCreds
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Credentials for BitstampCreds
[src]

Return a value from the credentials.

Return the client name.

Return the targeted Exchange.

Auto Trait Implementations