Struct coinnect::coinnect::Coinnect [−][src]
pub struct Coinnect;
Methods
impl Coinnect
[src]
impl Coinnect
pub fn new<C: Credentials>(
exchange: Exchange,
creds: C
) -> Result<Box<ExchangeApi>>
[src]
pub fn new<C: Credentials>(
exchange: Exchange,
creds: C
) -> Result<Box<ExchangeApi>>
Create a new CoinnectApi by providing an API key & API secret
pub fn new_from_file(
exchange: Exchange,
name: &str,
path: PathBuf
) -> Result<Box<ExchangeApi>>
[src]
pub fn new_from_file(
exchange: Exchange,
name: &str,
path: PathBuf
) -> Result<Box<ExchangeApi>>
Create a new CoinnectApi from a json configuration file. This file must follow this structure:
For this example, you could use load your Bitstamp account with
new_from_file(Exchange::Bitstamp, "account_bitstamp", Path::new("/keys.json"))