Struct coinnect::bitstamp::credentials::BitstampCreds [−][src]
pub struct BitstampCreds { /* fields omitted */ }
Methods
impl BitstampCreds
[src]
impl BitstampCreds
pub fn new(
name: &str,
api_key: &str,
api_secret: &str,
customer_id: &str
) -> Self
[src]
pub fn new(
name: &str,
api_key: &str,
api_secret: &str,
customer_id: &str
) -> Self
Create a new BitstampCreds
from arguments.
pub fn new_from_file(name: &str, path: PathBuf) -> Result<Self>
[src]
pub fn new_from_file(name: &str, path: PathBuf) -> Result<Self>
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]
impl Debug for BitstampCreds
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for BitstampCreds
[src]
impl Clone for BitstampCreds
fn clone(&self) -> BitstampCreds
[src]
fn clone(&self) -> BitstampCreds
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Credentials for BitstampCreds
[src]
impl Credentials for BitstampCreds
Auto Trait Implementations
impl Send for BitstampCreds
impl Send for BitstampCreds
impl Sync for BitstampCreds
impl Sync for BitstampCreds