ohlcv 0.0.3

Data collector library for fetching, analyzing, predicting and charting time series data (OHLC) of cryptocurrencies from various exchanges
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

/// The type of exchange.
///
/// This is a convenience enum to allow the use of different exchange types in a
/// configuration file. The enum is serialized and deserialized using the
/// `serde` crate.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub enum Exchange {
    /// The Binance exchange.
    Binance,
    /// The KuCoin exchange.
    KuCoin,
}