Struct coinnect::poloniex::credentials::PoloniexCreds [] [src]

pub struct PoloniexCreds { /* fields omitted */ }

Methods

impl PoloniexCreds
[src]

[src]

Create a new PoloniexCreds from arguments.

[src]

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

{
    "account_poloniex": {
        "exchange"  : "poloniex",
        "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 Poloniex account with PoloniexAPI::new(PoloniexCreds::new_from_file("account_kraken", Path::new("/keys.json")))

Trait Implementations

impl Debug for PoloniexCreds
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for PoloniexCreds
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Credentials for PoloniexCreds
[src]

[src]

Return a value from the credentials.

[src]

Return the client name.

[src]

Return the targeted Exchange.

Auto Trait Implementations

impl Send for PoloniexCreds

impl Sync for PoloniexCreds