@binance/alpha 1.0.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.
@@ -0,0 +1,1221 @@
1
+ import { ALPHA_REST_API_PROD_URL, BadRequestError, ConfigurationRestAPI, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, RestApiResponse, ServerError, TooManyRequestsError, UnauthorizedError } from "@binance/common";
2
+
3
+ //#region src/rest-api/types/aggregated-trades-response-data-inner.d.ts
4
+
5
+ /**
6
+ * Binance Alpha REST API
7
+ *
8
+ * OpenAPI Specification for the Binance Alpha REST API
9
+ *
10
+ * The version of the OpenAPI document: 1.0.0
11
+ *
12
+ *
13
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
14
+ * https://openapi-generator.tech
15
+ * Do not edit the class manually.
16
+ */
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface AggregatedTradesResponseDataInner
21
+ */
22
+ interface AggregatedTradesResponseDataInner {
23
+ /**
24
+ *
25
+ * @type {number | bigint}
26
+ * @memberof AggregatedTradesResponseDataInner
27
+ */
28
+ a?: number | bigint;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof AggregatedTradesResponseDataInner
33
+ */
34
+ p?: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof AggregatedTradesResponseDataInner
39
+ */
40
+ q?: string;
41
+ /**
42
+ *
43
+ * @type {number | bigint}
44
+ * @memberof AggregatedTradesResponseDataInner
45
+ */
46
+ f?: number | bigint;
47
+ /**
48
+ *
49
+ * @type {number | bigint}
50
+ * @memberof AggregatedTradesResponseDataInner
51
+ */
52
+ l?: number | bigint;
53
+ /**
54
+ *
55
+ * @type {number | bigint}
56
+ * @memberof AggregatedTradesResponseDataInner
57
+ */
58
+ T?: number | bigint;
59
+ /**
60
+ *
61
+ * @type {boolean}
62
+ * @memberof AggregatedTradesResponseDataInner
63
+ */
64
+ m?: boolean;
65
+ }
66
+ //#endregion
67
+ //#region src/rest-api/types/aggregated-trades-response.d.ts
68
+
69
+ /**
70
+ *
71
+ * @export
72
+ * @interface AggregatedTradesResponse
73
+ */
74
+ interface AggregatedTradesResponse {
75
+ /**
76
+ *
77
+ * @type {string}
78
+ * @memberof AggregatedTradesResponse
79
+ */
80
+ code?: string;
81
+ /**
82
+ *
83
+ * @type {string}
84
+ * @memberof AggregatedTradesResponse
85
+ */
86
+ message?: string;
87
+ /**
88
+ *
89
+ * @type {string}
90
+ * @memberof AggregatedTradesResponse
91
+ */
92
+ messageDetail?: string;
93
+ /**
94
+ *
95
+ * @type {Array<AggregatedTradesResponseDataInner>}
96
+ * @memberof AggregatedTradesResponse
97
+ */
98
+ data?: Array<AggregatedTradesResponseDataInner>;
99
+ }
100
+ //#endregion
101
+ //#region src/rest-api/types/get-exchange-info-response-data-assets-inner.d.ts
102
+ /**
103
+ * Binance Alpha REST API
104
+ *
105
+ * OpenAPI Specification for the Binance Alpha REST API
106
+ *
107
+ * The version of the OpenAPI document: 1.0.0
108
+ *
109
+ *
110
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
111
+ * https://openapi-generator.tech
112
+ * Do not edit the class manually.
113
+ */
114
+ /**
115
+ *
116
+ * @export
117
+ * @interface GetExchangeInfoResponseDataAssetsInner
118
+ */
119
+ interface GetExchangeInfoResponseDataAssetsInner {
120
+ /**
121
+ *
122
+ * @type {string}
123
+ * @memberof GetExchangeInfoResponseDataAssetsInner
124
+ */
125
+ asset?: string;
126
+ }
127
+ //#endregion
128
+ //#region src/rest-api/types/get-exchange-info-response-data-symbols-inner-filters-inner.d.ts
129
+ /**
130
+ * Binance Alpha REST API
131
+ *
132
+ * OpenAPI Specification for the Binance Alpha REST API
133
+ *
134
+ * The version of the OpenAPI document: 1.0.0
135
+ *
136
+ *
137
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
138
+ * https://openapi-generator.tech
139
+ * Do not edit the class manually.
140
+ */
141
+ /**
142
+ *
143
+ * @export
144
+ * @interface GetExchangeInfoResponseDataSymbolsInnerFiltersInner
145
+ */
146
+ interface GetExchangeInfoResponseDataSymbolsInnerFiltersInner {
147
+ /**
148
+ *
149
+ * @type {string}
150
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
151
+ */
152
+ filterType?: string;
153
+ /**
154
+ *
155
+ * @type {string}
156
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
157
+ */
158
+ minPrice?: string;
159
+ /**
160
+ *
161
+ * @type {string}
162
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
163
+ */
164
+ maxPrice?: string;
165
+ /**
166
+ *
167
+ * @type {string}
168
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
169
+ */
170
+ tickSize?: string;
171
+ /**
172
+ *
173
+ * @type {string}
174
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
175
+ */
176
+ stepSize?: string;
177
+ /**
178
+ *
179
+ * @type {string}
180
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
181
+ */
182
+ maxQty?: string;
183
+ /**
184
+ *
185
+ * @type {string}
186
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
187
+ */
188
+ minQty?: string;
189
+ /**
190
+ *
191
+ * @type {number | bigint}
192
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
193
+ */
194
+ limit?: number | bigint;
195
+ /**
196
+ *
197
+ * @type {string}
198
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
199
+ */
200
+ minNotional?: string;
201
+ /**
202
+ *
203
+ * @type {string}
204
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
205
+ */
206
+ maxNotional?: string;
207
+ /**
208
+ *
209
+ * @type {string}
210
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
211
+ */
212
+ multiplierDown?: string;
213
+ /**
214
+ *
215
+ * @type {string}
216
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
217
+ */
218
+ multiplierUp?: string;
219
+ /**
220
+ *
221
+ * @type {string}
222
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
223
+ */
224
+ bidMultiplierUp?: string;
225
+ /**
226
+ *
227
+ * @type {string}
228
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
229
+ */
230
+ askMultiplierUp?: string;
231
+ /**
232
+ *
233
+ * @type {string}
234
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
235
+ */
236
+ bidMultiplierDown?: string;
237
+ /**
238
+ *
239
+ * @type {string}
240
+ * @memberof GetExchangeInfoResponseDataSymbolsInnerFiltersInner
241
+ */
242
+ askMultiplierDown?: string;
243
+ }
244
+ //#endregion
245
+ //#region src/rest-api/types/get-exchange-info-response-data-symbols-inner.d.ts
246
+ /**
247
+ *
248
+ * @export
249
+ * @interface GetExchangeInfoResponseDataSymbolsInner
250
+ */
251
+ interface GetExchangeInfoResponseDataSymbolsInner {
252
+ /**
253
+ *
254
+ * @type {string}
255
+ * @memberof GetExchangeInfoResponseDataSymbolsInner
256
+ */
257
+ symbol?: string;
258
+ /**
259
+ *
260
+ * @type {string}
261
+ * @memberof GetExchangeInfoResponseDataSymbolsInner
262
+ */
263
+ status?: string;
264
+ /**
265
+ *
266
+ * @type {string}
267
+ * @memberof GetExchangeInfoResponseDataSymbolsInner
268
+ */
269
+ baseAsset?: string;
270
+ /**
271
+ *
272
+ * @type {string}
273
+ * @memberof GetExchangeInfoResponseDataSymbolsInner
274
+ */
275
+ quoteAsset?: string;
276
+ /**
277
+ *
278
+ * @type {number | bigint}
279
+ * @memberof GetExchangeInfoResponseDataSymbolsInner
280
+ */
281
+ pricePrecision?: number | bigint;
282
+ /**
283
+ *
284
+ * @type {number | bigint}
285
+ * @memberof GetExchangeInfoResponseDataSymbolsInner
286
+ */
287
+ quantityPrecision?: number | bigint;
288
+ /**
289
+ *
290
+ * @type {number | bigint}
291
+ * @memberof GetExchangeInfoResponseDataSymbolsInner
292
+ */
293
+ baseAssetPrecision?: number | bigint;
294
+ /**
295
+ *
296
+ * @type {number | bigint}
297
+ * @memberof GetExchangeInfoResponseDataSymbolsInner
298
+ */
299
+ quotePrecision?: number | bigint;
300
+ /**
301
+ *
302
+ * @type {Array<GetExchangeInfoResponseDataSymbolsInnerFiltersInner>}
303
+ * @memberof GetExchangeInfoResponseDataSymbolsInner
304
+ */
305
+ filters?: Array<GetExchangeInfoResponseDataSymbolsInnerFiltersInner>;
306
+ /**
307
+ *
308
+ * @type {Array<string>}
309
+ * @memberof GetExchangeInfoResponseDataSymbolsInner
310
+ */
311
+ orderTypes?: Array<string>;
312
+ }
313
+ //#endregion
314
+ //#region src/rest-api/types/get-exchange-info-response-data.d.ts
315
+ /**
316
+ *
317
+ * @export
318
+ * @interface GetExchangeInfoResponseData
319
+ */
320
+ interface GetExchangeInfoResponseData {
321
+ /**
322
+ *
323
+ * @type {string}
324
+ * @memberof GetExchangeInfoResponseData
325
+ */
326
+ timezone?: string;
327
+ /**
328
+ *
329
+ * @type {Array<GetExchangeInfoResponseDataAssetsInner>}
330
+ * @memberof GetExchangeInfoResponseData
331
+ */
332
+ assets?: Array<GetExchangeInfoResponseDataAssetsInner>;
333
+ /**
334
+ *
335
+ * @type {Array<GetExchangeInfoResponseDataSymbolsInner>}
336
+ * @memberof GetExchangeInfoResponseData
337
+ */
338
+ symbols?: Array<GetExchangeInfoResponseDataSymbolsInner>;
339
+ /**
340
+ *
341
+ * @type {string}
342
+ * @memberof GetExchangeInfoResponseData
343
+ */
344
+ orderTypes?: string;
345
+ }
346
+ //#endregion
347
+ //#region src/rest-api/types/get-exchange-info-response.d.ts
348
+ /**
349
+ *
350
+ * @export
351
+ * @interface GetExchangeInfoResponse
352
+ */
353
+ interface GetExchangeInfoResponse {
354
+ /**
355
+ *
356
+ * @type {string}
357
+ * @memberof GetExchangeInfoResponse
358
+ */
359
+ code?: string;
360
+ /**
361
+ *
362
+ * @type {string}
363
+ * @memberof GetExchangeInfoResponse
364
+ */
365
+ message?: string;
366
+ /**
367
+ *
368
+ * @type {string}
369
+ * @memberof GetExchangeInfoResponse
370
+ */
371
+ messageDetail?: string;
372
+ /**
373
+ *
374
+ * @type {boolean}
375
+ * @memberof GetExchangeInfoResponse
376
+ */
377
+ success?: boolean;
378
+ /**
379
+ *
380
+ * @type {GetExchangeInfoResponseData}
381
+ * @memberof GetExchangeInfoResponse
382
+ */
383
+ data?: GetExchangeInfoResponseData;
384
+ }
385
+ //#endregion
386
+ //#region src/rest-api/types/klines-response-data-item-inner.d.ts
387
+ /**
388
+ * Binance Alpha REST API
389
+ *
390
+ * OpenAPI Specification for the Binance Alpha REST API
391
+ *
392
+ * The version of the OpenAPI document: 1.0.0
393
+ *
394
+ *
395
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
396
+ * https://openapi-generator.tech
397
+ * Do not edit the class manually.
398
+ */
399
+ /**
400
+ * @type KlinesResponseDataItemInner
401
+ * @export
402
+ */
403
+ type KlinesResponseDataItemInner = number | string;
404
+ //#endregion
405
+ //#region src/rest-api/types/klines-response-data-item.d.ts
406
+ /**
407
+ *
408
+ * @export
409
+ * @interface KlinesResponseDataItem
410
+ */
411
+ interface KlinesResponseDataItem extends Array<KlinesResponseDataItemInner> {}
412
+ //#endregion
413
+ //#region src/rest-api/types/klines-response.d.ts
414
+ /**
415
+ *
416
+ * @export
417
+ * @interface KlinesResponse
418
+ */
419
+ interface KlinesResponse {
420
+ /**
421
+ *
422
+ * @type {string}
423
+ * @memberof KlinesResponse
424
+ */
425
+ code?: string;
426
+ /**
427
+ *
428
+ * @type {string}
429
+ * @memberof KlinesResponse
430
+ */
431
+ message?: string;
432
+ /**
433
+ *
434
+ * @type {string}
435
+ * @memberof KlinesResponse
436
+ */
437
+ messageDetail?: string;
438
+ /**
439
+ *
440
+ * @type {boolean}
441
+ * @memberof KlinesResponse
442
+ */
443
+ success?: boolean;
444
+ /**
445
+ *
446
+ * @type {Array<KlinesResponseDataItem>}
447
+ * @memberof KlinesResponse
448
+ */
449
+ data?: Array<KlinesResponseDataItem>;
450
+ }
451
+ //#endregion
452
+ //#region src/rest-api/types/ticker-response-data.d.ts
453
+ /**
454
+ * Binance Alpha REST API
455
+ *
456
+ * OpenAPI Specification for the Binance Alpha REST API
457
+ *
458
+ * The version of the OpenAPI document: 1.0.0
459
+ *
460
+ *
461
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
462
+ * https://openapi-generator.tech
463
+ * Do not edit the class manually.
464
+ */
465
+ /**
466
+ *
467
+ * @export
468
+ * @interface TickerResponseData
469
+ */
470
+ interface TickerResponseData {
471
+ /**
472
+ *
473
+ * @type {string}
474
+ * @memberof TickerResponseData
475
+ */
476
+ symbol?: string;
477
+ /**
478
+ *
479
+ * @type {string}
480
+ * @memberof TickerResponseData
481
+ */
482
+ priceChange?: string;
483
+ /**
484
+ *
485
+ * @type {string}
486
+ * @memberof TickerResponseData
487
+ */
488
+ priceChangePercent?: string;
489
+ /**
490
+ *
491
+ * @type {string}
492
+ * @memberof TickerResponseData
493
+ */
494
+ weightedAvgPrice?: string;
495
+ /**
496
+ *
497
+ * @type {string}
498
+ * @memberof TickerResponseData
499
+ */
500
+ lastPrice?: string;
501
+ /**
502
+ *
503
+ * @type {string}
504
+ * @memberof TickerResponseData
505
+ */
506
+ lastQty?: string;
507
+ /**
508
+ *
509
+ * @type {string}
510
+ * @memberof TickerResponseData
511
+ */
512
+ openPrice?: string;
513
+ /**
514
+ *
515
+ * @type {string}
516
+ * @memberof TickerResponseData
517
+ */
518
+ highPrice?: string;
519
+ /**
520
+ *
521
+ * @type {string}
522
+ * @memberof TickerResponseData
523
+ */
524
+ lowPrice?: string;
525
+ /**
526
+ *
527
+ * @type {string}
528
+ * @memberof TickerResponseData
529
+ */
530
+ volume?: string;
531
+ /**
532
+ *
533
+ * @type {string}
534
+ * @memberof TickerResponseData
535
+ */
536
+ quoteVolume?: string;
537
+ /**
538
+ *
539
+ * @type {number | bigint}
540
+ * @memberof TickerResponseData
541
+ */
542
+ openTime?: number | bigint;
543
+ /**
544
+ *
545
+ * @type {number | bigint}
546
+ * @memberof TickerResponseData
547
+ */
548
+ closeTime?: number | bigint;
549
+ /**
550
+ *
551
+ * @type {number | bigint}
552
+ * @memberof TickerResponseData
553
+ */
554
+ firstId?: number | bigint;
555
+ /**
556
+ *
557
+ * @type {number | bigint}
558
+ * @memberof TickerResponseData
559
+ */
560
+ lastId?: number | bigint;
561
+ /**
562
+ *
563
+ * @type {number | bigint}
564
+ * @memberof TickerResponseData
565
+ */
566
+ count?: number | bigint;
567
+ }
568
+ //#endregion
569
+ //#region src/rest-api/types/ticker-response.d.ts
570
+ /**
571
+ *
572
+ * @export
573
+ * @interface TickerResponse
574
+ */
575
+ interface TickerResponse {
576
+ /**
577
+ *
578
+ * @type {string}
579
+ * @memberof TickerResponse
580
+ */
581
+ code?: string;
582
+ /**
583
+ *
584
+ * @type {string}
585
+ * @memberof TickerResponse
586
+ */
587
+ message?: string;
588
+ /**
589
+ *
590
+ * @type {string}
591
+ * @memberof TickerResponse
592
+ */
593
+ messageDetail?: string;
594
+ /**
595
+ *
596
+ * @type {TickerResponseData}
597
+ * @memberof TickerResponse
598
+ */
599
+ data?: TickerResponseData;
600
+ /**
601
+ *
602
+ * @type {boolean}
603
+ * @memberof TickerResponse
604
+ */
605
+ success?: boolean;
606
+ }
607
+ //#endregion
608
+ //#region src/rest-api/types/token-list-response-data-inner.d.ts
609
+ /**
610
+ * Binance Alpha REST API
611
+ *
612
+ * OpenAPI Specification for the Binance Alpha REST API
613
+ *
614
+ * The version of the OpenAPI document: 1.0.0
615
+ *
616
+ *
617
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
618
+ * https://openapi-generator.tech
619
+ * Do not edit the class manually.
620
+ */
621
+ /**
622
+ *
623
+ * @export
624
+ * @interface TokenListResponseDataInner
625
+ */
626
+ interface TokenListResponseDataInner {
627
+ /**
628
+ *
629
+ * @type {string}
630
+ * @memberof TokenListResponseDataInner
631
+ */
632
+ tokenId?: string;
633
+ /**
634
+ *
635
+ * @type {string}
636
+ * @memberof TokenListResponseDataInner
637
+ */
638
+ chainId?: string;
639
+ /**
640
+ *
641
+ * @type {string}
642
+ * @memberof TokenListResponseDataInner
643
+ */
644
+ chainIconUrl?: string;
645
+ /**
646
+ *
647
+ * @type {string}
648
+ * @memberof TokenListResponseDataInner
649
+ */
650
+ chainName?: string;
651
+ /**
652
+ *
653
+ * @type {string}
654
+ * @memberof TokenListResponseDataInner
655
+ */
656
+ contractAddress?: string;
657
+ /**
658
+ *
659
+ * @type {string}
660
+ * @memberof TokenListResponseDataInner
661
+ */
662
+ name?: string;
663
+ /**
664
+ *
665
+ * @type {string}
666
+ * @memberof TokenListResponseDataInner
667
+ */
668
+ symbol?: string;
669
+ /**
670
+ *
671
+ * @type {string}
672
+ * @memberof TokenListResponseDataInner
673
+ */
674
+ iconUrl?: string;
675
+ /**
676
+ *
677
+ * @type {string}
678
+ * @memberof TokenListResponseDataInner
679
+ */
680
+ price?: string;
681
+ /**
682
+ *
683
+ * @type {string}
684
+ * @memberof TokenListResponseDataInner
685
+ */
686
+ percentChange24h?: string;
687
+ /**
688
+ *
689
+ * @type {string}
690
+ * @memberof TokenListResponseDataInner
691
+ */
692
+ volume24h?: string;
693
+ /**
694
+ *
695
+ * @type {string}
696
+ * @memberof TokenListResponseDataInner
697
+ */
698
+ marketCap?: string;
699
+ /**
700
+ *
701
+ * @type {string}
702
+ * @memberof TokenListResponseDataInner
703
+ */
704
+ fdv?: string;
705
+ /**
706
+ *
707
+ * @type {string}
708
+ * @memberof TokenListResponseDataInner
709
+ */
710
+ liquidity?: string;
711
+ /**
712
+ *
713
+ * @type {string}
714
+ * @memberof TokenListResponseDataInner
715
+ */
716
+ totalSupply?: string;
717
+ /**
718
+ *
719
+ * @type {string}
720
+ * @memberof TokenListResponseDataInner
721
+ */
722
+ circulatingSupply?: string;
723
+ /**
724
+ *
725
+ * @type {string}
726
+ * @memberof TokenListResponseDataInner
727
+ */
728
+ holders?: string;
729
+ /**
730
+ *
731
+ * @type {number | bigint}
732
+ * @memberof TokenListResponseDataInner
733
+ */
734
+ decimals?: number | bigint;
735
+ /**
736
+ *
737
+ * @type {boolean}
738
+ * @memberof TokenListResponseDataInner
739
+ */
740
+ listingCex?: boolean;
741
+ /**
742
+ *
743
+ * @type {boolean}
744
+ * @memberof TokenListResponseDataInner
745
+ */
746
+ hotTag?: boolean;
747
+ /**
748
+ *
749
+ * @type {string}
750
+ * @memberof TokenListResponseDataInner
751
+ */
752
+ cexCoinName?: string;
753
+ /**
754
+ *
755
+ * @type {boolean}
756
+ * @memberof TokenListResponseDataInner
757
+ */
758
+ canTransfer?: boolean;
759
+ /**
760
+ *
761
+ * @type {number | bigint}
762
+ * @memberof TokenListResponseDataInner
763
+ */
764
+ denomination?: number | bigint;
765
+ /**
766
+ *
767
+ * @type {boolean}
768
+ * @memberof TokenListResponseDataInner
769
+ */
770
+ offline?: boolean;
771
+ /**
772
+ *
773
+ * @type {number | bigint}
774
+ * @memberof TokenListResponseDataInner
775
+ */
776
+ tradeDecimal?: number | bigint;
777
+ /**
778
+ *
779
+ * @type {string}
780
+ * @memberof TokenListResponseDataInner
781
+ */
782
+ alphaId?: string;
783
+ /**
784
+ *
785
+ * @type {boolean}
786
+ * @memberof TokenListResponseDataInner
787
+ */
788
+ offsell?: boolean;
789
+ /**
790
+ *
791
+ * @type {string}
792
+ * @memberof TokenListResponseDataInner
793
+ */
794
+ priceHigh24h?: string;
795
+ /**
796
+ *
797
+ * @type {string}
798
+ * @memberof TokenListResponseDataInner
799
+ */
800
+ priceLow24h?: string;
801
+ /**
802
+ *
803
+ * @type {string}
804
+ * @memberof TokenListResponseDataInner
805
+ */
806
+ count24h?: string;
807
+ /**
808
+ *
809
+ * @type {boolean}
810
+ * @memberof TokenListResponseDataInner
811
+ */
812
+ onlineTge?: boolean;
813
+ /**
814
+ *
815
+ * @type {boolean}
816
+ * @memberof TokenListResponseDataInner
817
+ */
818
+ onlineAirdrop?: boolean;
819
+ /**
820
+ *
821
+ * @type {number | bigint}
822
+ * @memberof TokenListResponseDataInner
823
+ */
824
+ score?: number | bigint;
825
+ /**
826
+ *
827
+ * @type {boolean}
828
+ * @memberof TokenListResponseDataInner
829
+ */
830
+ cexOffDisplay?: boolean;
831
+ /**
832
+ *
833
+ * @type {boolean}
834
+ * @memberof TokenListResponseDataInner
835
+ */
836
+ stockState?: boolean;
837
+ /**
838
+ *
839
+ * @type {number | bigint}
840
+ * @memberof TokenListResponseDataInner
841
+ */
842
+ listingTime?: number | bigint;
843
+ /**
844
+ *
845
+ * @type {number | bigint}
846
+ * @memberof TokenListResponseDataInner
847
+ */
848
+ mulPoint?: number | bigint;
849
+ /**
850
+ *
851
+ * @type {boolean}
852
+ * @memberof TokenListResponseDataInner
853
+ */
854
+ bnExclusiveState?: boolean;
855
+ }
856
+ //#endregion
857
+ //#region src/rest-api/types/token-list-response.d.ts
858
+ /**
859
+ *
860
+ * @export
861
+ * @interface TokenListResponse
862
+ */
863
+ interface TokenListResponse {
864
+ /**
865
+ *
866
+ * @type {string}
867
+ * @memberof TokenListResponse
868
+ */
869
+ code?: string;
870
+ /**
871
+ *
872
+ * @type {string}
873
+ * @memberof TokenListResponse
874
+ */
875
+ message?: string;
876
+ /**
877
+ *
878
+ * @type {string}
879
+ * @memberof TokenListResponse
880
+ */
881
+ messageDetail?: string;
882
+ /**
883
+ *
884
+ * @type {boolean}
885
+ * @memberof TokenListResponse
886
+ */
887
+ success?: boolean;
888
+ /**
889
+ *
890
+ * @type {Array<TokenListResponseDataInner>}
891
+ * @memberof TokenListResponse
892
+ */
893
+ data?: Array<TokenListResponseDataInner>;
894
+ }
895
+ //#endregion
896
+ //#region src/rest-api/modules/market-data-api.d.ts
897
+ /**
898
+ * MarketDataApi - interface
899
+ * @interface MarketDataApi
900
+ */
901
+ interface MarketDataApiInterface {
902
+ /**
903
+ * Retrieves compressed, aggregated historical trades for a specific symbol. Useful for recent trade history.
904
+ *
905
+ * Weight: 0
906
+ *
907
+ * @summary Aggregated Trades
908
+ * @param {AggregatedTradesRequest} requestParameters Request parameters.
909
+ *
910
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
911
+ * @memberof MarketDataApiInterface
912
+ */
913
+ aggregatedTrades(requestParameters: AggregatedTradesRequest): Promise<RestApiResponse<AggregatedTradesResponse>>;
914
+ /**
915
+ * Fetches general exchange information, such as supported symbols, rate limits, and server time.
916
+ *
917
+ * Weight: 0
918
+ *
919
+ * @summary Get Exchange Info
920
+ *
921
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
922
+ * @memberof MarketDataApiInterface
923
+ */
924
+ getExchangeInfo(): Promise<RestApiResponse<GetExchangeInfoResponse>>;
925
+ /**
926
+ * Fetches Kline/candlestick bars for a symbol, which include open/high/low/close prices and volume over intervals. Useful for charting and analysis.
927
+ *
928
+ * Weight: 0
929
+ *
930
+ * @summary Klines (Candlestick Data)
931
+ * @param {KlinesRequest} requestParameters Request parameters.
932
+ *
933
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
934
+ * @memberof MarketDataApiInterface
935
+ */
936
+ klines(requestParameters: KlinesRequest): Promise<RestApiResponse<KlinesResponse>>;
937
+ /**
938
+ * Gets the 24-hour rolling window price change statistics for a symbol, including volume and price changes.
939
+ *
940
+ * Weight: 0
941
+ *
942
+ * @summary Ticker (24hr Price Statistics)
943
+ * @param {TickerRequest} requestParameters Request parameters.
944
+ *
945
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
946
+ * @memberof MarketDataApiInterface
947
+ */
948
+ ticker(requestParameters: TickerRequest): Promise<RestApiResponse<TickerResponse>>;
949
+ /**
950
+ * Retrieves a list of all available ALPHA tokens, including their IDs and symbols. Use this to find the token ID for constructing symbols in other endpoints.
951
+ *
952
+ * Weight: 0
953
+ *
954
+ * @summary Token List
955
+ *
956
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
957
+ * @memberof MarketDataApiInterface
958
+ */
959
+ tokenList(): Promise<RestApiResponse<TokenListResponse>>;
960
+ }
961
+ /**
962
+ * Request parameters for aggregatedTrades operation in MarketDataApi.
963
+ * @interface AggregatedTradesRequest
964
+ */
965
+ interface AggregatedTradesRequest {
966
+ /**
967
+ * e.g., "ALPHA_175USDT" – use token ID from Token List
968
+ * @type {string}
969
+ * @memberof MarketDataApiAggregatedTrades
970
+ */
971
+ readonly symbol: string;
972
+ /**
973
+ * starting trade ID to fetch from
974
+ * @type {number | bigint}
975
+ * @memberof MarketDataApiAggregatedTrades
976
+ */
977
+ readonly fromId?: number | bigint;
978
+ /**
979
+ * start timestamp (milliseconds)
980
+ * @type {number | bigint}
981
+ * @memberof MarketDataApiAggregatedTrades
982
+ */
983
+ readonly startTime?: number | bigint;
984
+ /**
985
+ * end timestamp (milliseconds)
986
+ * @type {number | bigint}
987
+ * @memberof MarketDataApiAggregatedTrades
988
+ */
989
+ readonly endTime?: number | bigint;
990
+ /**
991
+ * number of results to return (default 500, max 1000)
992
+ * @type {number | bigint}
993
+ * @memberof MarketDataApiAggregatedTrades
994
+ */
995
+ readonly limit?: number | bigint;
996
+ }
997
+ /**
998
+ * Request parameters for klines operation in MarketDataApi.
999
+ * @interface KlinesRequest
1000
+ */
1001
+ interface KlinesRequest {
1002
+ /**
1003
+ * e.g., "ALPHA_175USDT" – use token ID from Token List
1004
+ * @type {string}
1005
+ * @memberof MarketDataApiKlines
1006
+ */
1007
+ readonly symbol: string;
1008
+ /**
1009
+ * e.g., "1h" – supported intervals: 1s, 15s, 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M
1010
+ * @type {string}
1011
+ * @memberof MarketDataApiKlines
1012
+ */
1013
+ readonly interval: string;
1014
+ /**
1015
+ * number of results to return (default 500, max 1000)
1016
+ * @type {number | bigint}
1017
+ * @memberof MarketDataApiKlines
1018
+ */
1019
+ readonly limit?: number | bigint;
1020
+ /**
1021
+ * start timestamp (milliseconds)
1022
+ * @type {number | bigint}
1023
+ * @memberof MarketDataApiKlines
1024
+ */
1025
+ readonly startTime?: number | bigint;
1026
+ /**
1027
+ * end timestamp (milliseconds)
1028
+ * @type {number | bigint}
1029
+ * @memberof MarketDataApiKlines
1030
+ */
1031
+ readonly endTime?: number | bigint;
1032
+ }
1033
+ /**
1034
+ * Request parameters for ticker operation in MarketDataApi.
1035
+ * @interface TickerRequest
1036
+ */
1037
+ interface TickerRequest {
1038
+ /**
1039
+ * e.g., "ALPHA_175USDT" – use token ID from Token List
1040
+ * @type {string}
1041
+ * @memberof MarketDataApiTicker
1042
+ */
1043
+ readonly symbol: string;
1044
+ }
1045
+ /**
1046
+ * MarketDataApi - object-oriented interface
1047
+ * @class MarketDataApi
1048
+ */
1049
+ declare class MarketDataApi implements MarketDataApiInterface {
1050
+ private readonly configuration;
1051
+ private localVarAxiosParamCreator;
1052
+ constructor(configuration: ConfigurationRestAPI);
1053
+ /**
1054
+ * Retrieves compressed, aggregated historical trades for a specific symbol. Useful for recent trade history.
1055
+ *
1056
+ * Weight: 0
1057
+ *
1058
+ * @summary Aggregated Trades
1059
+ * @param {AggregatedTradesRequest} requestParameters Request parameters.
1060
+ * @returns {Promise<RestApiResponse<AggregatedTradesResponse>>}
1061
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1062
+ * @memberof MarketDataApi
1063
+ * @see {@link https://developers.binance.com/docs/alpha/market-data/rest-api/Aggregated-Trades Binance API Documentation}
1064
+ */
1065
+ aggregatedTrades(requestParameters: AggregatedTradesRequest): Promise<RestApiResponse<AggregatedTradesResponse>>;
1066
+ /**
1067
+ * Fetches general exchange information, such as supported symbols, rate limits, and server time.
1068
+ *
1069
+ * Weight: 0
1070
+ *
1071
+ * @summary Get Exchange Info
1072
+ * @returns {Promise<RestApiResponse<GetExchangeInfoResponse>>}
1073
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1074
+ * @memberof MarketDataApi
1075
+ * @see {@link https://developers.binance.com/docs/alpha/market-data/rest-api/Get-Exchange-Info Binance API Documentation}
1076
+ */
1077
+ getExchangeInfo(): Promise<RestApiResponse<GetExchangeInfoResponse>>;
1078
+ /**
1079
+ * Fetches Kline/candlestick bars for a symbol, which include open/high/low/close prices and volume over intervals. Useful for charting and analysis.
1080
+ *
1081
+ * Weight: 0
1082
+ *
1083
+ * @summary Klines (Candlestick Data)
1084
+ * @param {KlinesRequest} requestParameters Request parameters.
1085
+ * @returns {Promise<RestApiResponse<KlinesResponse>>}
1086
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1087
+ * @memberof MarketDataApi
1088
+ * @see {@link https://developers.binance.com/docs/alpha/market-data/rest-api/Klines Binance API Documentation}
1089
+ */
1090
+ klines(requestParameters: KlinesRequest): Promise<RestApiResponse<KlinesResponse>>;
1091
+ /**
1092
+ * Gets the 24-hour rolling window price change statistics for a symbol, including volume and price changes.
1093
+ *
1094
+ * Weight: 0
1095
+ *
1096
+ * @summary Ticker (24hr Price Statistics)
1097
+ * @param {TickerRequest} requestParameters Request parameters.
1098
+ * @returns {Promise<RestApiResponse<TickerResponse>>}
1099
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1100
+ * @memberof MarketDataApi
1101
+ * @see {@link https://developers.binance.com/docs/alpha/market-data/rest-api/24hr-ticker-price-change Binance API Documentation}
1102
+ */
1103
+ ticker(requestParameters: TickerRequest): Promise<RestApiResponse<TickerResponse>>;
1104
+ /**
1105
+ * Retrieves a list of all available ALPHA tokens, including their IDs and symbols. Use this to find the token ID for constructing symbols in other endpoints.
1106
+ *
1107
+ * Weight: 0
1108
+ *
1109
+ * @summary Token List
1110
+ * @returns {Promise<RestApiResponse<TokenListResponse>>}
1111
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1112
+ * @memberof MarketDataApi
1113
+ * @see {@link https://developers.binance.com/docs/alpha/market-data/rest-api/Token-List Binance API Documentation}
1114
+ */
1115
+ tokenList(): Promise<RestApiResponse<TokenListResponse>>;
1116
+ }
1117
+ //#endregion
1118
+ //#region src/rest-api/rest-api.d.ts
1119
+ declare class RestAPI {
1120
+ private configuration;
1121
+ private marketDataApi;
1122
+ constructor(configuration: ConfigurationRestAPI);
1123
+ /**
1124
+ * Generic function to send a request.
1125
+ * @param endpoint - The API endpoint to call.
1126
+ * @param method - HTTP method to use (GET, POST, DELETE, etc.).
1127
+ * @param queryParams - Query parameters for the request.
1128
+ * @param bodyParams - Body parameters for the request.
1129
+ *
1130
+ * @returns A promise resolving to the response data object.
1131
+ */
1132
+ sendRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
1133
+ /**
1134
+ * Generic function to send a signed request.
1135
+ * @param endpoint - The API endpoint to call.
1136
+ * @param method - HTTP method to use (GET, POST, DELETE, etc.).
1137
+ * @param queryParams - Query parameters for the request.
1138
+ * @param bodyParams - Body parameters for the request.
1139
+ *
1140
+ * @returns A promise resolving to the response data object.
1141
+ */
1142
+ sendSignedRequest<T>(endpoint: string, method: 'GET' | 'POST' | 'DELETE' | 'PUT' | 'PATCH', queryParams?: Record<string, unknown>, bodyParams?: Record<string, unknown>): Promise<RestApiResponse<T>>;
1143
+ /**
1144
+ * Retrieves compressed, aggregated historical trades for a specific symbol. Useful for recent trade history.
1145
+ *
1146
+ * Weight: 0
1147
+ *
1148
+ * @summary Aggregated Trades
1149
+ * @param {AggregatedTradesRequest} requestParameters Request parameters.
1150
+ *
1151
+ * @returns {Promise<RestApiResponse<AggregatedTradesResponse>>}
1152
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1153
+ * @see {@link https://developers.binance.com/docs/alpha/market-data/rest-api/Aggregated-Trades Binance API Documentation}
1154
+ */
1155
+ aggregatedTrades(requestParameters: AggregatedTradesRequest): Promise<RestApiResponse<AggregatedTradesResponse>>;
1156
+ /**
1157
+ * Fetches general exchange information, such as supported symbols, rate limits, and server time.
1158
+ *
1159
+ * Weight: 0
1160
+ *
1161
+ * @summary Get Exchange Info
1162
+ *
1163
+ * @returns {Promise<RestApiResponse<GetExchangeInfoResponse>>}
1164
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1165
+ * @see {@link https://developers.binance.com/docs/alpha/market-data/rest-api/Get-Exchange-Info Binance API Documentation}
1166
+ */
1167
+ getExchangeInfo(): Promise<RestApiResponse<GetExchangeInfoResponse>>;
1168
+ /**
1169
+ * Fetches Kline/candlestick bars for a symbol, which include open/high/low/close prices and volume over intervals. Useful for charting and analysis.
1170
+ *
1171
+ * Weight: 0
1172
+ *
1173
+ * @summary Klines (Candlestick Data)
1174
+ * @param {KlinesRequest} requestParameters Request parameters.
1175
+ *
1176
+ * @returns {Promise<RestApiResponse<KlinesResponse>>}
1177
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1178
+ * @see {@link https://developers.binance.com/docs/alpha/market-data/rest-api/Klines Binance API Documentation}
1179
+ */
1180
+ klines(requestParameters: KlinesRequest): Promise<RestApiResponse<KlinesResponse>>;
1181
+ /**
1182
+ * Gets the 24-hour rolling window price change statistics for a symbol, including volume and price changes.
1183
+ *
1184
+ * Weight: 0
1185
+ *
1186
+ * @summary Ticker (24hr Price Statistics)
1187
+ * @param {TickerRequest} requestParameters Request parameters.
1188
+ *
1189
+ * @returns {Promise<RestApiResponse<TickerResponse>>}
1190
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1191
+ * @see {@link https://developers.binance.com/docs/alpha/market-data/rest-api/24hr-ticker-price-change Binance API Documentation}
1192
+ */
1193
+ ticker(requestParameters: TickerRequest): Promise<RestApiResponse<TickerResponse>>;
1194
+ /**
1195
+ * Retrieves a list of all available ALPHA tokens, including their IDs and symbols. Use this to find the token ID for constructing symbols in other endpoints.
1196
+ *
1197
+ * Weight: 0
1198
+ *
1199
+ * @summary Token List
1200
+ *
1201
+ * @returns {Promise<RestApiResponse<TokenListResponse>>}
1202
+ * @throws {RequiredError | ConnectorClientError | UnauthorizedError | ForbiddenError | TooManyRequestsError | RateLimitBanError | ServerError | NotFoundError | NetworkError | BadRequestError}
1203
+ * @see {@link https://developers.binance.com/docs/alpha/market-data/rest-api/Token-List Binance API Documentation}
1204
+ */
1205
+ tokenList(): Promise<RestApiResponse<TokenListResponse>>;
1206
+ }
1207
+ declare namespace index_d_exports {
1208
+ export { AggregatedTradesRequest, AggregatedTradesResponse, AggregatedTradesResponseDataInner, GetExchangeInfoResponse, GetExchangeInfoResponseData, GetExchangeInfoResponseDataAssetsInner, GetExchangeInfoResponseDataSymbolsInner, GetExchangeInfoResponseDataSymbolsInnerFiltersInner, KlinesRequest, KlinesResponse, KlinesResponseDataItem, KlinesResponseDataItemInner, MarketDataApi, MarketDataApiInterface, RestAPI, TickerRequest, TickerResponse, TickerResponseData, TokenListResponse, TokenListResponseDataInner };
1209
+ }
1210
+ //#endregion
1211
+ //#region src/alpha.d.ts
1212
+ interface ConfigurationAlpha {
1213
+ configurationRestAPI?: ConfigurationRestAPI;
1214
+ }
1215
+ declare class Alpha {
1216
+ restAPI: RestAPI;
1217
+ constructor(config: ConfigurationAlpha);
1218
+ }
1219
+ //#endregion
1220
+ export { ALPHA_REST_API_PROD_URL, Alpha, index_d_exports as AlphaRestAPI, BadRequestError, type ConfigurationAlpha, ConnectorClientError, ForbiddenError, NetworkError, NotFoundError, RateLimitBanError, RequiredError, ServerError, TooManyRequestsError, UnauthorizedError };
1221
+ //# sourceMappingURL=index.d.mts.map