1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! ![Coinnect](https://raw.githubusercontent.com/hugues31/coinnect/master/coinnect.png)
//!
//! Coinnect is a Rust library aiming to provide a complete access to REST APIs for various
//! crypto-currencies exchanges (see below for a list of supported exchanges).
//! All methods consume HTTPS api. The purpose of this crate is not
//! to stream data (you should use websocket/FIX in that case).
//!
//! For optional parameters, most methods require an empty str (`""`) or `Option` (`None`) if
//! you don't want to specify them.
//!
//! ### Exchanges support:
//! - [x] Poloniex
//! - [x] Kraken
//! - [x] Bitstamp (partial)
//! - [x] Bittrex
//! - [x] Gdax
//!
//! # WARNING
//! This library is highly experimental at the moment. Please do not invest what you
//! can't afford to loose. This is a personal project, I can not be held responsible for
//! the library malfunction, which can lead to a loss of money.

// error_chain can make a lot of recursions.
#![recursion_limit="128"]

// Allow lint customization.
#![allow(unknown_lints)]

// Move all the clippy warning in deny.
#![deny(clippy)]

// Avoid warning for the Crypto-currency about quotes.
#![allow(doc_markdown)]

#[macro_use]
extern crate hyper;
extern crate sha2;
extern crate hmac;
extern crate hyper_native_tls;
extern crate serde_json;
extern crate chrono;
#[macro_use]
extern crate lazy_static;
extern crate bidir_map;
extern crate data_encoding;
#[macro_use]
extern crate error_chain;
extern crate bigdecimal;

pub mod coinnect;
pub mod exchange;
pub mod error;
pub mod types;
mod helpers;

pub mod bitstamp;
pub mod poloniex;
pub mod kraken;
pub mod bittrex;
pub mod gdax;