@yuants/exchange 0.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,1269 @@
1
+ {
2
+ "metadata": {
3
+ "toolPackage": "@microsoft/api-extractor",
4
+ "toolVersion": "7.30.1",
5
+ "schemaVersion": 1009,
6
+ "oldestForwardsCompatibleVersion": 1001,
7
+ "tsdocConfig": {
8
+ "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
9
+ "noStandardTags": true,
10
+ "tagDefinitions": [
11
+ {
12
+ "tagName": "@alpha",
13
+ "syntaxKind": "modifier"
14
+ },
15
+ {
16
+ "tagName": "@beta",
17
+ "syntaxKind": "modifier"
18
+ },
19
+ {
20
+ "tagName": "@defaultValue",
21
+ "syntaxKind": "block"
22
+ },
23
+ {
24
+ "tagName": "@decorator",
25
+ "syntaxKind": "block",
26
+ "allowMultiple": true
27
+ },
28
+ {
29
+ "tagName": "@deprecated",
30
+ "syntaxKind": "block"
31
+ },
32
+ {
33
+ "tagName": "@eventProperty",
34
+ "syntaxKind": "modifier"
35
+ },
36
+ {
37
+ "tagName": "@example",
38
+ "syntaxKind": "block",
39
+ "allowMultiple": true
40
+ },
41
+ {
42
+ "tagName": "@experimental",
43
+ "syntaxKind": "modifier"
44
+ },
45
+ {
46
+ "tagName": "@inheritDoc",
47
+ "syntaxKind": "inline"
48
+ },
49
+ {
50
+ "tagName": "@internal",
51
+ "syntaxKind": "modifier"
52
+ },
53
+ {
54
+ "tagName": "@label",
55
+ "syntaxKind": "inline"
56
+ },
57
+ {
58
+ "tagName": "@link",
59
+ "syntaxKind": "inline",
60
+ "allowMultiple": true
61
+ },
62
+ {
63
+ "tagName": "@override",
64
+ "syntaxKind": "modifier"
65
+ },
66
+ {
67
+ "tagName": "@packageDocumentation",
68
+ "syntaxKind": "modifier"
69
+ },
70
+ {
71
+ "tagName": "@param",
72
+ "syntaxKind": "block",
73
+ "allowMultiple": true
74
+ },
75
+ {
76
+ "tagName": "@privateRemarks",
77
+ "syntaxKind": "block"
78
+ },
79
+ {
80
+ "tagName": "@public",
81
+ "syntaxKind": "modifier"
82
+ },
83
+ {
84
+ "tagName": "@readonly",
85
+ "syntaxKind": "modifier"
86
+ },
87
+ {
88
+ "tagName": "@remarks",
89
+ "syntaxKind": "block"
90
+ },
91
+ {
92
+ "tagName": "@returns",
93
+ "syntaxKind": "block"
94
+ },
95
+ {
96
+ "tagName": "@sealed",
97
+ "syntaxKind": "modifier"
98
+ },
99
+ {
100
+ "tagName": "@see",
101
+ "syntaxKind": "block"
102
+ },
103
+ {
104
+ "tagName": "@throws",
105
+ "syntaxKind": "block",
106
+ "allowMultiple": true
107
+ },
108
+ {
109
+ "tagName": "@typeParam",
110
+ "syntaxKind": "block",
111
+ "allowMultiple": true
112
+ },
113
+ {
114
+ "tagName": "@virtual",
115
+ "syntaxKind": "modifier"
116
+ },
117
+ {
118
+ "tagName": "@betaDocumentation",
119
+ "syntaxKind": "modifier"
120
+ },
121
+ {
122
+ "tagName": "@internalRemarks",
123
+ "syntaxKind": "block"
124
+ },
125
+ {
126
+ "tagName": "@preapproved",
127
+ "syntaxKind": "modifier"
128
+ }
129
+ ],
130
+ "supportForTags": {
131
+ "@alpha": true,
132
+ "@beta": true,
133
+ "@defaultValue": true,
134
+ "@decorator": true,
135
+ "@deprecated": true,
136
+ "@eventProperty": true,
137
+ "@example": true,
138
+ "@experimental": true,
139
+ "@inheritDoc": true,
140
+ "@internal": true,
141
+ "@label": true,
142
+ "@link": true,
143
+ "@override": true,
144
+ "@packageDocumentation": true,
145
+ "@param": true,
146
+ "@privateRemarks": true,
147
+ "@public": true,
148
+ "@readonly": true,
149
+ "@remarks": true,
150
+ "@returns": true,
151
+ "@sealed": true,
152
+ "@see": true,
153
+ "@throws": true,
154
+ "@typeParam": true,
155
+ "@virtual": true,
156
+ "@betaDocumentation": true,
157
+ "@internalRemarks": true,
158
+ "@preapproved": true
159
+ },
160
+ "reportUnsupportedHtmlElements": false
161
+ }
162
+ },
163
+ "kind": "Package",
164
+ "canonicalReference": "@yuants/exchange!",
165
+ "docComment": "",
166
+ "name": "@yuants/exchange",
167
+ "preserveMemberOrder": false,
168
+ "members": [
169
+ {
170
+ "kind": "EntryPoint",
171
+ "canonicalReference": "@yuants/exchange!",
172
+ "name": "",
173
+ "preserveMemberOrder": false,
174
+ "members": [
175
+ {
176
+ "kind": "Variable",
177
+ "canonicalReference": "@yuants/exchange!cancelOrder:var",
178
+ "docComment": "/**\n * Cancel order\n *\n * @public\n */\n",
179
+ "excerptTokens": [
180
+ {
181
+ "kind": "Content",
182
+ "text": "cancelOrder: "
183
+ },
184
+ {
185
+ "kind": "Content",
186
+ "text": "<T>(terminal: "
187
+ },
188
+ {
189
+ "kind": "Reference",
190
+ "text": "Terminal",
191
+ "canonicalReference": "@yuants/protocol!Terminal:class"
192
+ },
193
+ {
194
+ "kind": "Content",
195
+ "text": ", credential: {\n type: string;\n payload: T;\n}, order: "
196
+ },
197
+ {
198
+ "kind": "Reference",
199
+ "text": "IOrder",
200
+ "canonicalReference": "@yuants/data-order!IOrder:interface"
201
+ },
202
+ {
203
+ "kind": "Content",
204
+ "text": ") => "
205
+ },
206
+ {
207
+ "kind": "Reference",
208
+ "text": "Promise",
209
+ "canonicalReference": "!Promise:interface"
210
+ },
211
+ {
212
+ "kind": "Content",
213
+ "text": "<"
214
+ },
215
+ {
216
+ "kind": "Reference",
217
+ "text": "IResponse",
218
+ "canonicalReference": "@yuants/protocol!IResponse:interface"
219
+ },
220
+ {
221
+ "kind": "Content",
222
+ "text": "<void>>"
223
+ }
224
+ ],
225
+ "isReadonly": true,
226
+ "releaseTag": "Public",
227
+ "name": "cancelOrder",
228
+ "variableTypeTokenRange": {
229
+ "startIndex": 1,
230
+ "endIndex": 10
231
+ }
232
+ },
233
+ {
234
+ "kind": "Variable",
235
+ "canonicalReference": "@yuants/exchange!getCredentialId:var",
236
+ "docComment": "/**\n * Get credential ID\n *\n * @public\n */\n",
237
+ "excerptTokens": [
238
+ {
239
+ "kind": "Content",
240
+ "text": "getCredentialId: "
241
+ },
242
+ {
243
+ "kind": "Content",
244
+ "text": "<T>(terminal: "
245
+ },
246
+ {
247
+ "kind": "Reference",
248
+ "text": "Terminal",
249
+ "canonicalReference": "@yuants/protocol!Terminal:class"
250
+ },
251
+ {
252
+ "kind": "Content",
253
+ "text": ", credential: {\n type: string;\n payload: T;\n}) => "
254
+ },
255
+ {
256
+ "kind": "Reference",
257
+ "text": "Promise",
258
+ "canonicalReference": "!Promise:interface"
259
+ },
260
+ {
261
+ "kind": "Content",
262
+ "text": "<"
263
+ },
264
+ {
265
+ "kind": "Reference",
266
+ "text": "IResponse",
267
+ "canonicalReference": "@yuants/protocol!IResponse:interface"
268
+ },
269
+ {
270
+ "kind": "Content",
271
+ "text": "<string>>"
272
+ }
273
+ ],
274
+ "isReadonly": true,
275
+ "releaseTag": "Public",
276
+ "name": "getCredentialId",
277
+ "variableTypeTokenRange": {
278
+ "startIndex": 1,
279
+ "endIndex": 8
280
+ }
281
+ },
282
+ {
283
+ "kind": "Variable",
284
+ "canonicalReference": "@yuants/exchange!getOrders:var",
285
+ "docComment": "/**\n * Get orders\n *\n * @public\n */\n",
286
+ "excerptTokens": [
287
+ {
288
+ "kind": "Content",
289
+ "text": "getOrders: "
290
+ },
291
+ {
292
+ "kind": "Content",
293
+ "text": "<T>(terminal: "
294
+ },
295
+ {
296
+ "kind": "Reference",
297
+ "text": "Terminal",
298
+ "canonicalReference": "@yuants/protocol!Terminal:class"
299
+ },
300
+ {
301
+ "kind": "Content",
302
+ "text": ", credential: {\n type: string;\n payload: T;\n}, product_id?: string) => "
303
+ },
304
+ {
305
+ "kind": "Reference",
306
+ "text": "Promise",
307
+ "canonicalReference": "!Promise:interface"
308
+ },
309
+ {
310
+ "kind": "Content",
311
+ "text": "<"
312
+ },
313
+ {
314
+ "kind": "Reference",
315
+ "text": "IResponse",
316
+ "canonicalReference": "@yuants/protocol!IResponse:interface"
317
+ },
318
+ {
319
+ "kind": "Content",
320
+ "text": "<"
321
+ },
322
+ {
323
+ "kind": "Reference",
324
+ "text": "IOrder",
325
+ "canonicalReference": "@yuants/data-order!IOrder:interface"
326
+ },
327
+ {
328
+ "kind": "Content",
329
+ "text": "[]>>"
330
+ }
331
+ ],
332
+ "isReadonly": true,
333
+ "releaseTag": "Public",
334
+ "name": "getOrders",
335
+ "variableTypeTokenRange": {
336
+ "startIndex": 1,
337
+ "endIndex": 10
338
+ }
339
+ },
340
+ {
341
+ "kind": "Variable",
342
+ "canonicalReference": "@yuants/exchange!getPositions:var",
343
+ "docComment": "/**\n * Get positions\n *\n * @public\n */\n",
344
+ "excerptTokens": [
345
+ {
346
+ "kind": "Content",
347
+ "text": "getPositions: "
348
+ },
349
+ {
350
+ "kind": "Content",
351
+ "text": "<T>(terminal: "
352
+ },
353
+ {
354
+ "kind": "Reference",
355
+ "text": "Terminal",
356
+ "canonicalReference": "@yuants/protocol!Terminal:class"
357
+ },
358
+ {
359
+ "kind": "Content",
360
+ "text": ", credential: {\n type: string;\n payload: T;\n}, product_id?: string) => "
361
+ },
362
+ {
363
+ "kind": "Reference",
364
+ "text": "Promise",
365
+ "canonicalReference": "!Promise:interface"
366
+ },
367
+ {
368
+ "kind": "Content",
369
+ "text": "<"
370
+ },
371
+ {
372
+ "kind": "Reference",
373
+ "text": "IResponse",
374
+ "canonicalReference": "@yuants/protocol!IResponse:interface"
375
+ },
376
+ {
377
+ "kind": "Content",
378
+ "text": "<"
379
+ },
380
+ {
381
+ "kind": "Reference",
382
+ "text": "IPosition",
383
+ "canonicalReference": "@yuants/data-account!IPosition:interface"
384
+ },
385
+ {
386
+ "kind": "Content",
387
+ "text": "[]>>"
388
+ }
389
+ ],
390
+ "isReadonly": true,
391
+ "releaseTag": "Public",
392
+ "name": "getPositions",
393
+ "variableTypeTokenRange": {
394
+ "startIndex": 1,
395
+ "endIndex": 10
396
+ }
397
+ },
398
+ {
399
+ "kind": "Interface",
400
+ "canonicalReference": "@yuants/exchange!IExchange:interface",
401
+ "docComment": "/**\n * Exchange Interface\n *\n * @public\n */\n",
402
+ "excerptTokens": [
403
+ {
404
+ "kind": "Content",
405
+ "text": "export interface IExchange<T = "
406
+ },
407
+ {
408
+ "kind": "Content",
409
+ "text": "any"
410
+ },
411
+ {
412
+ "kind": "Content",
413
+ "text": "> "
414
+ }
415
+ ],
416
+ "releaseTag": "Public",
417
+ "typeParameters": [
418
+ {
419
+ "typeParameterName": "T",
420
+ "constraintTokenRange": {
421
+ "startIndex": 0,
422
+ "endIndex": 0
423
+ },
424
+ "defaultTypeTokenRange": {
425
+ "startIndex": 1,
426
+ "endIndex": 2
427
+ }
428
+ }
429
+ ],
430
+ "name": "IExchange",
431
+ "preserveMemberOrder": false,
432
+ "members": [
433
+ {
434
+ "kind": "MethodSignature",
435
+ "canonicalReference": "@yuants/exchange!IExchange#cancelOrder:member(1)",
436
+ "docComment": "/**\n * Cancel an order\n *\n * @param credential - The credential object\n *\n * @param order - The order object\n */\n",
437
+ "excerptTokens": [
438
+ {
439
+ "kind": "Content",
440
+ "text": "cancelOrder(credential: "
441
+ },
442
+ {
443
+ "kind": "Content",
444
+ "text": "T"
445
+ },
446
+ {
447
+ "kind": "Content",
448
+ "text": ", order: "
449
+ },
450
+ {
451
+ "kind": "Reference",
452
+ "text": "IOrder",
453
+ "canonicalReference": "@yuants/data-order!IOrder:interface"
454
+ },
455
+ {
456
+ "kind": "Content",
457
+ "text": "): "
458
+ },
459
+ {
460
+ "kind": "Reference",
461
+ "text": "Promise",
462
+ "canonicalReference": "!Promise:interface"
463
+ },
464
+ {
465
+ "kind": "Content",
466
+ "text": "<void>"
467
+ },
468
+ {
469
+ "kind": "Content",
470
+ "text": ";"
471
+ }
472
+ ],
473
+ "isOptional": false,
474
+ "returnTypeTokenRange": {
475
+ "startIndex": 5,
476
+ "endIndex": 7
477
+ },
478
+ "releaseTag": "Public",
479
+ "overloadIndex": 1,
480
+ "parameters": [
481
+ {
482
+ "parameterName": "credential",
483
+ "parameterTypeTokenRange": {
484
+ "startIndex": 1,
485
+ "endIndex": 2
486
+ },
487
+ "isOptional": false
488
+ },
489
+ {
490
+ "parameterName": "order",
491
+ "parameterTypeTokenRange": {
492
+ "startIndex": 3,
493
+ "endIndex": 4
494
+ },
495
+ "isOptional": false
496
+ }
497
+ ],
498
+ "name": "cancelOrder"
499
+ },
500
+ {
501
+ "kind": "PropertySignature",
502
+ "canonicalReference": "@yuants/exchange!IExchange#credentialSchema:member",
503
+ "docComment": "/**\n * JSON Schema for the credential payload\n */\n",
504
+ "excerptTokens": [
505
+ {
506
+ "kind": "Content",
507
+ "text": "credentialSchema: "
508
+ },
509
+ {
510
+ "kind": "Reference",
511
+ "text": "JSONSchema7",
512
+ "canonicalReference": "@types/json-schema!JSONSchema7:interface"
513
+ },
514
+ {
515
+ "kind": "Content",
516
+ "text": ";"
517
+ }
518
+ ],
519
+ "isReadonly": false,
520
+ "isOptional": false,
521
+ "releaseTag": "Public",
522
+ "name": "credentialSchema",
523
+ "propertyTypeTokenRange": {
524
+ "startIndex": 1,
525
+ "endIndex": 2
526
+ }
527
+ },
528
+ {
529
+ "kind": "MethodSignature",
530
+ "canonicalReference": "@yuants/exchange!IExchange#getCredentialId:member(1)",
531
+ "docComment": "/**\n * Get credential ID from credential\n *\n * @param credential - The credential object\n */\n",
532
+ "excerptTokens": [
533
+ {
534
+ "kind": "Content",
535
+ "text": "getCredentialId(credential: "
536
+ },
537
+ {
538
+ "kind": "Content",
539
+ "text": "T"
540
+ },
541
+ {
542
+ "kind": "Content",
543
+ "text": "): "
544
+ },
545
+ {
546
+ "kind": "Reference",
547
+ "text": "Promise",
548
+ "canonicalReference": "!Promise:interface"
549
+ },
550
+ {
551
+ "kind": "Content",
552
+ "text": "<string>"
553
+ },
554
+ {
555
+ "kind": "Content",
556
+ "text": ";"
557
+ }
558
+ ],
559
+ "isOptional": false,
560
+ "returnTypeTokenRange": {
561
+ "startIndex": 3,
562
+ "endIndex": 5
563
+ },
564
+ "releaseTag": "Public",
565
+ "overloadIndex": 1,
566
+ "parameters": [
567
+ {
568
+ "parameterName": "credential",
569
+ "parameterTypeTokenRange": {
570
+ "startIndex": 1,
571
+ "endIndex": 2
572
+ },
573
+ "isOptional": false
574
+ }
575
+ ],
576
+ "name": "getCredentialId"
577
+ },
578
+ {
579
+ "kind": "MethodSignature",
580
+ "canonicalReference": "@yuants/exchange!IExchange#getOrders:member(1)",
581
+ "docComment": "/**\n * Get all orders\n *\n * @param credential - The credential object\n */\n",
582
+ "excerptTokens": [
583
+ {
584
+ "kind": "Content",
585
+ "text": "getOrders(credential: "
586
+ },
587
+ {
588
+ "kind": "Content",
589
+ "text": "T"
590
+ },
591
+ {
592
+ "kind": "Content",
593
+ "text": "): "
594
+ },
595
+ {
596
+ "kind": "Reference",
597
+ "text": "Promise",
598
+ "canonicalReference": "!Promise:interface"
599
+ },
600
+ {
601
+ "kind": "Content",
602
+ "text": "<"
603
+ },
604
+ {
605
+ "kind": "Reference",
606
+ "text": "IOrder",
607
+ "canonicalReference": "@yuants/data-order!IOrder:interface"
608
+ },
609
+ {
610
+ "kind": "Content",
611
+ "text": "[]>"
612
+ },
613
+ {
614
+ "kind": "Content",
615
+ "text": ";"
616
+ }
617
+ ],
618
+ "isOptional": false,
619
+ "returnTypeTokenRange": {
620
+ "startIndex": 3,
621
+ "endIndex": 7
622
+ },
623
+ "releaseTag": "Public",
624
+ "overloadIndex": 1,
625
+ "parameters": [
626
+ {
627
+ "parameterName": "credential",
628
+ "parameterTypeTokenRange": {
629
+ "startIndex": 1,
630
+ "endIndex": 2
631
+ },
632
+ "isOptional": false
633
+ }
634
+ ],
635
+ "name": "getOrders"
636
+ },
637
+ {
638
+ "kind": "MethodSignature",
639
+ "canonicalReference": "@yuants/exchange!IExchange#getOrdersByProductId:member(1)",
640
+ "docComment": "/**\n * Get orders by product_id\n *\n * @param credential - The credential object\n *\n * @param product_id - The product ID\n */\n",
641
+ "excerptTokens": [
642
+ {
643
+ "kind": "Content",
644
+ "text": "getOrdersByProductId(credential: "
645
+ },
646
+ {
647
+ "kind": "Content",
648
+ "text": "T"
649
+ },
650
+ {
651
+ "kind": "Content",
652
+ "text": ", product_id: "
653
+ },
654
+ {
655
+ "kind": "Content",
656
+ "text": "string"
657
+ },
658
+ {
659
+ "kind": "Content",
660
+ "text": "): "
661
+ },
662
+ {
663
+ "kind": "Reference",
664
+ "text": "Promise",
665
+ "canonicalReference": "!Promise:interface"
666
+ },
667
+ {
668
+ "kind": "Content",
669
+ "text": "<"
670
+ },
671
+ {
672
+ "kind": "Reference",
673
+ "text": "IOrder",
674
+ "canonicalReference": "@yuants/data-order!IOrder:interface"
675
+ },
676
+ {
677
+ "kind": "Content",
678
+ "text": "[]>"
679
+ },
680
+ {
681
+ "kind": "Content",
682
+ "text": ";"
683
+ }
684
+ ],
685
+ "isOptional": false,
686
+ "returnTypeTokenRange": {
687
+ "startIndex": 5,
688
+ "endIndex": 9
689
+ },
690
+ "releaseTag": "Public",
691
+ "overloadIndex": 1,
692
+ "parameters": [
693
+ {
694
+ "parameterName": "credential",
695
+ "parameterTypeTokenRange": {
696
+ "startIndex": 1,
697
+ "endIndex": 2
698
+ },
699
+ "isOptional": false
700
+ },
701
+ {
702
+ "parameterName": "product_id",
703
+ "parameterTypeTokenRange": {
704
+ "startIndex": 3,
705
+ "endIndex": 4
706
+ },
707
+ "isOptional": false
708
+ }
709
+ ],
710
+ "name": "getOrdersByProductId"
711
+ },
712
+ {
713
+ "kind": "MethodSignature",
714
+ "canonicalReference": "@yuants/exchange!IExchange#getPositions:member(1)",
715
+ "docComment": "/**\n * Get all positions\n *\n * @param credential - The credential object\n */\n",
716
+ "excerptTokens": [
717
+ {
718
+ "kind": "Content",
719
+ "text": "getPositions(credential: "
720
+ },
721
+ {
722
+ "kind": "Content",
723
+ "text": "T"
724
+ },
725
+ {
726
+ "kind": "Content",
727
+ "text": "): "
728
+ },
729
+ {
730
+ "kind": "Reference",
731
+ "text": "Promise",
732
+ "canonicalReference": "!Promise:interface"
733
+ },
734
+ {
735
+ "kind": "Content",
736
+ "text": "<"
737
+ },
738
+ {
739
+ "kind": "Reference",
740
+ "text": "IPosition",
741
+ "canonicalReference": "@yuants/data-account!IPosition:interface"
742
+ },
743
+ {
744
+ "kind": "Content",
745
+ "text": "[]>"
746
+ },
747
+ {
748
+ "kind": "Content",
749
+ "text": ";"
750
+ }
751
+ ],
752
+ "isOptional": false,
753
+ "returnTypeTokenRange": {
754
+ "startIndex": 3,
755
+ "endIndex": 7
756
+ },
757
+ "releaseTag": "Public",
758
+ "overloadIndex": 1,
759
+ "parameters": [
760
+ {
761
+ "parameterName": "credential",
762
+ "parameterTypeTokenRange": {
763
+ "startIndex": 1,
764
+ "endIndex": 2
765
+ },
766
+ "isOptional": false
767
+ }
768
+ ],
769
+ "name": "getPositions"
770
+ },
771
+ {
772
+ "kind": "MethodSignature",
773
+ "canonicalReference": "@yuants/exchange!IExchange#getPositionsByProductId:member(1)",
774
+ "docComment": "/**\n * Get positions by product_id\n *\n * @param credential - The credential object\n *\n * @param product_id - The product ID\n */\n",
775
+ "excerptTokens": [
776
+ {
777
+ "kind": "Content",
778
+ "text": "getPositionsByProductId(credential: "
779
+ },
780
+ {
781
+ "kind": "Content",
782
+ "text": "T"
783
+ },
784
+ {
785
+ "kind": "Content",
786
+ "text": ", product_id: "
787
+ },
788
+ {
789
+ "kind": "Content",
790
+ "text": "string"
791
+ },
792
+ {
793
+ "kind": "Content",
794
+ "text": "): "
795
+ },
796
+ {
797
+ "kind": "Reference",
798
+ "text": "Promise",
799
+ "canonicalReference": "!Promise:interface"
800
+ },
801
+ {
802
+ "kind": "Content",
803
+ "text": "<"
804
+ },
805
+ {
806
+ "kind": "Reference",
807
+ "text": "IPosition",
808
+ "canonicalReference": "@yuants/data-account!IPosition:interface"
809
+ },
810
+ {
811
+ "kind": "Content",
812
+ "text": "[]>"
813
+ },
814
+ {
815
+ "kind": "Content",
816
+ "text": ";"
817
+ }
818
+ ],
819
+ "isOptional": false,
820
+ "returnTypeTokenRange": {
821
+ "startIndex": 5,
822
+ "endIndex": 9
823
+ },
824
+ "releaseTag": "Public",
825
+ "overloadIndex": 1,
826
+ "parameters": [
827
+ {
828
+ "parameterName": "credential",
829
+ "parameterTypeTokenRange": {
830
+ "startIndex": 1,
831
+ "endIndex": 2
832
+ },
833
+ "isOptional": false
834
+ },
835
+ {
836
+ "parameterName": "product_id",
837
+ "parameterTypeTokenRange": {
838
+ "startIndex": 3,
839
+ "endIndex": 4
840
+ },
841
+ "isOptional": false
842
+ }
843
+ ],
844
+ "name": "getPositionsByProductId"
845
+ },
846
+ {
847
+ "kind": "MethodSignature",
848
+ "canonicalReference": "@yuants/exchange!IExchange#listProducts:member(1)",
849
+ "docComment": "/**\n * List all products\n */\n",
850
+ "excerptTokens": [
851
+ {
852
+ "kind": "Content",
853
+ "text": "listProducts(): "
854
+ },
855
+ {
856
+ "kind": "Reference",
857
+ "text": "Promise",
858
+ "canonicalReference": "!Promise:interface"
859
+ },
860
+ {
861
+ "kind": "Content",
862
+ "text": "<"
863
+ },
864
+ {
865
+ "kind": "Reference",
866
+ "text": "IProduct",
867
+ "canonicalReference": "@yuants/data-product!IProduct:interface"
868
+ },
869
+ {
870
+ "kind": "Content",
871
+ "text": "[]>"
872
+ },
873
+ {
874
+ "kind": "Content",
875
+ "text": ";"
876
+ }
877
+ ],
878
+ "isOptional": false,
879
+ "returnTypeTokenRange": {
880
+ "startIndex": 1,
881
+ "endIndex": 5
882
+ },
883
+ "releaseTag": "Public",
884
+ "overloadIndex": 1,
885
+ "parameters": [],
886
+ "name": "listProducts"
887
+ },
888
+ {
889
+ "kind": "MethodSignature",
890
+ "canonicalReference": "@yuants/exchange!IExchange#modifyOrder:member(1)",
891
+ "docComment": "/**\n * Modify an order\n *\n * @param credential - The credential object\n *\n * @param order - The order object\n */\n",
892
+ "excerptTokens": [
893
+ {
894
+ "kind": "Content",
895
+ "text": "modifyOrder(credential: "
896
+ },
897
+ {
898
+ "kind": "Content",
899
+ "text": "T"
900
+ },
901
+ {
902
+ "kind": "Content",
903
+ "text": ", order: "
904
+ },
905
+ {
906
+ "kind": "Reference",
907
+ "text": "IOrder",
908
+ "canonicalReference": "@yuants/data-order!IOrder:interface"
909
+ },
910
+ {
911
+ "kind": "Content",
912
+ "text": "): "
913
+ },
914
+ {
915
+ "kind": "Reference",
916
+ "text": "Promise",
917
+ "canonicalReference": "!Promise:interface"
918
+ },
919
+ {
920
+ "kind": "Content",
921
+ "text": "<void>"
922
+ },
923
+ {
924
+ "kind": "Content",
925
+ "text": ";"
926
+ }
927
+ ],
928
+ "isOptional": false,
929
+ "returnTypeTokenRange": {
930
+ "startIndex": 5,
931
+ "endIndex": 7
932
+ },
933
+ "releaseTag": "Public",
934
+ "overloadIndex": 1,
935
+ "parameters": [
936
+ {
937
+ "parameterName": "credential",
938
+ "parameterTypeTokenRange": {
939
+ "startIndex": 1,
940
+ "endIndex": 2
941
+ },
942
+ "isOptional": false
943
+ },
944
+ {
945
+ "parameterName": "order",
946
+ "parameterTypeTokenRange": {
947
+ "startIndex": 3,
948
+ "endIndex": 4
949
+ },
950
+ "isOptional": false
951
+ }
952
+ ],
953
+ "name": "modifyOrder"
954
+ },
955
+ {
956
+ "kind": "PropertySignature",
957
+ "canonicalReference": "@yuants/exchange!IExchange#name:member",
958
+ "docComment": "/**\n * Exchange name / type (e.g. 'Binance', 'OKX')\n */\n",
959
+ "excerptTokens": [
960
+ {
961
+ "kind": "Content",
962
+ "text": "name: "
963
+ },
964
+ {
965
+ "kind": "Content",
966
+ "text": "string"
967
+ },
968
+ {
969
+ "kind": "Content",
970
+ "text": ";"
971
+ }
972
+ ],
973
+ "isReadonly": false,
974
+ "isOptional": false,
975
+ "releaseTag": "Public",
976
+ "name": "name",
977
+ "propertyTypeTokenRange": {
978
+ "startIndex": 1,
979
+ "endIndex": 2
980
+ }
981
+ },
982
+ {
983
+ "kind": "MethodSignature",
984
+ "canonicalReference": "@yuants/exchange!IExchange#submitOrder:member(1)",
985
+ "docComment": "/**\n * Submit an order\n *\n * @param credential - The credential object\n *\n * @param order - The order object\n */\n",
986
+ "excerptTokens": [
987
+ {
988
+ "kind": "Content",
989
+ "text": "submitOrder(credential: "
990
+ },
991
+ {
992
+ "kind": "Content",
993
+ "text": "T"
994
+ },
995
+ {
996
+ "kind": "Content",
997
+ "text": ", order: "
998
+ },
999
+ {
1000
+ "kind": "Reference",
1001
+ "text": "IOrder",
1002
+ "canonicalReference": "@yuants/data-order!IOrder:interface"
1003
+ },
1004
+ {
1005
+ "kind": "Content",
1006
+ "text": "): "
1007
+ },
1008
+ {
1009
+ "kind": "Reference",
1010
+ "text": "Promise",
1011
+ "canonicalReference": "!Promise:interface"
1012
+ },
1013
+ {
1014
+ "kind": "Content",
1015
+ "text": "<{\n order_id: string;\n }>"
1016
+ },
1017
+ {
1018
+ "kind": "Content",
1019
+ "text": ";"
1020
+ }
1021
+ ],
1022
+ "isOptional": false,
1023
+ "returnTypeTokenRange": {
1024
+ "startIndex": 5,
1025
+ "endIndex": 7
1026
+ },
1027
+ "releaseTag": "Public",
1028
+ "overloadIndex": 1,
1029
+ "parameters": [
1030
+ {
1031
+ "parameterName": "credential",
1032
+ "parameterTypeTokenRange": {
1033
+ "startIndex": 1,
1034
+ "endIndex": 2
1035
+ },
1036
+ "isOptional": false
1037
+ },
1038
+ {
1039
+ "parameterName": "order",
1040
+ "parameterTypeTokenRange": {
1041
+ "startIndex": 3,
1042
+ "endIndex": 4
1043
+ },
1044
+ "isOptional": false
1045
+ }
1046
+ ],
1047
+ "name": "submitOrder"
1048
+ }
1049
+ ],
1050
+ "extendsTokenRanges": []
1051
+ },
1052
+ {
1053
+ "kind": "Variable",
1054
+ "canonicalReference": "@yuants/exchange!listProducts:var",
1055
+ "docComment": "/**\n * List products\n *\n * @public\n */\n",
1056
+ "excerptTokens": [
1057
+ {
1058
+ "kind": "Content",
1059
+ "text": "listProducts: "
1060
+ },
1061
+ {
1062
+ "kind": "Content",
1063
+ "text": "(terminal: "
1064
+ },
1065
+ {
1066
+ "kind": "Reference",
1067
+ "text": "Terminal",
1068
+ "canonicalReference": "@yuants/protocol!Terminal:class"
1069
+ },
1070
+ {
1071
+ "kind": "Content",
1072
+ "text": ") => "
1073
+ },
1074
+ {
1075
+ "kind": "Reference",
1076
+ "text": "Promise",
1077
+ "canonicalReference": "!Promise:interface"
1078
+ },
1079
+ {
1080
+ "kind": "Content",
1081
+ "text": "<"
1082
+ },
1083
+ {
1084
+ "kind": "Reference",
1085
+ "text": "IResponse",
1086
+ "canonicalReference": "@yuants/protocol!IResponse:interface"
1087
+ },
1088
+ {
1089
+ "kind": "Content",
1090
+ "text": "<"
1091
+ },
1092
+ {
1093
+ "kind": "Reference",
1094
+ "text": "IProduct",
1095
+ "canonicalReference": "@yuants/data-product!IProduct:interface"
1096
+ },
1097
+ {
1098
+ "kind": "Content",
1099
+ "text": "[]>>"
1100
+ }
1101
+ ],
1102
+ "isReadonly": true,
1103
+ "releaseTag": "Public",
1104
+ "name": "listProducts",
1105
+ "variableTypeTokenRange": {
1106
+ "startIndex": 1,
1107
+ "endIndex": 10
1108
+ }
1109
+ },
1110
+ {
1111
+ "kind": "Variable",
1112
+ "canonicalReference": "@yuants/exchange!modifyOrder:var",
1113
+ "docComment": "/**\n * Modify order\n *\n * @public\n */\n",
1114
+ "excerptTokens": [
1115
+ {
1116
+ "kind": "Content",
1117
+ "text": "modifyOrder: "
1118
+ },
1119
+ {
1120
+ "kind": "Content",
1121
+ "text": "<T>(terminal: "
1122
+ },
1123
+ {
1124
+ "kind": "Reference",
1125
+ "text": "Terminal",
1126
+ "canonicalReference": "@yuants/protocol!Terminal:class"
1127
+ },
1128
+ {
1129
+ "kind": "Content",
1130
+ "text": ", credential: {\n type: string;\n payload: T;\n}, order: "
1131
+ },
1132
+ {
1133
+ "kind": "Reference",
1134
+ "text": "IOrder",
1135
+ "canonicalReference": "@yuants/data-order!IOrder:interface"
1136
+ },
1137
+ {
1138
+ "kind": "Content",
1139
+ "text": ") => "
1140
+ },
1141
+ {
1142
+ "kind": "Reference",
1143
+ "text": "Promise",
1144
+ "canonicalReference": "!Promise:interface"
1145
+ },
1146
+ {
1147
+ "kind": "Content",
1148
+ "text": "<"
1149
+ },
1150
+ {
1151
+ "kind": "Reference",
1152
+ "text": "IResponse",
1153
+ "canonicalReference": "@yuants/protocol!IResponse:interface"
1154
+ },
1155
+ {
1156
+ "kind": "Content",
1157
+ "text": "<void>>"
1158
+ }
1159
+ ],
1160
+ "isReadonly": true,
1161
+ "releaseTag": "Public",
1162
+ "name": "modifyOrder",
1163
+ "variableTypeTokenRange": {
1164
+ "startIndex": 1,
1165
+ "endIndex": 10
1166
+ }
1167
+ },
1168
+ {
1169
+ "kind": "Variable",
1170
+ "canonicalReference": "@yuants/exchange!provideExchangeServices:var",
1171
+ "docComment": "/**\n * Provide exchange services\n *\n * @public\n */\n",
1172
+ "excerptTokens": [
1173
+ {
1174
+ "kind": "Content",
1175
+ "text": "provideExchangeServices: "
1176
+ },
1177
+ {
1178
+ "kind": "Content",
1179
+ "text": "<T>(terminal: "
1180
+ },
1181
+ {
1182
+ "kind": "Reference",
1183
+ "text": "Terminal",
1184
+ "canonicalReference": "@yuants/protocol!Terminal:class"
1185
+ },
1186
+ {
1187
+ "kind": "Content",
1188
+ "text": ", exchange: "
1189
+ },
1190
+ {
1191
+ "kind": "Reference",
1192
+ "text": "IExchange",
1193
+ "canonicalReference": "@yuants/exchange!IExchange:interface"
1194
+ },
1195
+ {
1196
+ "kind": "Content",
1197
+ "text": "<T>) => void"
1198
+ }
1199
+ ],
1200
+ "isReadonly": true,
1201
+ "releaseTag": "Public",
1202
+ "name": "provideExchangeServices",
1203
+ "variableTypeTokenRange": {
1204
+ "startIndex": 1,
1205
+ "endIndex": 6
1206
+ }
1207
+ },
1208
+ {
1209
+ "kind": "Variable",
1210
+ "canonicalReference": "@yuants/exchange!submitOrder:var",
1211
+ "docComment": "/**\n * Submit order\n *\n * @public\n */\n",
1212
+ "excerptTokens": [
1213
+ {
1214
+ "kind": "Content",
1215
+ "text": "submitOrder: "
1216
+ },
1217
+ {
1218
+ "kind": "Content",
1219
+ "text": "<T>(terminal: "
1220
+ },
1221
+ {
1222
+ "kind": "Reference",
1223
+ "text": "Terminal",
1224
+ "canonicalReference": "@yuants/protocol!Terminal:class"
1225
+ },
1226
+ {
1227
+ "kind": "Content",
1228
+ "text": ", credential: {\n type: string;\n payload: T;\n}, order: "
1229
+ },
1230
+ {
1231
+ "kind": "Reference",
1232
+ "text": "IOrder",
1233
+ "canonicalReference": "@yuants/data-order!IOrder:interface"
1234
+ },
1235
+ {
1236
+ "kind": "Content",
1237
+ "text": ") => "
1238
+ },
1239
+ {
1240
+ "kind": "Reference",
1241
+ "text": "Promise",
1242
+ "canonicalReference": "!Promise:interface"
1243
+ },
1244
+ {
1245
+ "kind": "Content",
1246
+ "text": "<"
1247
+ },
1248
+ {
1249
+ "kind": "Reference",
1250
+ "text": "IResponse",
1251
+ "canonicalReference": "@yuants/protocol!IResponse:interface"
1252
+ },
1253
+ {
1254
+ "kind": "Content",
1255
+ "text": "<{\n order_id: string;\n}>>"
1256
+ }
1257
+ ],
1258
+ "isReadonly": true,
1259
+ "releaseTag": "Public",
1260
+ "name": "submitOrder",
1261
+ "variableTypeTokenRange": {
1262
+ "startIndex": 1,
1263
+ "endIndex": 10
1264
+ }
1265
+ }
1266
+ ]
1267
+ }
1268
+ ]
1269
+ }