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
//! Types definition used for handling returned data when generic API is used.
use Pair;
type Price = f64;
type Volume = f64;
/*
pub struct Orderbook {
timestamp: i64,
ask_offers: Vec<Price, Volume>,
bid_offers: Vec<Price, Volume>,
}
impl Orderbook {
pub fn get_timestamp(&self) -> i64 {
self.timestamp
}
pub fn get_ask_offers(&self) -> Vec<Price, Volume> {
self.ask_offers
}
pub fn get_bid_offers(&self) -> Vec<Price, Volume> {
self.bid_offers
}
}
*/