@loafmarkets/shared-types 1.0.74 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/proto/trading.proto +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loafmarkets/shared-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.78",
|
|
4
4
|
"description": "Shared contracts for Loaf Markets frontend, backend, and matching engine.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "Cohen",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@loafmarkets/shared-types": "1.0.18",
|
|
24
|
-
"zod": "^4.
|
|
24
|
+
"zod": "^4.3.6"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "^25.0.3",
|
package/proto/trading.proto
CHANGED
|
@@ -79,11 +79,16 @@ message TradeExecution {
|
|
|
79
79
|
int64 sell_deadline = 33;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
message OrderData {
|
|
83
|
+
uint64 order_id = 1;
|
|
84
|
+
uint32 quantity = 2;
|
|
85
|
+
}
|
|
86
|
+
|
|
82
87
|
// Order book
|
|
83
88
|
message PriceLevel {
|
|
84
89
|
double price = 1;
|
|
85
90
|
double quantity = 2;
|
|
86
|
-
repeated
|
|
91
|
+
repeated OrderData orders = 3;
|
|
87
92
|
}
|
|
88
93
|
|
|
89
94
|
message OrderBookSnapshot {
|
|
@@ -166,4 +171,4 @@ message OrderCancelled {
|
|
|
166
171
|
int64 timestamp = 3;
|
|
167
172
|
}
|
|
168
173
|
|
|
169
|
-
//
|
|
174
|
+
//
|