-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathschema_cpp.json
More file actions
125 lines (125 loc) · 3.31 KB
/
schema_cpp.json
File metadata and controls
125 lines (125 loc) · 3.31 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"namespace": "my_models",
"enums": {
"TradeSide": {
"type": "uint8",
"members": {
"Sell": { "value": 0, "map": "SELL" },
"Buy": { "value": 1, "map": "BUY" }
}
},
"OrderbookType": {
"type": "uint8",
"members": {
"Snapshot": { "value": 1 },
"Delta": { "value": 2 }
}
},
"TickDirection": {
"type": "uint8",
"docstring": "https://bybit-exchange.github.io/docs/v5/enum#tickdirection",
"members": {
"Unknown": { "value": 0 },
"PlusTick": { "value": 1, "docstring": "Price rise." },
"ZeroPlusTick": {
"value": 2,
"docstring": [
"Trade occurs at the same price as the previous trade,",
"which occurred at a price lower than that for the trade preceding it.",
"",
"Example price series: 100 -> 99 -> 99"
]
},
"MinusTick": { "value": 3, "docstring": "Price drop." },
"ZeroMinusTick": {
"value": 4,
"docstring": [
"Trade occurs at the same price as the previous trade,",
"which occurred at a price higher than that for the trade preceding it.",
"",
"Example price series: 100 -> 101 -> 101"
]
}
}
}
},
"structs": {
"StreamTrade": {
"docstring": "https://bybit-exchange.github.io/docs/v5/websocket/public/trade",
"members": {
"server_time": "int64",
"recv_time": "int64",
"symbol": "string",
"fill_time": "int64",
"side": "enum:TradeSide",
"price": "float64",
"price_chg_dir": "enum:TickDirection",
"size": "float64",
"trade_id": "string",
"block_trade": "bool"
}
},
"StreamOrderbook": {
"docstring": "https://bybit-exchange.github.io/docs/v5/websocket/public/orderbook",
"members": {
"server_time": "int64",
"recv_time": "int64",
"cts": "int64",
"type": "enum:OrderbookType",
"depth": "uint16",
"symbol": "string",
"update_id": "uint64",
"seq_num": "uint64",
"bid_prices": "vector<float64>",
"bid_quantities": "vector<float64>",
"ask_prices": "vector<float64>",
"ask_quantities": "vector<float64>"
}
},
"ChildVar": {
"members": {
"field1": "int32",
"field2": "string"
}
},
"ChildFixed": {
"members": {
"field1": "int32",
"field2": "int32"
}
},
"Parent": {
"members": {
"field1": "int32",
"child1": "struct:ChildFixed",
"child2": "struct:ChildVar",
"str": "string"
}
},
"VectorOfUInt32": {
"members": {
"values": "vector<uint32>",
"str": "string"
}
},
"VectorOfFixedSizedStructs": {
"members": {
"values": "vector<struct:ChildFixed>",
"str": "string"
}
},
"VectorOfVariableSizedStructs": {
"members": {
"values": "vector<struct:ChildVar>",
"str": "string"
}
},
"Variants": {
"members": {
"primitives": "Variant<int32, int64, uint8>",
"primitives_and_string": "Variant<string, float64, bool>",
"structs": "Variant<struct:ChildFixed, struct:ChildVar>"
}
}
}
}