@usherlabs/cex-broker 0.1.7 → 0.1.9

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.
@@ -27,12 +27,13 @@ message SubscribeResponse {
27
27
  }
28
28
 
29
29
  enum SubscriptionType {
30
- ORDERBOOK = 0; // Order book updates
31
- TRADES = 1; // Recent trades
32
- TICKER = 2; // Ticker information
33
- OHLCV = 3; // OHLCV candlestick data
34
- BALANCE = 4; // Balance updates
35
- ORDERS = 5; // Order updates
30
+ NO_ACTION=0;
31
+ ORDERBOOK = 1; // Order book updates
32
+ TRADES = 2; // Recent trades
33
+ TICKER = 3; // Ticker information
34
+ OHLCV = 4; // OHLCV candlestick data
35
+ BALANCE = 5; // Balance updates
36
+ ORDERS = 6; // Order updates
36
37
  }
37
38
 
38
39
  service cex_service {
@@ -49,5 +50,6 @@ enum Action {
49
50
  GetOrderDetails=4;
50
51
  CancelOrder=5;
51
52
  FetchBalance=6;
52
- FetchDepositAddresses=7;
53
+ FetchBalances=7;
54
+ FetchDepositAddresses=8;
53
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usherlabs/cex-broker",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
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",
@@ -47,7 +49,7 @@
47
49
  "dependencies": {
48
50
  "@grpc/grpc-js": "^1.13.4",
49
51
  "@grpc/proto-loader": "^0.7.15",
50
- "@usherlabs/ccxt": "^0.0.7",
52
+ "@usherlabs/ccxt": "latest",
51
53
  "commander": "^14.0.0",
52
54
  "joi": "^17.13.3",
53
55
  "tslog": "^4.9.3"