@usherlabs/cex-broker 0.2.37 → 0.2.40
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/README.md +6 -0
- package/dist/commands/cli.js +2088 -1259
- package/dist/handlers/subscribe/handler.d.ts +2 -0
- package/dist/helpers/binance-user-data-normalization.d.ts +3 -0
- package/dist/helpers/binance-user-data-stream.d.ts +12 -0
- package/dist/helpers/broker-execution-archive/index.d.ts +1 -1
- package/dist/helpers/broker-execution-archive/rows.d.ts +1 -0
- package/dist/helpers/deposit-archive-poller.d.ts +1 -0
- package/dist/helpers/market-data-archive/capture-context.d.ts +24 -3
- package/dist/helpers/market-data-archive/index.d.ts +1 -1
- package/dist/helpers/stream-health-publisher.d.ts +41 -0
- package/dist/helpers/user-data-stream-supervisor.d.ts +27 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2090 -1261
- package/dist/index.js.map +18 -15
- package/dist/server.d.ts +2 -1
- package/package.json +10 -2
package/dist/server.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ import type { BrokerPoolEntry } from "./helpers";
|
|
|
4
4
|
import type { BrokerExecutionArchiver, WithdrawalObservationTracker } from "./helpers/broker-execution-archive";
|
|
5
5
|
import type { OrderActivityTracker } from "./helpers/order-activity-tracker";
|
|
6
6
|
import type { OtelMetrics } from "./helpers/otel";
|
|
7
|
+
import type { UserDataStreamSupervisor } from "./helpers/user-data-stream-supervisor";
|
|
7
8
|
import type { PolicyConfig } from "./types";
|
|
8
|
-
export declare function getServer(policy: PolicyConfig, brokers: Record<string, BrokerPoolEntry>, whitelistIps: string[], useVerity: boolean, verityProverUrl: string, otelMetrics?: OtelMetrics, brokerArchiver?: BrokerExecutionArchiver, orderActivityTracker?: OrderActivityTracker, withdrawalObservationTracker?: WithdrawalObservationTracker, subscribeBrokerLifecycle?: SubscribeBrokerLifecycle): grpc.Server;
|
|
9
|
+
export declare function getServer(policy: PolicyConfig, brokers: Record<string, BrokerPoolEntry>, whitelistIps: string[], useVerity: boolean, verityProverUrl: string, otelMetrics?: OtelMetrics, brokerArchiver?: BrokerExecutionArchiver, orderActivityTracker?: OrderActivityTracker, withdrawalObservationTracker?: WithdrawalObservationTracker, subscribeBrokerLifecycle?: SubscribeBrokerLifecycle, userDataStreamSupervisor?: UserDataStreamSupervisor): grpc.Server;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usherlabs/cex-broker",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.40",
|
|
4
4
|
"description": "Unified gRPC API to CEXs by Usher Labs.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"prepack": "bun run build",
|
|
37
37
|
"start-broker": "bun run ./src/cli.ts",
|
|
38
38
|
"start-archive-forwarder": "bun run services/archive-forwarder/index.ts",
|
|
39
|
+
"start-market-data-collector": "bun run services/ohlcv-collector/index.ts",
|
|
39
40
|
"start-ohlcv-collector": "bun run services/ohlcv-collector/index.ts",
|
|
40
41
|
"start-archive-watch": "bun run examples/archive-watch-subscribe.ts",
|
|
41
42
|
"start-candle-viewer": "bun run research/candle-viewer/server.ts",
|
|
@@ -46,7 +47,14 @@
|
|
|
46
47
|
"start-broker-server": "bunx nodemon --watch src --watch policy --ext ts,js,json --exec 'bun run start-broker --policy policy/policy.json --port 8086 --whitelistAll'",
|
|
47
48
|
"start-broker-server-with-verity": "bunx nodemon --watch src --watch policy --ext ts,js,json --exec 'bun run start-broker --policy policy/policy.json --port 8086 --whitelistAll --verityProverUrl http://verity-prover:8080'",
|
|
48
49
|
"build:ts": "bunx tsc",
|
|
49
|
-
"
|
|
50
|
+
"typecheck:sidecar": "bunx tsc -p tsconfig.sidecar.json",
|
|
51
|
+
"test": "bun test test",
|
|
52
|
+
"test:e2e:archive": "bun test --max-concurrency 1 --timeout 120000 ./e2e/archive/archive.e2e.ts",
|
|
53
|
+
"archive:baseline:generate": "bun run scripts/archive-upgrade-baseline.ts generate",
|
|
54
|
+
"archive:baseline:verify": "bun run scripts/archive-upgrade-baseline.ts verify",
|
|
55
|
+
"test:acceptance:archive-upgrade": "bun run scripts/archive-upgrade-acceptance.ts",
|
|
56
|
+
"archive:sidecar": "bun run scripts/archive-sidecar.ts",
|
|
57
|
+
"test:smoke:archive": "bun run scripts/archive-live-smoke.ts",
|
|
50
58
|
"format": "bunx biome format --write",
|
|
51
59
|
"lint": "bunx biome lint",
|
|
52
60
|
"lint:fix": "bunx biome lint --write",
|