@usherlabs/cex-broker 0.1.8 → 0.1.10
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/dist/commands/cli.js +69 -26
- package/dist/index.js +69 -26
- package/dist/index.js.map +8 -8
- package/dist/proto/node.proto +11 -8
- package/package.json +3 -1
package/dist/proto/node.proto
CHANGED
|
@@ -9,7 +9,8 @@ message ActionRequest {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
message ActionResponse {
|
|
12
|
-
string result =
|
|
12
|
+
string result = 1; // JSON string of the result data
|
|
13
|
+
string proof = 2;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
message SubscribeRequest {
|
|
@@ -27,12 +28,13 @@ message SubscribeResponse {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
enum SubscriptionType {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
NO_ACTION=0;
|
|
32
|
+
ORDERBOOK = 1; // Order book updates
|
|
33
|
+
TRADES = 2; // Recent trades
|
|
34
|
+
TICKER = 3; // Ticker information
|
|
35
|
+
OHLCV = 4; // OHLCV candlestick data
|
|
36
|
+
BALANCE = 5; // Balance updates
|
|
37
|
+
ORDERS = 6; // Order updates
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
service cex_service {
|
|
@@ -49,5 +51,6 @@ enum Action {
|
|
|
49
51
|
GetOrderDetails=4;
|
|
50
52
|
CancelOrder=5;
|
|
51
53
|
FetchBalance=6;
|
|
52
|
-
|
|
54
|
+
FetchBalances=7;
|
|
55
|
+
FetchDepositAddresses=8;
|
|
53
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usherlabs/cex-broker",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Unified gRPC API to CEXs by Usher Labs.",
|
|
5
5
|
"repository": "git@gitlab.com:usherlabs/cex-broker.git",
|
|
6
6
|
"homepage": "https://usher.so/",
|
|
@@ -29,6 +29,8 @@
|
|
|
29
29
|
"proto-gen": "./proto-gen.sh",
|
|
30
30
|
"start": "bun run ./src/index.ts",
|
|
31
31
|
"build": "bun run ./build.ts && bun run build:ts && bun run copy:dts && bun run copy:proto",
|
|
32
|
+
"start-broker": "bun run ./src/cli.ts",
|
|
33
|
+
"start-broker-server": " bun run start-broker --policy policy/policy.json --port 8086 --whitelist 127.0.0.1 192.168.1.100 --verityProverUrl http://localhost:8080",
|
|
32
34
|
"build:ts": "bunx tsc",
|
|
33
35
|
"test": "bun test",
|
|
34
36
|
"format": "bunx biome format --write",
|