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
//! ## Description
//! `bitsors` is a wrapper for the [Bitso API](https://bitso.com/api_info). So far
//! it includes most of the functionality of the [public](https://bitso.com/api_info#public-rest-api)
//! and [private](https://bitso.com/api_info#private-rest-api) API endpoints, plus support for the [WebSocket API](https://bitso.com/api_info#websocket-api)
//!
//! __Disclaimer__: Some of the functionality for the private API is not covered in
//! this wrapper.
//!
//! Uncovered sections:
//! * Mobile Phone Number Registration
//! * Mobile Phone Number Verification
//!
//! ## Getting started
//! ### Authorization
//! No authorization is needed for the public API. However, the private API
//! needs authorization as indicated in the [official API documentation](https://bitso.com/api_info#generating-api-keys).
//! The wrapper takes care of the authentication method. To be able to use
//! the private API functionality, therefore, you only need to set your
//! API key and secret variables in a `.env` file, export them directly
//! to your environment variables or supply them in-line through the
//! `BitsoCredentials`' `api_key` and `api_secret` methods.
//!
//! ## Examples
//! For more detailed information on how to use this wrapper, you could
//! see the [examples](https://github.com/arturomf94/bitsors/tree/master/examples), which hold detailed use-cases.

extern crate hex;
extern crate openssl;
extern crate reqwest;
extern crate serde;
#[macro_use]
extern crate serde_json;
#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate lazy_static;
extern crate dotenv;
#[macro_use]
extern crate anyhow;
pub mod auth;
pub mod client;
pub mod model;
pub mod websocket;