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
//!
//! cryptomkt-rs provides a simple and powerful implementation for CryptoMarket API.
//!
//! Example where the last ticker is shown for each market available in the exchange market Criptomarket
//!
//! ```
//! extern crate cryptomkt;
//! use cryptomkt::{CryptoMktClient, OrderType};
//!
//! const API_KEY: &'static str = "<API_KEY>";
//! const API_SECRET: &'static str = "<API SECRET>";
//!
//! fn main() {
//!
//! let client = CryptoMktClient::new(API_KEY, API_SECRET);
//!
//! // Get the markets available in the exchange
//! let markets = client.get_markets();
//! for m in markets.iter() {
//! println!("{}", m.get_name());
//!
//! // GET current Ticker
//! match m.get_current_ticker() {
//! Ok(ticker) => {
//! println!("{:?}", ticker);
//! }
//! Err(e) => {
//! println!("{:?}", e);
//! }
//! }
//! }
//! }
//! ```
extern crate log;
pub use crate;
pub use crateCryptoMktClient;
pub use cratemodels;
pub use crateresponse;
pub use crate;