@dogabot/sdk 0.0.0-stage → 0.1.1

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,1268 @@
1
+ /** All OpenAPI operationIds as client methods. */
2
+ export class Resources {
3
+ client;
4
+ constructor(client) {
5
+ this.client = client;
6
+ }
7
+ async getMe(options) {
8
+ const path = "/api/v1/me";
9
+ return this.client.request({
10
+ ...options,
11
+ method: 'GET',
12
+ path,
13
+ });
14
+ }
15
+ async getMeStatistics(options) {
16
+ const path = "/api/v1/me/statistics";
17
+ return this.client.request({
18
+ ...options,
19
+ method: 'GET',
20
+ path,
21
+ });
22
+ }
23
+ async getMePositions(options) {
24
+ const path = "/api/v1/me/positions";
25
+ return this.client.request({
26
+ ...options,
27
+ method: 'GET',
28
+ path,
29
+ });
30
+ }
31
+ async getMePositionlegs(options) {
32
+ const path = "/api/v1/me/position-legs";
33
+ return this.client.request({
34
+ ...options,
35
+ method: 'GET',
36
+ path,
37
+ });
38
+ }
39
+ async getMeAvailablecash(options) {
40
+ const path = "/api/v1/me/available-cash";
41
+ return this.client.request({
42
+ ...options,
43
+ method: 'GET',
44
+ path,
45
+ });
46
+ }
47
+ async getMeOrders(options) {
48
+ const path = "/api/v1/me/orders";
49
+ return this.client.request({
50
+ ...options,
51
+ method: 'GET',
52
+ path,
53
+ });
54
+ }
55
+ async getMeSignals(options) {
56
+ const path = "/api/v1/me/signals";
57
+ return this.client.request({
58
+ ...options,
59
+ method: 'GET',
60
+ path,
61
+ });
62
+ }
63
+ async getMeEmitters(options) {
64
+ const path = "/api/v1/me/emitters";
65
+ return this.client.request({
66
+ ...options,
67
+ method: 'GET',
68
+ path,
69
+ });
70
+ }
71
+ async postMeEmittersSummary(body, options) {
72
+ const path = "/api/v1/me/emitters/summary";
73
+ return this.client.request({
74
+ ...options,
75
+ method: 'POST',
76
+ path,
77
+ body: body ?? options?.body,
78
+ });
79
+ }
80
+ async postAutomationsSummary(body, options) {
81
+ const path = "/api/v1/automations/summary";
82
+ return this.client.request({
83
+ ...options,
84
+ method: 'POST',
85
+ path,
86
+ body: body ?? options?.body,
87
+ });
88
+ }
89
+ async postAutomationsStatuscounts(body, options) {
90
+ const path = "/api/v1/automations/status-counts";
91
+ return this.client.request({
92
+ ...options,
93
+ method: 'POST',
94
+ path,
95
+ body: body ?? options?.body,
96
+ });
97
+ }
98
+ async postAutomationsSummaryByids(body, options) {
99
+ const path = "/api/v1/automations/summary/by-ids";
100
+ return this.client.request({
101
+ ...options,
102
+ method: 'POST',
103
+ path,
104
+ body: body ?? options?.body,
105
+ });
106
+ }
107
+ async getFollowers(options) {
108
+ const path = "/api/v1/followers";
109
+ return this.client.request({
110
+ ...options,
111
+ method: 'GET',
112
+ path,
113
+ });
114
+ }
115
+ async postFollowers(body, options) {
116
+ const path = "/api/v1/followers";
117
+ return this.client.request({
118
+ ...options,
119
+ method: 'POST',
120
+ path,
121
+ body: body ?? options?.body,
122
+ write: true,
123
+ });
124
+ }
125
+ async getFollowersById(pathParams, options) {
126
+ const path = "/api/v1/followers/" + encodeURIComponent(String(pathParams.id)) + "";
127
+ return this.client.request({
128
+ ...options,
129
+ method: 'GET',
130
+ path,
131
+ });
132
+ }
133
+ async patchFollowersById(pathParams, body, options) {
134
+ const path = "/api/v1/followers/" + encodeURIComponent(String(pathParams.id)) + "";
135
+ return this.client.request({
136
+ ...options,
137
+ method: 'PATCH',
138
+ path,
139
+ body: body ?? options?.body,
140
+ write: true,
141
+ });
142
+ }
143
+ async deleteFollowersById(pathParams, body, options) {
144
+ const path = "/api/v1/followers/" + encodeURIComponent(String(pathParams.id)) + "";
145
+ return this.client.request({
146
+ ...options,
147
+ method: 'DELETE',
148
+ path,
149
+ body: body ?? options?.body,
150
+ write: true,
151
+ });
152
+ }
153
+ async postFollowersSummary(body, options) {
154
+ const path = "/api/v1/followers/summary";
155
+ return this.client.request({
156
+ ...options,
157
+ method: 'POST',
158
+ path,
159
+ body: body ?? options?.body,
160
+ });
161
+ }
162
+ async getFollowersSummaryById(pathParams, options) {
163
+ const path = "/api/v1/followers/summary/" + encodeURIComponent(String(pathParams.id)) + "";
164
+ return this.client.request({
165
+ ...options,
166
+ method: 'GET',
167
+ path,
168
+ });
169
+ }
170
+ async getFollowersPnlseriesById(pathParams, options) {
171
+ const path = "/api/v1/followers/" + encodeURIComponent(String(pathParams.id)) + "/pnl-series";
172
+ return this.client.request({
173
+ ...options,
174
+ method: 'GET',
175
+ path,
176
+ });
177
+ }
178
+ async getFollowersPositionById(pathParams, options) {
179
+ const path = "/api/v1/followers/" + encodeURIComponent(String(pathParams.id)) + "/position";
180
+ return this.client.request({
181
+ ...options,
182
+ method: 'GET',
183
+ path,
184
+ });
185
+ }
186
+ async getBots(options) {
187
+ const path = "/api/v1/bots";
188
+ return this.client.request({
189
+ ...options,
190
+ method: 'GET',
191
+ path,
192
+ });
193
+ }
194
+ async postBots(body, options) {
195
+ const path = "/api/v1/bots";
196
+ return this.client.request({
197
+ ...options,
198
+ method: 'POST',
199
+ path,
200
+ body: body ?? options?.body,
201
+ write: true,
202
+ });
203
+ }
204
+ async getBotsById(pathParams, options) {
205
+ const path = "/api/v1/bots/" + encodeURIComponent(String(pathParams.id)) + "";
206
+ return this.client.request({
207
+ ...options,
208
+ method: 'GET',
209
+ path,
210
+ });
211
+ }
212
+ async patchBotsById(pathParams, body, options) {
213
+ const path = "/api/v1/bots/" + encodeURIComponent(String(pathParams.id)) + "";
214
+ return this.client.request({
215
+ ...options,
216
+ method: 'PATCH',
217
+ path,
218
+ body: body ?? options?.body,
219
+ write: true,
220
+ });
221
+ }
222
+ async deleteBotsById(pathParams, body, options) {
223
+ const path = "/api/v1/bots/" + encodeURIComponent(String(pathParams.id)) + "";
224
+ return this.client.request({
225
+ ...options,
226
+ method: 'DELETE',
227
+ path,
228
+ body: body ?? options?.body,
229
+ write: true,
230
+ });
231
+ }
232
+ async postBotsSummary(body, options) {
233
+ const path = "/api/v1/bots/summary";
234
+ return this.client.request({
235
+ ...options,
236
+ method: 'POST',
237
+ path,
238
+ body: body ?? options?.body,
239
+ });
240
+ }
241
+ async getBotsPnlseriesById(pathParams, options) {
242
+ const path = "/api/v1/bots/" + encodeURIComponent(String(pathParams.id)) + "/pnl-series";
243
+ return this.client.request({
244
+ ...options,
245
+ method: 'GET',
246
+ path,
247
+ });
248
+ }
249
+ async getBotsPositionById(pathParams, options) {
250
+ const path = "/api/v1/bots/" + encodeURIComponent(String(pathParams.id)) + "/position";
251
+ return this.client.request({
252
+ ...options,
253
+ method: 'GET',
254
+ path,
255
+ });
256
+ }
257
+ async getEmitters(options) {
258
+ const path = "/api/v1/emitters";
259
+ return this.client.request({
260
+ ...options,
261
+ method: 'GET',
262
+ path,
263
+ });
264
+ }
265
+ async postEmitters(body, options) {
266
+ const path = "/api/v1/emitters";
267
+ return this.client.request({
268
+ ...options,
269
+ method: 'POST',
270
+ path,
271
+ body: body ?? options?.body,
272
+ write: true,
273
+ });
274
+ }
275
+ async getEmittersById(pathParams, options) {
276
+ const path = "/api/v1/emitters/" + encodeURIComponent(String(pathParams.id)) + "";
277
+ return this.client.request({
278
+ ...options,
279
+ method: 'GET',
280
+ path,
281
+ });
282
+ }
283
+ async patchEmittersById(pathParams, body, options) {
284
+ const path = "/api/v1/emitters/" + encodeURIComponent(String(pathParams.id)) + "";
285
+ return this.client.request({
286
+ ...options,
287
+ method: 'PATCH',
288
+ path,
289
+ body: body ?? options?.body,
290
+ write: true,
291
+ });
292
+ }
293
+ async deleteEmittersById(pathParams, body, options) {
294
+ const path = "/api/v1/emitters/" + encodeURIComponent(String(pathParams.id)) + "";
295
+ return this.client.request({
296
+ ...options,
297
+ method: 'DELETE',
298
+ path,
299
+ body: body ?? options?.body,
300
+ write: true,
301
+ });
302
+ }
303
+ async postEmittersSummary(body, options) {
304
+ const path = "/api/v1/emitters/summary";
305
+ return this.client.request({
306
+ ...options,
307
+ method: 'POST',
308
+ path,
309
+ body: body ?? options?.body,
310
+ });
311
+ }
312
+ async getEmittersSummaryById(pathParams, options) {
313
+ const path = "/api/v1/emitters/summary/" + encodeURIComponent(String(pathParams.id)) + "";
314
+ return this.client.request({
315
+ ...options,
316
+ method: 'GET',
317
+ path,
318
+ });
319
+ }
320
+ async getEmittersCurated(options) {
321
+ const path = "/api/v1/emitters/curated";
322
+ return this.client.request({
323
+ ...options,
324
+ method: 'GET',
325
+ path,
326
+ });
327
+ }
328
+ async getEmittersPnlseriesById(pathParams, options) {
329
+ const path = "/api/v1/emitters/" + encodeURIComponent(String(pathParams.id)) + "/pnl-series";
330
+ return this.client.request({
331
+ ...options,
332
+ method: 'GET',
333
+ path,
334
+ });
335
+ }
336
+ async getEmittersPositionById(pathParams, options) {
337
+ const path = "/api/v1/emitters/" + encodeURIComponent(String(pathParams.id)) + "/position";
338
+ return this.client.request({
339
+ ...options,
340
+ method: 'GET',
341
+ path,
342
+ });
343
+ }
344
+ async getPortfolios(options) {
345
+ const path = "/api/v1/portfolios";
346
+ return this.client.request({
347
+ ...options,
348
+ method: 'GET',
349
+ path,
350
+ });
351
+ }
352
+ async postPortfolios(body, options) {
353
+ const path = "/api/v1/portfolios";
354
+ return this.client.request({
355
+ ...options,
356
+ method: 'POST',
357
+ path,
358
+ body: body ?? options?.body,
359
+ write: true,
360
+ });
361
+ }
362
+ async getPortfoliosById(pathParams, options) {
363
+ const path = "/api/v1/portfolios/" + encodeURIComponent(String(pathParams.id)) + "";
364
+ return this.client.request({
365
+ ...options,
366
+ method: 'GET',
367
+ path,
368
+ });
369
+ }
370
+ async patchPortfoliosById(pathParams, body, options) {
371
+ const path = "/api/v1/portfolios/" + encodeURIComponent(String(pathParams.id)) + "";
372
+ return this.client.request({
373
+ ...options,
374
+ method: 'PATCH',
375
+ path,
376
+ body: body ?? options?.body,
377
+ write: true,
378
+ });
379
+ }
380
+ async deletePortfoliosById(pathParams, body, options) {
381
+ const path = "/api/v1/portfolios/" + encodeURIComponent(String(pathParams.id)) + "";
382
+ return this.client.request({
383
+ ...options,
384
+ method: 'DELETE',
385
+ path,
386
+ body: body ?? options?.body,
387
+ write: true,
388
+ });
389
+ }
390
+ async postPortfoliosSummary(body, options) {
391
+ const path = "/api/v1/portfolios/summary";
392
+ return this.client.request({
393
+ ...options,
394
+ method: 'POST',
395
+ path,
396
+ body: body ?? options?.body,
397
+ });
398
+ }
399
+ async getPortfoliosPnlseriesById(pathParams, options) {
400
+ const path = "/api/v1/portfolios/" + encodeURIComponent(String(pathParams.id)) + "/pnl-series";
401
+ return this.client.request({
402
+ ...options,
403
+ method: 'GET',
404
+ path,
405
+ });
406
+ }
407
+ async getPortfoliosPositionsById(pathParams, options) {
408
+ const path = "/api/v1/portfolios/" + encodeURIComponent(String(pathParams.id)) + "/positions";
409
+ return this.client.request({
410
+ ...options,
411
+ method: 'GET',
412
+ path,
413
+ });
414
+ }
415
+ async getOrders(options) {
416
+ const path = "/api/v1/orders";
417
+ return this.client.request({
418
+ ...options,
419
+ method: 'GET',
420
+ path,
421
+ });
422
+ }
423
+ async getSignals(options) {
424
+ const path = "/api/v1/signals";
425
+ return this.client.request({
426
+ ...options,
427
+ method: 'GET',
428
+ path,
429
+ });
430
+ }
431
+ async getBacktestQuota(options) {
432
+ const path = "/api/v1/backtest/quota";
433
+ return this.client.request({
434
+ ...options,
435
+ method: 'GET',
436
+ path,
437
+ });
438
+ }
439
+ async getBacktests(options) {
440
+ const path = "/api/v1/backtests";
441
+ return this.client.request({
442
+ ...options,
443
+ method: 'GET',
444
+ path,
445
+ });
446
+ }
447
+ async getBacktestsSummary(options) {
448
+ const path = "/api/v1/backtests/summary";
449
+ return this.client.request({
450
+ ...options,
451
+ method: 'GET',
452
+ path,
453
+ });
454
+ }
455
+ async getBacktestCommunityexamples(options) {
456
+ const path = "/api/v1/backtest/community-examples";
457
+ return this.client.request({
458
+ ...options,
459
+ method: 'GET',
460
+ path,
461
+ });
462
+ }
463
+ async getBacktestByJob_id(pathParams, options) {
464
+ const path = "/api/v1/backtest/" + encodeURIComponent(String(pathParams.job_id)) + "";
465
+ return this.client.request({
466
+ ...options,
467
+ method: 'GET',
468
+ path,
469
+ });
470
+ }
471
+ async getBacktestSignalsByJob_id(pathParams, options) {
472
+ const path = "/api/v1/backtest/" + encodeURIComponent(String(pathParams.job_id)) + "/signals";
473
+ return this.client.request({
474
+ ...options,
475
+ method: 'GET',
476
+ path,
477
+ });
478
+ }
479
+ async getBacktestBulkSeed(options) {
480
+ const path = "/api/v1/backtest/bulk/seed";
481
+ return this.client.request({
482
+ ...options,
483
+ method: 'GET',
484
+ path,
485
+ });
486
+ }
487
+ async getBacktestBulkBatches(options) {
488
+ const path = "/api/v1/backtest/bulk/batches";
489
+ return this.client.request({
490
+ ...options,
491
+ method: 'GET',
492
+ path,
493
+ });
494
+ }
495
+ async getBacktestBulkBatchesByBatch_id(pathParams, options) {
496
+ const path = "/api/v1/backtest/bulk/batches/" + encodeURIComponent(String(pathParams.batch_id)) + "";
497
+ return this.client.request({
498
+ ...options,
499
+ method: 'GET',
500
+ path,
501
+ });
502
+ }
503
+ async getTicker(options) {
504
+ const path = "/api/v1/ticker";
505
+ return this.client.request({
506
+ ...options,
507
+ method: 'GET',
508
+ path,
509
+ });
510
+ }
511
+ async getFundingrate(options) {
512
+ const path = "/api/v1/funding-rate";
513
+ return this.client.request({
514
+ ...options,
515
+ method: 'GET',
516
+ path,
517
+ });
518
+ }
519
+ async getMarketOrderbook(options) {
520
+ const path = "/api/v1/market/orderbook";
521
+ return this.client.request({
522
+ ...options,
523
+ method: 'GET',
524
+ path,
525
+ });
526
+ }
527
+ async getMarketTrades(options) {
528
+ const path = "/api/v1/market/trades";
529
+ return this.client.request({
530
+ ...options,
531
+ method: 'GET',
532
+ path,
533
+ });
534
+ }
535
+ async getMarkets(options) {
536
+ const path = "/api/v1/markets";
537
+ return this.client.request({
538
+ ...options,
539
+ method: 'GET',
540
+ path,
541
+ });
542
+ }
543
+ async getMarketsAssetprofile(options) {
544
+ const path = "/api/v1/markets/asset-profile";
545
+ return this.client.request({
546
+ ...options,
547
+ method: 'GET',
548
+ path,
549
+ });
550
+ }
551
+ async getExchanges(options) {
552
+ const path = "/api/v1/exchanges";
553
+ return this.client.request({
554
+ ...options,
555
+ method: 'GET',
556
+ path,
557
+ });
558
+ }
559
+ async getMarkettypes(options) {
560
+ const path = "/api/v1/market-types";
561
+ return this.client.request({
562
+ ...options,
563
+ method: 'GET',
564
+ path,
565
+ });
566
+ }
567
+ async getMarketplaceSearch(options) {
568
+ const path = "/api/v1/marketplace/search";
569
+ return this.client.request({
570
+ ...options,
571
+ method: 'GET',
572
+ path,
573
+ });
574
+ }
575
+ async getMarketplaceSellersByHandle(pathParams, options) {
576
+ const path = "/api/v1/marketplace/sellers/" + encodeURIComponent(String(pathParams.handle)) + "";
577
+ return this.client.request({
578
+ ...options,
579
+ method: 'GET',
580
+ path,
581
+ });
582
+ }
583
+ async getDatafeedHistory(options) {
584
+ const path = "/api/v1/datafeed/history";
585
+ return this.client.request({
586
+ ...options,
587
+ method: 'GET',
588
+ path,
589
+ });
590
+ }
591
+ async postMarketsSymbolcorrelation(body, options) {
592
+ const path = "/api/v1/markets/symbol-correlation";
593
+ return this.client.request({
594
+ ...options,
595
+ method: 'POST',
596
+ path,
597
+ body: body ?? options?.body,
598
+ });
599
+ }
600
+ async postMarketsSymbolvolatility(body, options) {
601
+ const path = "/api/v1/markets/symbol-volatility";
602
+ return this.client.request({
603
+ ...options,
604
+ method: 'POST',
605
+ path,
606
+ body: body ?? options?.body,
607
+ });
608
+ }
609
+ async postMarketsSymbolfeebreakeven(body, options) {
610
+ const path = "/api/v1/markets/symbol-fee-breakeven";
611
+ return this.client.request({
612
+ ...options,
613
+ method: 'POST',
614
+ path,
615
+ body: body ?? options?.body,
616
+ });
617
+ }
618
+ async getTerminalOrders(options) {
619
+ const path = "/api/v1/terminal/orders";
620
+ return this.client.request({
621
+ ...options,
622
+ method: 'GET',
623
+ path,
624
+ });
625
+ }
626
+ async getTerminalOrdersByclientorderidByClient_order_id(pathParams, options) {
627
+ const path = "/api/v1/terminal/orders/by-client-order-id/" + encodeURIComponent(String(pathParams.client_order_id)) + "";
628
+ return this.client.request({
629
+ ...options,
630
+ method: 'GET',
631
+ path,
632
+ });
633
+ }
634
+ async getTerminalPositions(options) {
635
+ const path = "/api/v1/terminal/positions";
636
+ return this.client.request({
637
+ ...options,
638
+ method: 'GET',
639
+ path,
640
+ });
641
+ }
642
+ async getTerminalSymbolrules(options) {
643
+ const path = "/api/v1/terminal/symbol-rules";
644
+ return this.client.request({
645
+ ...options,
646
+ method: 'GET',
647
+ path,
648
+ });
649
+ }
650
+ async getTerminalOrdercapabilities(options) {
651
+ const path = "/api/v1/terminal/order-capabilities";
652
+ return this.client.request({
653
+ ...options,
654
+ method: 'GET',
655
+ path,
656
+ });
657
+ }
658
+ async getExchangeBalances(options) {
659
+ const path = "/api/v1/exchange/balances";
660
+ return this.client.request({
661
+ ...options,
662
+ method: 'GET',
663
+ path,
664
+ });
665
+ }
666
+ async getExchangePositions(options) {
667
+ const path = "/api/v1/exchange/positions";
668
+ return this.client.request({
669
+ ...options,
670
+ method: 'GET',
671
+ path,
672
+ });
673
+ }
674
+ async getExchangeMarginsummary(options) {
675
+ const path = "/api/v1/exchange/margin-summary";
676
+ return this.client.request({
677
+ ...options,
678
+ method: 'GET',
679
+ path,
680
+ });
681
+ }
682
+ async getExchangeOrders(options) {
683
+ const path = "/api/v1/exchange/orders";
684
+ return this.client.request({
685
+ ...options,
686
+ method: 'GET',
687
+ path,
688
+ });
689
+ }
690
+ async getExchangeTrades(options) {
691
+ const path = "/api/v1/exchange/trades";
692
+ return this.client.request({
693
+ ...options,
694
+ method: 'GET',
695
+ path,
696
+ });
697
+ }
698
+ async getExchangeIncome(options) {
699
+ const path = "/api/v1/exchange/income";
700
+ return this.client.request({
701
+ ...options,
702
+ method: 'GET',
703
+ path,
704
+ });
705
+ }
706
+ async getExchangeOpenablenotional(options) {
707
+ const path = "/api/v1/exchange/openable-notional";
708
+ return this.client.request({
709
+ ...options,
710
+ method: 'GET',
711
+ path,
712
+ });
713
+ }
714
+ async getExchangeLeveragecapabilities(options) {
715
+ const path = "/api/v1/exchange/leverage-capabilities";
716
+ return this.client.request({
717
+ ...options,
718
+ method: 'GET',
719
+ path,
720
+ });
721
+ }
722
+ async postExchangeLeverage(body, options) {
723
+ const path = "/api/v1/exchange/leverage";
724
+ return this.client.request({
725
+ ...options,
726
+ method: 'POST',
727
+ path,
728
+ body: body ?? options?.body,
729
+ write: true,
730
+ });
731
+ }
732
+ async postExchangeMarginmode(body, options) {
733
+ const path = "/api/v1/exchange/margin-mode";
734
+ return this.client.request({
735
+ ...options,
736
+ method: 'POST',
737
+ path,
738
+ body: body ?? options?.body,
739
+ write: true,
740
+ });
741
+ }
742
+ async postExchangeCancelorder(body, options) {
743
+ const path = "/api/v1/exchange/cancel-order";
744
+ return this.client.request({
745
+ ...options,
746
+ method: 'POST',
747
+ path,
748
+ body: body ?? options?.body,
749
+ write: true,
750
+ });
751
+ }
752
+ async postExchangeCancelorders(body, options) {
753
+ const path = "/api/v1/exchange/cancel-orders";
754
+ return this.client.request({
755
+ ...options,
756
+ method: 'POST',
757
+ path,
758
+ body: body ?? options?.body,
759
+ write: true,
760
+ });
761
+ }
762
+ async getCredentials(options) {
763
+ const path = "/api/v1/credentials";
764
+ return this.client.request({
765
+ ...options,
766
+ method: 'GET',
767
+ path,
768
+ });
769
+ }
770
+ async postCredentials(body, options) {
771
+ const path = "/api/v1/credentials";
772
+ return this.client.request({
773
+ ...options,
774
+ method: 'POST',
775
+ path,
776
+ body: body ?? options?.body,
777
+ write: true,
778
+ });
779
+ }
780
+ async getTags(options) {
781
+ const path = "/api/v1/tags";
782
+ return this.client.request({
783
+ ...options,
784
+ method: 'GET',
785
+ path,
786
+ });
787
+ }
788
+ async postTags(body, options) {
789
+ const path = "/api/v1/tags";
790
+ return this.client.request({
791
+ ...options,
792
+ method: 'POST',
793
+ path,
794
+ body: body ?? options?.body,
795
+ write: true,
796
+ });
797
+ }
798
+ async getMeStatisticsBytag(options) {
799
+ const path = "/api/v1/me/statistics/by-tag";
800
+ return this.client.request({
801
+ ...options,
802
+ method: 'GET',
803
+ path,
804
+ });
805
+ }
806
+ async postFollowersStartById(pathParams, options) {
807
+ const path = "/api/v1/followers/" + encodeURIComponent(String(pathParams.id)) + "/start";
808
+ return this.client.request({
809
+ ...options,
810
+ method: 'POST',
811
+ path,
812
+ write: true,
813
+ });
814
+ }
815
+ async postFollowersStopById(pathParams, options) {
816
+ const path = "/api/v1/followers/" + encodeURIComponent(String(pathParams.id)) + "/stop";
817
+ return this.client.request({
818
+ ...options,
819
+ method: 'POST',
820
+ path,
821
+ write: true,
822
+ });
823
+ }
824
+ async postBotsStartById(pathParams, options) {
825
+ const path = "/api/v1/bots/" + encodeURIComponent(String(pathParams.id)) + "/start";
826
+ return this.client.request({
827
+ ...options,
828
+ method: 'POST',
829
+ path,
830
+ write: true,
831
+ });
832
+ }
833
+ async postBotsStopById(pathParams, options) {
834
+ const path = "/api/v1/bots/" + encodeURIComponent(String(pathParams.id)) + "/stop";
835
+ return this.client.request({
836
+ ...options,
837
+ method: 'POST',
838
+ path,
839
+ write: true,
840
+ });
841
+ }
842
+ async postBotsBooksById(pathParams, body, options) {
843
+ const path = "/api/v1/bots/" + encodeURIComponent(String(pathParams.id)) + "/books";
844
+ return this.client.request({
845
+ ...options,
846
+ method: 'POST',
847
+ path,
848
+ body: body ?? options?.body,
849
+ write: true,
850
+ });
851
+ }
852
+ async postFollowersBooksById(pathParams, body, options) {
853
+ const path = "/api/v1/followers/" + encodeURIComponent(String(pathParams.id)) + "/books";
854
+ return this.client.request({
855
+ ...options,
856
+ method: 'POST',
857
+ path,
858
+ body: body ?? options?.body,
859
+ write: true,
860
+ });
861
+ }
862
+ async postEmittersStartById(pathParams, options) {
863
+ const path = "/api/v1/emitters/" + encodeURIComponent(String(pathParams.id)) + "/start";
864
+ return this.client.request({
865
+ ...options,
866
+ method: 'POST',
867
+ path,
868
+ write: true,
869
+ });
870
+ }
871
+ async postEmittersStopById(pathParams, options) {
872
+ const path = "/api/v1/emitters/" + encodeURIComponent(String(pathParams.id)) + "/stop";
873
+ return this.client.request({
874
+ ...options,
875
+ method: 'POST',
876
+ path,
877
+ write: true,
878
+ });
879
+ }
880
+ async postPortfoliosStartById(pathParams, options) {
881
+ const path = "/api/v1/portfolios/" + encodeURIComponent(String(pathParams.id)) + "/start";
882
+ return this.client.request({
883
+ ...options,
884
+ method: 'POST',
885
+ path,
886
+ write: true,
887
+ });
888
+ }
889
+ async postPortfoliosStopById(pathParams, options) {
890
+ const path = "/api/v1/portfolios/" + encodeURIComponent(String(pathParams.id)) + "/stop";
891
+ return this.client.request({
892
+ ...options,
893
+ method: 'POST',
894
+ path,
895
+ write: true,
896
+ });
897
+ }
898
+ async putFollowersTagsById(pathParams, body, options) {
899
+ const path = "/api/v1/followers/" + encodeURIComponent(String(pathParams.id)) + "/tags";
900
+ return this.client.request({
901
+ ...options,
902
+ method: 'PUT',
903
+ path,
904
+ body: body ?? options?.body,
905
+ write: true,
906
+ });
907
+ }
908
+ async putBotsTagsById(pathParams, body, options) {
909
+ const path = "/api/v1/bots/" + encodeURIComponent(String(pathParams.id)) + "/tags";
910
+ return this.client.request({
911
+ ...options,
912
+ method: 'PUT',
913
+ path,
914
+ body: body ?? options?.body,
915
+ write: true,
916
+ });
917
+ }
918
+ async putEmittersTagsById(pathParams, body, options) {
919
+ const path = "/api/v1/emitters/" + encodeURIComponent(String(pathParams.id)) + "/tags";
920
+ return this.client.request({
921
+ ...options,
922
+ method: 'PUT',
923
+ path,
924
+ body: body ?? options?.body,
925
+ write: true,
926
+ });
927
+ }
928
+ async putPortfoliosTagsById(pathParams, body, options) {
929
+ const path = "/api/v1/portfolios/" + encodeURIComponent(String(pathParams.id)) + "/tags";
930
+ return this.client.request({
931
+ ...options,
932
+ method: 'PUT',
933
+ path,
934
+ body: body ?? options?.body,
935
+ write: true,
936
+ });
937
+ }
938
+ async patchTagsById(pathParams, body, options) {
939
+ const path = "/api/v1/tags/" + encodeURIComponent(String(pathParams.id)) + "";
940
+ return this.client.request({
941
+ ...options,
942
+ method: 'PATCH',
943
+ path,
944
+ body: body ?? options?.body,
945
+ write: true,
946
+ });
947
+ }
948
+ async deleteTagsById(pathParams, body, options) {
949
+ const path = "/api/v1/tags/" + encodeURIComponent(String(pathParams.id)) + "";
950
+ return this.client.request({
951
+ ...options,
952
+ method: 'DELETE',
953
+ path,
954
+ body: body ?? options?.body,
955
+ write: true,
956
+ });
957
+ }
958
+ async putCredentialsById(pathParams, body, options) {
959
+ const path = "/api/v1/credentials/" + encodeURIComponent(String(pathParams.id)) + "";
960
+ return this.client.request({
961
+ ...options,
962
+ method: 'PUT',
963
+ path,
964
+ body: body ?? options?.body,
965
+ write: true,
966
+ });
967
+ }
968
+ async deleteCredentialsById(pathParams, body, options) {
969
+ const path = "/api/v1/credentials/" + encodeURIComponent(String(pathParams.id)) + "";
970
+ return this.client.request({
971
+ ...options,
972
+ method: 'DELETE',
973
+ path,
974
+ body: body ?? options?.body,
975
+ write: true,
976
+ });
977
+ }
978
+ async postCredentialsDefaultById(pathParams, options) {
979
+ const path = "/api/v1/credentials/" + encodeURIComponent(String(pathParams.id)) + "/default";
980
+ return this.client.request({
981
+ ...options,
982
+ method: 'POST',
983
+ path,
984
+ write: true,
985
+ });
986
+ }
987
+ async postBacktest(body, options) {
988
+ const path = "/api/v1/backtest";
989
+ return this.client.request({
990
+ ...options,
991
+ method: 'POST',
992
+ path,
993
+ body: body ?? options?.body,
994
+ write: true,
995
+ });
996
+ }
997
+ async postBacktestBulk(body, options) {
998
+ const path = "/api/v1/backtest/bulk";
999
+ return this.client.request({
1000
+ ...options,
1001
+ method: 'POST',
1002
+ path,
1003
+ body: body ?? options?.body,
1004
+ write: true,
1005
+ });
1006
+ }
1007
+ async postBacktestBulkBatchesRerunByBatch_id(pathParams, options) {
1008
+ const path = "/api/v1/backtest/bulk/batches/" + encodeURIComponent(String(pathParams.batch_id)) + "/rerun";
1009
+ return this.client.request({
1010
+ ...options,
1011
+ method: 'POST',
1012
+ path,
1013
+ write: true,
1014
+ });
1015
+ }
1016
+ async postBacktestBulkBatchesCancelByBatch_id(pathParams, options) {
1017
+ const path = "/api/v1/backtest/bulk/batches/" + encodeURIComponent(String(pathParams.batch_id)) + "/cancel";
1018
+ return this.client.request({
1019
+ ...options,
1020
+ method: 'POST',
1021
+ path,
1022
+ write: true,
1023
+ });
1024
+ }
1025
+ async postBacktestCancelByJob_id(pathParams, options) {
1026
+ const path = "/api/v1/backtest/" + encodeURIComponent(String(pathParams.job_id)) + "/cancel";
1027
+ return this.client.request({
1028
+ ...options,
1029
+ method: 'POST',
1030
+ path,
1031
+ write: true,
1032
+ });
1033
+ }
1034
+ async postBacktestCommunityexampleByJob_id(pathParams, body, options) {
1035
+ const path = "/api/v1/backtest/" + encodeURIComponent(String(pathParams.job_id)) + "/community-example";
1036
+ return this.client.request({
1037
+ ...options,
1038
+ method: 'POST',
1039
+ path,
1040
+ body: body ?? options?.body,
1041
+ write: true,
1042
+ });
1043
+ }
1044
+ async patchBacktestCommunityexampleByJob_id(pathParams, body, options) {
1045
+ const path = "/api/v1/backtest/" + encodeURIComponent(String(pathParams.job_id)) + "/community-example";
1046
+ return this.client.request({
1047
+ ...options,
1048
+ method: 'PATCH',
1049
+ path,
1050
+ body: body ?? options?.body,
1051
+ write: true,
1052
+ });
1053
+ }
1054
+ async deleteBacktestCommunityexampleByJob_id(pathParams, options) {
1055
+ const path = "/api/v1/backtest/" + encodeURIComponent(String(pathParams.job_id)) + "/community-example";
1056
+ return this.client.request({
1057
+ ...options,
1058
+ method: 'DELETE',
1059
+ path,
1060
+ write: true,
1061
+ });
1062
+ }
1063
+ async postTerminalPlaceorder(body, options) {
1064
+ const path = "/api/v1/terminal/place-order";
1065
+ return this.client.request({
1066
+ ...options,
1067
+ method: 'POST',
1068
+ path,
1069
+ body: body ?? options?.body,
1070
+ write: true,
1071
+ });
1072
+ }
1073
+ async postTerminalCancelorder(body, options) {
1074
+ const path = "/api/v1/terminal/cancel-order";
1075
+ return this.client.request({
1076
+ ...options,
1077
+ method: 'POST',
1078
+ path,
1079
+ body: body ?? options?.body,
1080
+ write: true,
1081
+ });
1082
+ }
1083
+ async getAiChatQuota(options) {
1084
+ const path = "/api/v1/ai/chat/quota";
1085
+ return this.client.request({
1086
+ ...options,
1087
+ method: 'GET',
1088
+ path,
1089
+ });
1090
+ }
1091
+ async getAiChatConversations(options) {
1092
+ const path = "/api/v1/ai/chat/conversations";
1093
+ return this.client.request({
1094
+ ...options,
1095
+ method: 'GET',
1096
+ path,
1097
+ });
1098
+ }
1099
+ async postAiChatConversations(body, options) {
1100
+ const path = "/api/v1/ai/chat/conversations";
1101
+ return this.client.request({
1102
+ ...options,
1103
+ method: 'POST',
1104
+ path,
1105
+ body: body ?? options?.body,
1106
+ write: true,
1107
+ });
1108
+ }
1109
+ async getAiChatConversationsById(pathParams, options) {
1110
+ const path = "/api/v1/ai/chat/conversations/" + encodeURIComponent(String(pathParams.id)) + "";
1111
+ return this.client.request({
1112
+ ...options,
1113
+ method: 'GET',
1114
+ path,
1115
+ });
1116
+ }
1117
+ async postAiChatConversationsMessagesById(pathParams, body, options) {
1118
+ const path = "/api/v1/ai/chat/conversations/" + encodeURIComponent(String(pathParams.id)) + "/messages";
1119
+ return this.client.request({
1120
+ ...options,
1121
+ method: 'POST',
1122
+ path,
1123
+ body: body ?? options?.body,
1124
+ write: true,
1125
+ });
1126
+ }
1127
+ async postAiChatConversationsToolsConfirmByIdCall_id(pathParams, body, options) {
1128
+ const path = "/api/v1/ai/chat/conversations/" + encodeURIComponent(String(pathParams.id)) + "/tools/" + encodeURIComponent(String(pathParams.call_id)) + "/confirm";
1129
+ return this.client.request({
1130
+ ...options,
1131
+ method: 'POST',
1132
+ path,
1133
+ body: body ?? options?.body,
1134
+ write: true,
1135
+ });
1136
+ }
1137
+ }
1138
+ export const OPERATION_IDS = [
1139
+ "getMe",
1140
+ "getMeStatistics",
1141
+ "getMePositions",
1142
+ "getMePositionlegs",
1143
+ "getMeAvailablecash",
1144
+ "getMeOrders",
1145
+ "getMeSignals",
1146
+ "getMeEmitters",
1147
+ "postMeEmittersSummary",
1148
+ "postAutomationsSummary",
1149
+ "postAutomationsStatuscounts",
1150
+ "postAutomationsSummaryByids",
1151
+ "getFollowers",
1152
+ "postFollowers",
1153
+ "getFollowersById",
1154
+ "patchFollowersById",
1155
+ "deleteFollowersById",
1156
+ "postFollowersSummary",
1157
+ "getFollowersSummaryById",
1158
+ "getFollowersPnlseriesById",
1159
+ "getFollowersPositionById",
1160
+ "getBots",
1161
+ "postBots",
1162
+ "getBotsById",
1163
+ "patchBotsById",
1164
+ "deleteBotsById",
1165
+ "postBotsSummary",
1166
+ "getBotsPnlseriesById",
1167
+ "getBotsPositionById",
1168
+ "getEmitters",
1169
+ "postEmitters",
1170
+ "getEmittersById",
1171
+ "patchEmittersById",
1172
+ "deleteEmittersById",
1173
+ "postEmittersSummary",
1174
+ "getEmittersSummaryById",
1175
+ "getEmittersCurated",
1176
+ "getEmittersPnlseriesById",
1177
+ "getEmittersPositionById",
1178
+ "getPortfolios",
1179
+ "postPortfolios",
1180
+ "getPortfoliosById",
1181
+ "patchPortfoliosById",
1182
+ "deletePortfoliosById",
1183
+ "postPortfoliosSummary",
1184
+ "getPortfoliosPnlseriesById",
1185
+ "getPortfoliosPositionsById",
1186
+ "getOrders",
1187
+ "getSignals",
1188
+ "getBacktestQuota",
1189
+ "getBacktests",
1190
+ "getBacktestsSummary",
1191
+ "getBacktestCommunityexamples",
1192
+ "getBacktestByJob_id",
1193
+ "getBacktestSignalsByJob_id",
1194
+ "getBacktestBulkSeed",
1195
+ "getBacktestBulkBatches",
1196
+ "getBacktestBulkBatchesByBatch_id",
1197
+ "getTicker",
1198
+ "getFundingrate",
1199
+ "getMarketOrderbook",
1200
+ "getMarketTrades",
1201
+ "getMarkets",
1202
+ "getMarketsAssetprofile",
1203
+ "getExchanges",
1204
+ "getMarkettypes",
1205
+ "getMarketplaceSearch",
1206
+ "getMarketplaceSellersByHandle",
1207
+ "getDatafeedHistory",
1208
+ "postMarketsSymbolcorrelation",
1209
+ "postMarketsSymbolvolatility",
1210
+ "postMarketsSymbolfeebreakeven",
1211
+ "getTerminalOrders",
1212
+ "getTerminalOrdersByclientorderidByClient_order_id",
1213
+ "getTerminalPositions",
1214
+ "getTerminalSymbolrules",
1215
+ "getTerminalOrdercapabilities",
1216
+ "getExchangeBalances",
1217
+ "getExchangePositions",
1218
+ "getExchangeMarginsummary",
1219
+ "getExchangeOrders",
1220
+ "getExchangeTrades",
1221
+ "getExchangeIncome",
1222
+ "getExchangeOpenablenotional",
1223
+ "getExchangeLeveragecapabilities",
1224
+ "postExchangeLeverage",
1225
+ "postExchangeMarginmode",
1226
+ "postExchangeCancelorder",
1227
+ "postExchangeCancelorders",
1228
+ "getCredentials",
1229
+ "postCredentials",
1230
+ "getTags",
1231
+ "postTags",
1232
+ "getMeStatisticsBytag",
1233
+ "postFollowersStartById",
1234
+ "postFollowersStopById",
1235
+ "postBotsStartById",
1236
+ "postBotsStopById",
1237
+ "postBotsBooksById",
1238
+ "postFollowersBooksById",
1239
+ "postEmittersStartById",
1240
+ "postEmittersStopById",
1241
+ "postPortfoliosStartById",
1242
+ "postPortfoliosStopById",
1243
+ "putFollowersTagsById",
1244
+ "putBotsTagsById",
1245
+ "putEmittersTagsById",
1246
+ "putPortfoliosTagsById",
1247
+ "patchTagsById",
1248
+ "deleteTagsById",
1249
+ "putCredentialsById",
1250
+ "deleteCredentialsById",
1251
+ "postCredentialsDefaultById",
1252
+ "postBacktest",
1253
+ "postBacktestBulk",
1254
+ "postBacktestBulkBatchesRerunByBatch_id",
1255
+ "postBacktestBulkBatchesCancelByBatch_id",
1256
+ "postBacktestCancelByJob_id",
1257
+ "postBacktestCommunityexampleByJob_id",
1258
+ "patchBacktestCommunityexampleByJob_id",
1259
+ "deleteBacktestCommunityexampleByJob_id",
1260
+ "postTerminalPlaceorder",
1261
+ "postTerminalCancelorder",
1262
+ "getAiChatQuota",
1263
+ "getAiChatConversations",
1264
+ "postAiChatConversations",
1265
+ "getAiChatConversationsById",
1266
+ "postAiChatConversationsMessagesById",
1267
+ "postAiChatConversationsToolsConfirmByIdCall_id",
1268
+ ];