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
61
62
63
64
65
66
67
68
69
70
// use tracing::{Span, info_span};
// use tracing::field::Empty;
// pub struct Tracing {}
// impl Tracing {
// pub fn match_order_span(
// order_id: u64,
// filled: Empty,
// reason: Empty,
// order_type: &'static str,
// is_buy_side: bool,
// levels_consumed: Empty,
// orders_touched: Empty,
// actual_time : Empty
// ) -> Span {
// info_span!("match_order", order_id = %order_id,
// filled = filled,
// reason = reason,
// order_type = %order_type ,
// is_buy_side = %is_buy_side,
// levels_consumed = levels_consumed,
// orders_touched = orders_touched,
// actual_time = actual_time
// )
// }
// pub fn modify_span(
// order_id: u64,
// filled: bool,
// reason: Empty,
// modify_reason: Empty,
// intermediate_error : Empty,
// order_type: &'static str,
// is_buy_side: bool,
// levels_consumed: u32,
// orders_touched: u32,
// ) -> Span {
// info_span!("modify", order_id = %order_id,
// filled = %filled,
// reason = reason,
// modify_reason = modify_reason,
// intermediate_error = intermediate_error,
// order_type = %order_type ,
// is_buy_side = %is_buy_side,
// levels_consumed = %levels_consumed,
// orders_touched = %orders_touched
// )
// }
// pub fn cancel_span(
// order_id: u64,
// success_status: bool,
// reason: &'static str,
// ) -> Span{
// info_span!("cancel", order_id = %order_id,
// success_status = %success_status,
// reason = %reason,
// )
// }
// pub fn depth_span(
// security_id: Empty,
// status: Empty,
// reason: Empty,
// ) -> Span{
// info_span!("depth", security_id = security_id,
// status = status,
// reason = reason,
// )
// }
// }