@xbbg/core 1.1.2 → 1.1.3

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/index.d.ts DELETED
@@ -1,792 +0,0 @@
1
- /// <reference types="node" />
2
-
3
- import type { Table } from 'apache-arrow';
4
-
5
- export interface StringPair {
6
- key: string;
7
- value: string;
8
- }
9
-
10
- export interface ServerAddress {
11
- host: string;
12
- port: number;
13
- }
14
-
15
- export type AuthConfig =
16
- | { method: 'user' }
17
- | { method: 'app'; appName: string }
18
- | { method: 'userapp'; appName: string }
19
- | { method: 'dir' | 'directory'; dirProperty: string }
20
- | { method: 'manual'; appName: string; userId: string; ipAddress: string }
21
- | { method: 'token'; token: string };
22
-
23
- export interface TlsConfig {
24
- clientCredentials?: string;
25
- clientCredentialsPassword?: string;
26
- trustMaterial?: string;
27
- handshakeTimeoutMs?: number;
28
- crlFetchTimeoutMs?: number;
29
- }
30
-
31
- export interface RetryPolicy {
32
- maxRetries?: number;
33
- initialDelayMs?: number;
34
- backoffFactor?: number;
35
- maxDelayMs?: number;
36
- }
37
-
38
- export interface Socks5Config {
39
- host: string;
40
- port: number;
41
- }
42
-
43
- export interface EngineConfig {
44
- host?: string;
45
- port?: number;
46
- servers?: ServerAddress[];
47
- zfpRemote?: '8194' | '8196';
48
- requestPoolSize?: number;
49
- subscriptionPoolSize?: number;
50
- validationMode?: string;
51
- subscriptionFlushThreshold?: number;
52
- maxEventQueueSize?: number;
53
- commandQueueSize?: number;
54
- subscriptionStreamCapacity?: number;
55
- overflowPolicy?: string;
56
- warmupServices?: string[];
57
- fieldCachePath?: string;
58
- auth?: AuthConfig;
59
- tls?: TlsConfig;
60
- numStartAttempts?: number;
61
- autoRestartOnDisconnection?: boolean;
62
- retryPolicy?: RetryPolicy;
63
- /** Hard per-request timeout in ms; 0 disables. Default 60000. */
64
- requestTimeoutMs?: number;
65
- /**
66
- * Warn threshold for a subscription's streams staying deactivated, in ms.
67
- * 0 disables. Default 30000.
68
- */
69
- streamsDeactivatedWarnMs?: number;
70
- /** Enable BLPAPI keep-alive pings. SDK default: true. */
71
- keepAliveEnabled?: boolean;
72
- /** Milliseconds of inactivity before keep-alive ping is sent. SDK default: 20000. */
73
- keepAliveInactivityMs?: number;
74
- /** Milliseconds to wait for a keep-alive response. SDK default: 10000. */
75
- keepAliveResponseTimeoutMs?: number;
76
- /** Slow-consumer hi water mark as fraction of maxEventQueueSize. SDK default: 0.75. */
77
- slowConsumerHiWaterMark?: number;
78
- /** Slow-consumer lo water mark as fraction of maxEventQueueSize. SDK default: 0.5. */
79
- slowConsumerLoWaterMark?: number;
80
- sdkLogLevel?: string;
81
- socks5?: Socks5Config;
82
- }
83
-
84
- export interface RequestInput {
85
- service: string;
86
- operation: string;
87
- requestOperation?: string;
88
- requestId?: string;
89
- extractor?: string;
90
- securities?: string[];
91
- security?: string;
92
- fields?: string[];
93
- overrides?: StringPair[];
94
- elements?: StringPair[];
95
- kwargs?: StringPair[];
96
- jsonElements?: string;
97
- startDate?: string;
98
- endDate?: string;
99
- startDatetime?: string;
100
- endDatetime?: string;
101
- requestTz?: string;
102
- outputTz?: string;
103
- eventType?: string;
104
- eventTypes?: string[];
105
- interval?: number;
106
- options?: StringPair[];
107
- fieldTypes?: StringPair[];
108
- includeSecurityErrors?: boolean;
109
- validateFields?: boolean;
110
- searchSpec?: string;
111
- fieldIds?: string[];
112
- format?: string;
113
- }
114
-
115
- export interface SubscriptionStats {
116
- messagesReceived: number;
117
- droppedBatches: number;
118
- batchesSent: number;
119
- slowConsumer: boolean;
120
- }
121
-
122
- export interface FieldInfo {
123
- fieldId: string;
124
- arrowType: string;
125
- description: string;
126
- category: string;
127
- }
128
-
129
- export interface BdpOptions {
130
- overrides?: Record<string, string | number | boolean>;
131
- kwargs?: Record<string, string | number | boolean>;
132
- format?: string;
133
- backend?: string;
134
- includeSecurityErrors?: boolean;
135
- }
136
-
137
- export interface BdhOptions {
138
- start?: string;
139
- end?: string;
140
- overrides?: Record<string, string | number | boolean>;
141
- kwargs?: Record<string, string | number | boolean>;
142
- format?: string;
143
- backend?: string;
144
- }
145
-
146
- export interface BdibOptions {
147
- start?: string;
148
- end?: string;
149
- eventType?: string;
150
- interval?: number;
151
- kwargs?: Record<string, string | number | boolean>;
152
- backend?: string;
153
- }
154
-
155
- export interface BdtickOptions {
156
- start?: string;
157
- end?: string;
158
- eventTypes?: string[];
159
- kwargs?: Record<string, string | number | boolean>;
160
- backend?: string;
161
- }
162
-
163
- export interface CdxOptions extends BdpOptions {
164
- recoveryRate?: number;
165
- recovery_rate?: number;
166
- }
167
-
168
- export class BlpError extends Error {
169
- readonly name: string;
170
- }
171
- export class BlpSessionError extends BlpError {}
172
- export class BlpRequestError extends BlpError {
173
- readonly service?: string;
174
- readonly operation?: string;
175
- readonly request_id?: string;
176
- readonly code?: string;
177
- }
178
- export class BlpValidationError extends BlpError {
179
- readonly element?: string;
180
- readonly suggestion?: string;
181
- }
182
- export class BlpTimeoutError extends BlpError {}
183
- export class BlpInternalError extends BlpError {}
184
- export function wrapError(napiError: Error): BlpError;
185
-
186
- export declare const Backend: Readonly<{
187
- ARROW: 'arrow';
188
- JSON: 'json';
189
- POLARS: 'polars';
190
- }>;
191
- export declare const Format: Readonly<{
192
- LONG: 'long';
193
- LONG_TYPED: 'long_typed';
194
- LONG_WITH_METADATA: 'long_with_metadata';
195
- SEMI_LONG: 'semi_long';
196
- }>;
197
-
198
- export interface BqlOptions {
199
- kwargs?: Record<string, string | number | boolean>;
200
- format?: string;
201
- backend?: string;
202
- }
203
- export interface BeqsOptions {
204
- asof?: string;
205
- screenType?: string;
206
- group?: string;
207
- overrides?: Record<string, string | number | boolean>;
208
- kwargs?: Record<string, string | number | boolean>;
209
- format?: string;
210
- backend?: string;
211
- }
212
- export interface BsrchOptions {
213
- overrides?: Record<string, string | number | boolean>;
214
- kwargs?: Record<string, string | number | boolean>;
215
- format?: string;
216
- backend?: string;
217
- }
218
- export interface BtaOptions {
219
- studyParams?: Record<string, string | number | boolean>;
220
- kwargs?: Record<string, string | number | boolean>;
221
- startDate?: string;
222
- endDate?: string;
223
- periodicity?: string;
224
- interval?: number;
225
- format?: string;
226
- backend?: string;
227
- }
228
- export interface BfldsOptions {
229
- fields?: string | string[];
230
- searchSpec?: string;
231
- kwargs?: Record<string, string | number | boolean>;
232
- format?: string;
233
- backend?: string;
234
- }
235
- export interface BlkpOptions {
236
- kwargs?: Record<string, string | number | boolean>;
237
- format?: string;
238
- backend?: string;
239
- }
240
- export interface BqrOptions {
241
- startDatetime?: string;
242
- endDatetime?: string;
243
- eventTypes?: string[];
244
- includeBrokerCodes?: boolean;
245
- backend?: string;
246
- }
247
- export interface YasOptions {
248
- settleDt?: string;
249
- yieldType?: number;
250
- spread?: number;
251
- yieldVal?: number;
252
- price?: number;
253
- benchmark?: string;
254
- backend?: string;
255
- }
256
- export interface PreferredsOptions {
257
- fields?: string[];
258
- backend?: string;
259
- }
260
- export interface CorporateBondsOptions {
261
- ccy?: string;
262
- fields?: string[];
263
- activeOnly?: boolean;
264
- backend?: string;
265
- }
266
- export interface FuturesResolveOptions {
267
- freq?: string;
268
- backend?: string;
269
- }
270
- export interface ActiveCdxOptions {
271
- lookbackDays?: number;
272
- backend?: string;
273
- }
274
- export interface DividendOptions {
275
- dvdType?: string;
276
- backend?: string;
277
- }
278
- export interface TurnoverOptions {
279
- ccy?: string;
280
- factor?: number;
281
- backend?: string;
282
- }
283
- export interface EtfHoldingsOptions {
284
- fields?: string[];
285
- backend?: string;
286
- }
287
- export interface RecipeBackendOptions {
288
- backend?: string;
289
- }
290
- export interface RequestOptions {
291
- overrides?: Record<string, string | number | boolean>;
292
- kwargs?: Record<string, string | number | boolean>;
293
- format?: string;
294
- backend?: string;
295
- }
296
- export interface StreamOptions {
297
- options?: string[];
298
- flushThreshold?: number;
299
- overflowPolicy?: string;
300
- streamCapacity?: number;
301
- }
302
-
303
- export class Subscription implements AsyncIterator<Table> {
304
- next(): Promise<IteratorResult<Table>>;
305
- add(tickers: string[]): Promise<void>;
306
- remove(tickers: string[]): Promise<void>;
307
- unsubscribe(drain?: boolean): Promise<Table[]>;
308
- readonly tickers: string[];
309
- readonly fields: string[];
310
- readonly isActive: boolean;
311
- readonly stats: SubscriptionStats;
312
- [Symbol.asyncIterator](): AsyncIterator<Table>;
313
- }
314
-
315
- export class Engine {
316
- constructor(host?: string, port?: number);
317
- static withConfig(config?: EngineConfig): Engine;
318
- request(params: RequestInput): Promise<Table>;
319
- requestRaw(params: RequestInput): Promise<Buffer>;
320
- bdp(
321
- tickers: string[],
322
- fields: string[],
323
- options?: BdpOptions,
324
- ): Promise<Table>;
325
- bds(
326
- tickers: string[],
327
- fields: string[],
328
- options?: BdpOptions,
329
- ): Promise<Table>;
330
- bdh(
331
- tickers: string[],
332
- fields: string[],
333
- options?: BdhOptions,
334
- ): Promise<Table>;
335
- bdib(ticker: string, options?: BdibOptions): Promise<Table>;
336
- bdtick(ticker: string, options?: BdtickOptions): Promise<Table>;
337
- resolveFieldTypes(
338
- fields: string[],
339
- overrides?: Record<string, string | number | boolean>,
340
- defaultType?: string,
341
- ): Promise<Record<string, string>>;
342
- getFieldInfo(field: string): FieldInfo | null;
343
- clearFieldCache(): void;
344
- saveFieldCache(): void;
345
- validateFields(fields: string[]): Promise<string[]>;
346
- isFieldValidationEnabled(): boolean;
347
- getSchema(service: string): Promise<unknown>;
348
- getOperation(service: string, operation: string): Promise<unknown>;
349
- listOperations(service: string): Promise<string[]>;
350
- getCachedSchema(service: string): unknown | null;
351
- invalidateSchema(service: string): void;
352
- clearSchemaCache(): void;
353
- listCachedSchemas(): string[];
354
- getEnumValues(
355
- service: string,
356
- operation: string,
357
- element: string,
358
- ): Promise<string[] | null>;
359
- listValidElements(
360
- service: string,
361
- operation: string,
362
- ): Promise<string[] | null>;
363
- subscribe(tickers: string[], fields: string[]): Promise<Subscription>;
364
- subscribeWithOptions(
365
- service: string,
366
- tickers: string[],
367
- fields: string[],
368
- options?: string[],
369
- flushThreshold?: number,
370
- overflowPolicy?: string,
371
- streamCapacity?: number,
372
- ): Promise<Subscription>;
373
- signalShutdown(): void;
374
- isAvailable(): boolean;
375
- bql(query: string, options?: BqlOptions): Promise<Table>;
376
- beqs(screen: string, options?: BeqsOptions): Promise<Table>;
377
- bsrch(searchSpec: string, options?: BsrchOptions): Promise<Table>;
378
- bta(
379
- ticker: string,
380
- study: string | Record<string, unknown>,
381
- options?: BtaOptions,
382
- ): Promise<Table>;
383
- bflds(options: BfldsOptions): Promise<Table>;
384
- blkp(query: string, options?: BlkpOptions): Promise<Table>;
385
- bport(
386
- portfolio: string,
387
- fields: string | string[],
388
- options?: RequestOptions,
389
- ): Promise<Table>;
390
- bcurves(ticker: string, options?: RequestOptions): Promise<Table>;
391
- bgovts(ticker: string, options?: RequestOptions): Promise<Table>;
392
- stream(
393
- tickers: string[],
394
- fields: string[],
395
- options?: StreamOptions,
396
- ): Promise<Subscription>;
397
- vwap(
398
- tickers: string[],
399
- fields: string[],
400
- options?: StreamOptions,
401
- ): Promise<Subscription>;
402
- mktbar(ticker: string, options?: StreamOptions): Promise<Subscription>;
403
- depth(ticker: string, options?: StreamOptions): Promise<Subscription>;
404
- chains(ticker: string, options?: StreamOptions): Promise<Subscription>;
405
- bops(service: string): Promise<string[]>;
406
- bschema(service: string, operation?: string): Promise<unknown>;
407
- fieldInfo(fields: string | string[], options?: BfldsOptions): Promise<Table>;
408
- fieldSearch(searchSpec: string, options?: BfldsOptions): Promise<Table>;
409
- bqr(ticker: string, options?: BqrOptions): Promise<Table>;
410
- yas(
411
- tickers: string | string[],
412
- fields: string | string[],
413
- options?: YasOptions,
414
- ): Promise<Table>;
415
- preferreds(equityTicker: string, options?: PreferredsOptions): Promise<Table>;
416
- corporateBonds(
417
- ticker: string,
418
- options?: CorporateBondsOptions,
419
- ): Promise<Table>;
420
- futTicker(
421
- genTicker: string,
422
- dt: string,
423
- options?: FuturesResolveOptions,
424
- ): Promise<Table>;
425
- activeFutures(
426
- genTicker: string,
427
- dt: string,
428
- options?: FuturesResolveOptions,
429
- ): Promise<Table>;
430
- cdxTicker(
431
- genTicker: string,
432
- dt: string,
433
- options?: RecipeBackendOptions,
434
- ): Promise<Table>;
435
- activeCdx(
436
- genTicker: string,
437
- dt: string,
438
- options?: ActiveCdxOptions,
439
- ): Promise<Table>;
440
- dividend(
441
- tickers: string | string[],
442
- startDate: string,
443
- endDate: string,
444
- options?: DividendOptions,
445
- ): Promise<Table>;
446
- turnover(
447
- tickers: string | string[],
448
- startDate: string,
449
- endDate: string,
450
- options?: TurnoverOptions,
451
- ): Promise<Table>;
452
- etfHoldings(etfTicker: string, options?: EtfHoldingsOptions): Promise<Table>;
453
- currencyConversion(
454
- ticker: string,
455
- targetCcy: string,
456
- startDate: string,
457
- endDate: string,
458
- options?: RecipeBackendOptions,
459
- ): Promise<Table>;
460
- }
461
-
462
- export interface BlpNamespace {
463
- bdp(
464
- tickers: string | string[],
465
- fields: string | string[],
466
- options?: BdpOptions,
467
- ): Promise<Table>;
468
- bdh(
469
- tickers: string | string[],
470
- fields: string | string[],
471
- options?: BdhOptions,
472
- ): Promise<Table>;
473
- bds(
474
- tickers: string | string[],
475
- fields: string | string[],
476
- options?: BdpOptions,
477
- ): Promise<Table>;
478
- bdib(ticker: string, options?: BdibOptions): Promise<Table>;
479
- bdtick(ticker: string, options?: BdtickOptions): Promise<Table>;
480
- subscribe(
481
- tickers: string | string[],
482
- fields: string | string[],
483
- ): Promise<Subscription>;
484
- abdp(
485
- tickers: string | string[],
486
- fields: string | string[],
487
- options?: BdpOptions,
488
- ): Promise<Table>;
489
- abdh(
490
- tickers: string | string[],
491
- fields: string | string[],
492
- start?: string,
493
- end?: string,
494
- options?: BdhOptions,
495
- ): Promise<Table>;
496
- abds(
497
- tickers: string | string[],
498
- fields: string | string[],
499
- overrides?: Record<string, string | number | boolean>,
500
- options?: BdpOptions,
501
- ): Promise<Table>;
502
- abdib(
503
- ticker: string,
504
- dt?: string,
505
- interval?: number,
506
- options?: BdibOptions,
507
- ): Promise<Table>;
508
- abdtick(
509
- ticker: string,
510
- start: string,
511
- end: string,
512
- options?: BdtickOptions,
513
- ): Promise<Table>;
514
- asubscribe(
515
- tickers: string | string[],
516
- fields: string | string[],
517
- ): Promise<Subscription>;
518
- }
519
-
520
- export interface CdxNamespace {
521
- acdx_info(ticker: string, options?: BdpOptions): Promise<Table>;
522
- acdx_pricing(ticker: string, options?: CdxOptions): Promise<Table>;
523
- acdx_risk(ticker: string, options?: CdxOptions): Promise<Table>;
524
- }
525
-
526
- export interface TimeRange {
527
- start: string;
528
- end: string;
529
- }
530
-
531
- export interface TickerParts {
532
- prefix: string;
533
- index: number;
534
- asset: string;
535
- exchange?: string;
536
- }
537
-
538
- export interface FuturesCandidate {
539
- ticker: string;
540
- year: number;
541
- month: number;
542
- }
543
-
544
- export interface CdxTickerInfo {
545
- index: string;
546
- series: string;
547
- tenor: string;
548
- asset: string;
549
- isGeneric: boolean;
550
- seriesNum?: number;
551
- }
552
-
553
- export interface FxPairInfo {
554
- fxPair: string;
555
- factor: number;
556
- fromCcy: string;
557
- toCcy: string;
558
- }
559
-
560
- export interface SessionWindowsInfo {
561
- day?: TimeRange;
562
- allday?: TimeRange;
563
- pre?: TimeRange;
564
- post?: TimeRange;
565
- am?: TimeRange;
566
- pm?: TimeRange;
567
- }
568
-
569
- export interface MarketRule {
570
- preMinutes: number;
571
- postMinutes: number;
572
- lunchStartMin?: number;
573
- lunchEndMin?: number;
574
- isContinuous: boolean;
575
- }
576
-
577
- export interface ExchangeInfoResult {
578
- ticker: string;
579
- mic?: string;
580
- exchCode?: string;
581
- timezone: string;
582
- utcOffset?: number;
583
- source: string;
584
- day?: TimeRange;
585
- allday?: TimeRange;
586
- pre?: TimeRange;
587
- post?: TimeRange;
588
- am?: TimeRange;
589
- pm?: TimeRange;
590
- }
591
-
592
- export interface ExchangeOverrideInput {
593
- timezone?: string;
594
- mic?: string;
595
- exchCode?: string;
596
- day?: TimeRange;
597
- allday?: TimeRange;
598
- pre?: TimeRange;
599
- post?: TimeRange;
600
- am?: TimeRange;
601
- pm?: TimeRange;
602
- }
603
-
604
- export interface ExtNamespace {
605
- cdx: CdxNamespace;
606
-
607
- // Date utilities
608
- parseDate(dateStr: string): number[];
609
- fmtDate(year: number, month: number, day: number, fmt?: string): string;
610
-
611
- // Pivot utilities
612
- pivotToWide(ipcBuffer: Buffer): Buffer;
613
- isLongFormat(ipcBuffer: Buffer): boolean;
614
-
615
- // Ticker utilities
616
- parseTicker(ticker: string): TickerParts;
617
- isSpecificContract(ticker: string): boolean;
618
- buildFuturesTicker(
619
- prefix: string,
620
- monthCode: string,
621
- year: string,
622
- asset: string,
623
- ): string;
624
- normalizeTickers(tickers: string[]): string[];
625
- filterEquityTickers(tickers: string[]): string[];
626
-
627
- // Futures resolution
628
- generateFuturesCandidates(
629
- genTicker: string,
630
- year: number,
631
- month: number,
632
- day: number,
633
- freq?: string,
634
- count?: number,
635
- ): FuturesCandidate[];
636
- validateGenericTicker(ticker: string): void;
637
- contractIndex(genTicker: string): number;
638
- filterCandidatesByCycle(
639
- candidates: FuturesCandidate[],
640
- cycle: string,
641
- ): FuturesCandidate[];
642
- filterValidContracts(
643
- contracts: StringPair[],
644
- year: number,
645
- month: number,
646
- day: number,
647
- ): string[];
648
-
649
- // CDX resolution
650
- parseCdxTicker(ticker: string): CdxTickerInfo;
651
- previousCdxSeries(ticker: string): string | null;
652
- cdxGenToSpecific(genTicker: string, series: number): string;
653
-
654
- // Currency utilities
655
- buildFxPair(fromCcy: string, toCcy: string): FxPairInfo;
656
- sameCurrency(ccy1: string, ccy2: string): boolean;
657
- currenciesNeedingConversion(currencies: string[], target: string): string[];
658
-
659
- // Column renaming
660
- renameDividendColumns(columns: string[]): StringPair[];
661
- renameEtfColumns(columns: string[]): StringPair[];
662
-
663
- // Constants
664
- getMonthCode(monthName: string): string | null;
665
- getMonthName(code: string): string | null;
666
- getFuturesMonths(): StringPair[];
667
- getDvdType(typ: string): string | null;
668
- getDvdTypes(): StringPair[];
669
- getDvdCols(): StringPair[];
670
- getEtfCols(): StringPair[];
671
-
672
- // Fixed income / YAS
673
- buildYasOverrides(
674
- settleDt?: string,
675
- yieldType?: number,
676
- spread?: number,
677
- yieldVal?: number,
678
- price?: number,
679
- benchmark?: string,
680
- ): StringPair[];
681
-
682
- // Earnings utilities
683
- buildEarningHeaderRename(
684
- headerRow: StringPair[],
685
- dataColumns: string[],
686
- ): StringPair[];
687
- calculateLevelPercentages(
688
- values: (number | null)[],
689
- levels: (number | null)[],
690
- ): (number | null)[];
691
-
692
- // BQL query builders
693
- buildPreferredsQuery(equityTicker: string, extraFields?: string[]): string;
694
- buildCorporateBondsQuery(
695
- ticker: string,
696
- ccy?: string,
697
- extraFields?: string[],
698
- activeOnly?: boolean,
699
- ): string;
700
- buildEtfHoldingsQuery(etfTicker: string, extraFields?: string[]): string;
701
-
702
- // DateTime defaults
703
- defaultTurnoverDates(startDate?: string, endDate?: string): TimeRange;
704
- defaultBqrDatetimes(startDatetime?: string, endDatetime?: string): TimeRange;
705
-
706
- // Markets -- sessions & timezone
707
- deriveSessions(
708
- dayStart: string,
709
- dayEnd: string,
710
- mic?: string,
711
- exchCode?: string,
712
- ): SessionWindowsInfo;
713
- getMarketRule(mic?: string, exchCode?: string): MarketRule | null;
714
- inferTimezone(countryIso: string): string | null;
715
- setExchangeOverride(ticker: string, input: ExchangeOverrideInput): void;
716
- getExchangeOverride(ticker: string): ExchangeInfoResult | null;
717
- clearExchangeOverride(ticker?: string): void;
718
- listExchangeOverrides(): ExchangeInfoResult[];
719
- sessionTimesToUtc(
720
- startTime: string,
721
- endTime: string,
722
- exchangeTz: string,
723
- date: string,
724
- ): TimeRange;
725
- }
726
-
727
- export function connect(config?: EngineConfig): Promise<Engine>;
728
- export function configure(config?: EngineConfig): EngineConfig | undefined;
729
- export function configure(
730
- host?: string,
731
- port?: number,
732
- ): EngineConfig | undefined;
733
- export function bdp(
734
- tickers: string | string[],
735
- fields: string | string[],
736
- options?: BdpOptions,
737
- ): Promise<Table>;
738
- export function bdh(
739
- tickers: string | string[],
740
- fields: string | string[],
741
- options?: BdhOptions,
742
- ): Promise<Table>;
743
- export function bds(
744
- tickers: string | string[],
745
- fields: string | string[],
746
- options?: BdpOptions,
747
- ): Promise<Table>;
748
- export function bdib(ticker: string, options?: BdibOptions): Promise<Table>;
749
- export function bdtick(ticker: string, options?: BdtickOptions): Promise<Table>;
750
- export function subscribe(
751
- tickers: string | string[],
752
- fields: string | string[],
753
- ): Promise<Subscription>;
754
- export function abdp(
755
- tickers: string | string[],
756
- fields: string | string[],
757
- options?: BdpOptions,
758
- ): Promise<Table>;
759
- export function abdh(
760
- tickers: string | string[],
761
- fields: string | string[],
762
- start?: string,
763
- end?: string,
764
- options?: BdhOptions,
765
- ): Promise<Table>;
766
- export function abds(
767
- tickers: string | string[],
768
- fields: string | string[],
769
- overrides?: Record<string, string | number | boolean>,
770
- options?: BdpOptions,
771
- ): Promise<Table>;
772
- export function abdib(
773
- ticker: string,
774
- dt?: string,
775
- interval?: number,
776
- options?: BdibOptions,
777
- ): Promise<Table>;
778
- export function abdtick(
779
- ticker: string,
780
- start: string,
781
- end: string,
782
- options?: BdtickOptions,
783
- ): Promise<Table>;
784
- export function asubscribe(
785
- tickers: string | string[],
786
- fields: string | string[],
787
- ): Promise<Subscription>;
788
- export const blp: BlpNamespace;
789
- export const ext: ExtNamespace;
790
- export function version(): string;
791
- export function setLogLevel(level: string): void;
792
- export function getLogLevel(): string;