@agg-build/sdk 4.17.1 → 4.18.0
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/agg-websocket-BatL1Zrt.d.mts +4320 -0
- package/dist/agg-websocket-BatL1Zrt.d.ts +4320 -0
- package/dist/browser.d.mts +69 -0
- package/dist/browser.d.ts +69 -0
- package/dist/browser.js +2049 -0
- package/dist/browser.mjs +804 -0
- package/dist/chunk-QXBVA5TW.mjs +2073 -0
- package/dist/chunk-VD5UTAVD.mjs +158 -0
- package/dist/index.d.mts +431 -4204
- package/dist/index.d.ts +431 -4204
- package/dist/index.js +709 -114
- package/dist/index.mjs +248 -1752
- package/dist/market-data.d.mts +7 -0
- package/dist/market-data.d.ts +7 -0
- package/dist/market-data.js +1776 -0
- package/dist/market-data.mjs +352 -0
- package/package.json +27 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { A as AggWebSocket, a as AggWebSocketOptions, C as ChartBarsResponse, b as ChartHistoryManifest, c as ChartCandle, d as AggWebSocketDiagnostics, M as MarketDataEngine, O as OrderbookState, W as WsArbMarketUpdate, e as WsArbFeedBatch, f as AggWebSocketCallbacks } from './agg-websocket-BatL1Zrt.mjs';
|
|
2
|
+
|
|
3
|
+
/** The application owns the native module Worker URL so its static bundler fingerprints it. */
|
|
4
|
+
type MarketDataWorkerFactory = () => Worker;
|
|
5
|
+
declare class WorkerAggWebSocket extends AggWebSocket {
|
|
6
|
+
private readonly config;
|
|
7
|
+
private worker;
|
|
8
|
+
private remote;
|
|
9
|
+
private endpointListeners;
|
|
10
|
+
private historyOperations;
|
|
11
|
+
private hostProvider?;
|
|
12
|
+
private handlers;
|
|
13
|
+
private currentBooks;
|
|
14
|
+
private recovering;
|
|
15
|
+
private diagnosticRevisions;
|
|
16
|
+
private deliveredRevisions;
|
|
17
|
+
private resolvedRevisions;
|
|
18
|
+
private refs;
|
|
19
|
+
private arbListeners;
|
|
20
|
+
private feedListeners;
|
|
21
|
+
private latest;
|
|
22
|
+
private generation;
|
|
23
|
+
private online;
|
|
24
|
+
private stopped;
|
|
25
|
+
private queued;
|
|
26
|
+
private ready;
|
|
27
|
+
private resolveFailure?;
|
|
28
|
+
private historyFailures;
|
|
29
|
+
private fallback;
|
|
30
|
+
private fallbackUnsubs;
|
|
31
|
+
get processesCandles(): boolean;
|
|
32
|
+
constructor(config: AggWebSocketOptions, factory: MarketDataWorkerFactory);
|
|
33
|
+
decodeHistory(payload: string): Promise<ChartBarsResponse>;
|
|
34
|
+
private decodeHistoryRequest;
|
|
35
|
+
private historyGeneration;
|
|
36
|
+
loadHistory(manifest: ChartHistoryManifest, options?: {
|
|
37
|
+
signal?: AbortSignal;
|
|
38
|
+
}): Promise<ChartCandle[]>;
|
|
39
|
+
private loadHistoryRequest;
|
|
40
|
+
setHostDiagnostics(provider?: () => Record<string, unknown>): void;
|
|
41
|
+
getDiagnostics(): AggWebSocketDiagnostics;
|
|
42
|
+
getWorkerDiagnostics(): Promise<ReturnType<MarketDataEngine["getMeasurements"]> | null>;
|
|
43
|
+
get connected(): boolean;
|
|
44
|
+
getBook(id: string): OrderbookState | null;
|
|
45
|
+
isResyncing(id: string): boolean;
|
|
46
|
+
getArb(id: string): WsArbMarketUpdate | null;
|
|
47
|
+
subscribe(id: string, channel?: "orderbook" | "trades"): () => void;
|
|
48
|
+
subscribeTrades(id: string): () => void;
|
|
49
|
+
subscribeArb(id: string, cb: (msg: WsArbMarketUpdate) => void): () => void;
|
|
50
|
+
subscribeArbFeed(cb: (msg: WsArbFeedBatch) => void): () => void;
|
|
51
|
+
setCallbacks(callbacks: AggWebSocketCallbacks): void;
|
|
52
|
+
authenticate(token: string): void;
|
|
53
|
+
connect(): void;
|
|
54
|
+
disconnect(): void;
|
|
55
|
+
resnapshot(id: string | string[]): void;
|
|
56
|
+
destroy(): void;
|
|
57
|
+
private releaseWorker;
|
|
58
|
+
private event;
|
|
59
|
+
private ref;
|
|
60
|
+
private sync;
|
|
61
|
+
private run;
|
|
62
|
+
private visibility;
|
|
63
|
+
private fallbackCallbacks;
|
|
64
|
+
private syncFallback;
|
|
65
|
+
private fail;
|
|
66
|
+
}
|
|
67
|
+
declare function createWorkerWebSocket(options: AggWebSocketOptions, factory: MarketDataWorkerFactory): AggWebSocket;
|
|
68
|
+
|
|
69
|
+
export { AggWebSocketOptions, type MarketDataWorkerFactory, WorkerAggWebSocket, createWorkerWebSocket };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { A as AggWebSocket, a as AggWebSocketOptions, C as ChartBarsResponse, b as ChartHistoryManifest, c as ChartCandle, d as AggWebSocketDiagnostics, M as MarketDataEngine, O as OrderbookState, W as WsArbMarketUpdate, e as WsArbFeedBatch, f as AggWebSocketCallbacks } from './agg-websocket-BatL1Zrt.js';
|
|
2
|
+
|
|
3
|
+
/** The application owns the native module Worker URL so its static bundler fingerprints it. */
|
|
4
|
+
type MarketDataWorkerFactory = () => Worker;
|
|
5
|
+
declare class WorkerAggWebSocket extends AggWebSocket {
|
|
6
|
+
private readonly config;
|
|
7
|
+
private worker;
|
|
8
|
+
private remote;
|
|
9
|
+
private endpointListeners;
|
|
10
|
+
private historyOperations;
|
|
11
|
+
private hostProvider?;
|
|
12
|
+
private handlers;
|
|
13
|
+
private currentBooks;
|
|
14
|
+
private recovering;
|
|
15
|
+
private diagnosticRevisions;
|
|
16
|
+
private deliveredRevisions;
|
|
17
|
+
private resolvedRevisions;
|
|
18
|
+
private refs;
|
|
19
|
+
private arbListeners;
|
|
20
|
+
private feedListeners;
|
|
21
|
+
private latest;
|
|
22
|
+
private generation;
|
|
23
|
+
private online;
|
|
24
|
+
private stopped;
|
|
25
|
+
private queued;
|
|
26
|
+
private ready;
|
|
27
|
+
private resolveFailure?;
|
|
28
|
+
private historyFailures;
|
|
29
|
+
private fallback;
|
|
30
|
+
private fallbackUnsubs;
|
|
31
|
+
get processesCandles(): boolean;
|
|
32
|
+
constructor(config: AggWebSocketOptions, factory: MarketDataWorkerFactory);
|
|
33
|
+
decodeHistory(payload: string): Promise<ChartBarsResponse>;
|
|
34
|
+
private decodeHistoryRequest;
|
|
35
|
+
private historyGeneration;
|
|
36
|
+
loadHistory(manifest: ChartHistoryManifest, options?: {
|
|
37
|
+
signal?: AbortSignal;
|
|
38
|
+
}): Promise<ChartCandle[]>;
|
|
39
|
+
private loadHistoryRequest;
|
|
40
|
+
setHostDiagnostics(provider?: () => Record<string, unknown>): void;
|
|
41
|
+
getDiagnostics(): AggWebSocketDiagnostics;
|
|
42
|
+
getWorkerDiagnostics(): Promise<ReturnType<MarketDataEngine["getMeasurements"]> | null>;
|
|
43
|
+
get connected(): boolean;
|
|
44
|
+
getBook(id: string): OrderbookState | null;
|
|
45
|
+
isResyncing(id: string): boolean;
|
|
46
|
+
getArb(id: string): WsArbMarketUpdate | null;
|
|
47
|
+
subscribe(id: string, channel?: "orderbook" | "trades"): () => void;
|
|
48
|
+
subscribeTrades(id: string): () => void;
|
|
49
|
+
subscribeArb(id: string, cb: (msg: WsArbMarketUpdate) => void): () => void;
|
|
50
|
+
subscribeArbFeed(cb: (msg: WsArbFeedBatch) => void): () => void;
|
|
51
|
+
setCallbacks(callbacks: AggWebSocketCallbacks): void;
|
|
52
|
+
authenticate(token: string): void;
|
|
53
|
+
connect(): void;
|
|
54
|
+
disconnect(): void;
|
|
55
|
+
resnapshot(id: string | string[]): void;
|
|
56
|
+
destroy(): void;
|
|
57
|
+
private releaseWorker;
|
|
58
|
+
private event;
|
|
59
|
+
private ref;
|
|
60
|
+
private sync;
|
|
61
|
+
private run;
|
|
62
|
+
private visibility;
|
|
63
|
+
private fallbackCallbacks;
|
|
64
|
+
private syncFallback;
|
|
65
|
+
private fail;
|
|
66
|
+
}
|
|
67
|
+
declare function createWorkerWebSocket(options: AggWebSocketOptions, factory: MarketDataWorkerFactory): AggWebSocket;
|
|
68
|
+
|
|
69
|
+
export { AggWebSocketOptions, type MarketDataWorkerFactory, WorkerAggWebSocket, createWorkerWebSocket };
|