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