@reyaxyz/strategy-format 0.0.0-stage → 0.2.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,1812 @@
1
+ export { readStrategy, MAX_DOCUMENT_BYTES } from './read';
2
+ export type { ReadCode, ReadResult } from './read';
3
+ export { canonical, versionHash } from './hash';
4
+ export * from './types';
5
+ export declare const workflowV3Schema: {
6
+ $schema: string;
7
+ title: string;
8
+ description: string;
9
+ type: string;
10
+ properties: {
11
+ actions: {
12
+ description: string;
13
+ type: string;
14
+ additionalProperties: {
15
+ $ref: string;
16
+ };
17
+ minProperties: number;
18
+ propertyNames: {
19
+ pattern: string;
20
+ };
21
+ };
22
+ lists: {
23
+ description: string;
24
+ type: string;
25
+ items: {
26
+ $ref: string;
27
+ };
28
+ minItems: number;
29
+ };
30
+ max_loss_rusd: {
31
+ description: string;
32
+ type: string;
33
+ pattern: string;
34
+ };
35
+ on_liquidation: {
36
+ description: string;
37
+ $ref: string;
38
+ };
39
+ on_margin_skip: {
40
+ description: string;
41
+ $ref: string;
42
+ };
43
+ rules: {
44
+ description: string;
45
+ type: string;
46
+ additionalProperties: {
47
+ $ref: string;
48
+ };
49
+ minProperties: number;
50
+ propertyNames: {
51
+ pattern: string;
52
+ };
53
+ };
54
+ schema: {
55
+ description: string;
56
+ const: string;
57
+ };
58
+ series: {
59
+ description: string;
60
+ type: string;
61
+ additionalProperties: {
62
+ $ref: string;
63
+ };
64
+ minProperties: number;
65
+ propertyNames: {
66
+ pattern: string;
67
+ };
68
+ };
69
+ start: {
70
+ description: string;
71
+ $ref: string;
72
+ };
73
+ states: {
74
+ description: string;
75
+ type: string;
76
+ additionalProperties: {
77
+ $ref: string;
78
+ };
79
+ minProperties: number;
80
+ propertyNames: {
81
+ pattern: string;
82
+ };
83
+ };
84
+ };
85
+ additionalProperties: boolean;
86
+ required: string[];
87
+ $defs: {
88
+ Action: {
89
+ description: string;
90
+ oneOf: ({
91
+ description: string;
92
+ type: string;
93
+ properties: {
94
+ kind: {
95
+ type: string;
96
+ const: string;
97
+ };
98
+ market: {
99
+ description: string;
100
+ type: string;
101
+ pattern: string;
102
+ };
103
+ max_slippage_bps: {
104
+ description: string;
105
+ type: string;
106
+ format: string;
107
+ maximum: number;
108
+ minimum: number;
109
+ };
110
+ side: {
111
+ description: string;
112
+ $ref: string;
113
+ };
114
+ size: {
115
+ description: string;
116
+ $ref: string;
117
+ };
118
+ keep?: undefined;
119
+ orders?: undefined;
120
+ by?: undefined;
121
+ list?: undefined;
122
+ total_rusd?: undefined;
123
+ weights?: undefined;
124
+ level?: undefined;
125
+ rule?: undefined;
126
+ to?: undefined;
127
+ };
128
+ additionalProperties: boolean;
129
+ required: string[];
130
+ } | {
131
+ description: string;
132
+ type: string;
133
+ properties: {
134
+ keep: {
135
+ description: string;
136
+ enum: boolean[];
137
+ };
138
+ kind: {
139
+ type: string;
140
+ const: string;
141
+ };
142
+ orders: {
143
+ description: string;
144
+ type: string;
145
+ items: {
146
+ $ref: string;
147
+ };
148
+ maxItems: number;
149
+ minItems: number;
150
+ };
151
+ market?: undefined;
152
+ max_slippage_bps?: undefined;
153
+ side?: undefined;
154
+ size?: undefined;
155
+ by?: undefined;
156
+ list?: undefined;
157
+ total_rusd?: undefined;
158
+ weights?: undefined;
159
+ level?: undefined;
160
+ rule?: undefined;
161
+ to?: undefined;
162
+ };
163
+ additionalProperties: boolean;
164
+ required: string[];
165
+ } | {
166
+ description: string;
167
+ type: string;
168
+ properties: {
169
+ kind: {
170
+ type: string;
171
+ const: string;
172
+ };
173
+ market: {
174
+ description: string;
175
+ type: string;
176
+ pattern: string;
177
+ };
178
+ max_slippage_bps?: undefined;
179
+ side?: undefined;
180
+ size?: undefined;
181
+ keep?: undefined;
182
+ orders?: undefined;
183
+ by?: undefined;
184
+ list?: undefined;
185
+ total_rusd?: undefined;
186
+ weights?: undefined;
187
+ level?: undefined;
188
+ rule?: undefined;
189
+ to?: undefined;
190
+ };
191
+ additionalProperties: boolean;
192
+ required: string[];
193
+ } | {
194
+ description: string;
195
+ type: string;
196
+ properties: {
197
+ by: {
198
+ description: string;
199
+ $ref: string;
200
+ };
201
+ kind: {
202
+ type: string;
203
+ const: string;
204
+ };
205
+ market: {
206
+ description: string;
207
+ type: string;
208
+ pattern: string;
209
+ };
210
+ max_slippage_bps?: undefined;
211
+ side?: undefined;
212
+ size?: undefined;
213
+ keep?: undefined;
214
+ orders?: undefined;
215
+ list?: undefined;
216
+ total_rusd?: undefined;
217
+ weights?: undefined;
218
+ level?: undefined;
219
+ rule?: undefined;
220
+ to?: undefined;
221
+ };
222
+ additionalProperties: boolean;
223
+ required: string[];
224
+ } | {
225
+ description: string;
226
+ type: string;
227
+ properties: {
228
+ kind: {
229
+ type: string;
230
+ const: string;
231
+ };
232
+ list: {
233
+ description: string;
234
+ $ref: string;
235
+ };
236
+ market?: undefined;
237
+ max_slippage_bps?: undefined;
238
+ side?: undefined;
239
+ size?: undefined;
240
+ keep?: undefined;
241
+ orders?: undefined;
242
+ by?: undefined;
243
+ total_rusd?: undefined;
244
+ weights?: undefined;
245
+ level?: undefined;
246
+ rule?: undefined;
247
+ to?: undefined;
248
+ };
249
+ additionalProperties: boolean;
250
+ required: string[];
251
+ } | {
252
+ description: string;
253
+ type: string;
254
+ properties: {
255
+ kind: {
256
+ type: string;
257
+ const: string;
258
+ };
259
+ list: {
260
+ description: string;
261
+ $ref: string;
262
+ };
263
+ total_rusd: {
264
+ description: string;
265
+ type: string;
266
+ pattern: string;
267
+ };
268
+ weights: {
269
+ description: string;
270
+ type: string;
271
+ items: {
272
+ $ref: string;
273
+ };
274
+ minItems: number;
275
+ };
276
+ market?: undefined;
277
+ max_slippage_bps?: undefined;
278
+ side?: undefined;
279
+ size?: undefined;
280
+ keep?: undefined;
281
+ orders?: undefined;
282
+ by?: undefined;
283
+ level?: undefined;
284
+ rule?: undefined;
285
+ to?: undefined;
286
+ };
287
+ additionalProperties: boolean;
288
+ required: string[];
289
+ } | {
290
+ description: string;
291
+ type: string;
292
+ properties: {
293
+ kind: {
294
+ type: string;
295
+ const: string;
296
+ };
297
+ level: {
298
+ description: string;
299
+ $ref: string;
300
+ };
301
+ rule: {
302
+ description: string;
303
+ $ref: string;
304
+ };
305
+ to: {
306
+ description: string;
307
+ $ref: string;
308
+ };
309
+ market?: undefined;
310
+ max_slippage_bps?: undefined;
311
+ side?: undefined;
312
+ size?: undefined;
313
+ keep?: undefined;
314
+ orders?: undefined;
315
+ by?: undefined;
316
+ list?: undefined;
317
+ total_rusd?: undefined;
318
+ weights?: undefined;
319
+ };
320
+ additionalProperties: boolean;
321
+ required: string[];
322
+ })[];
323
+ };
324
+ BlockId: {
325
+ description: string;
326
+ type: string;
327
+ maxLength: number;
328
+ pattern: string;
329
+ };
330
+ Cadence: {
331
+ description: string;
332
+ type: string;
333
+ enum: string[];
334
+ };
335
+ Direction: {
336
+ description: string;
337
+ type: string;
338
+ enum: string[];
339
+ };
340
+ Expr: {
341
+ description: string;
342
+ oneOf: ({
343
+ description: string;
344
+ type: string;
345
+ properties: {
346
+ kind: {
347
+ type: string;
348
+ const: string;
349
+ };
350
+ value: {
351
+ description: string;
352
+ type: string;
353
+ pattern: string;
354
+ };
355
+ market?: undefined;
356
+ series?: undefined;
357
+ index?: undefined;
358
+ row?: undefined;
359
+ head?: undefined;
360
+ name?: undefined;
361
+ of?: undefined;
362
+ remember_anchor?: undefined;
363
+ args?: undefined;
364
+ op?: undefined;
365
+ ago_secs?: undefined;
366
+ anchor?: undefined;
367
+ fn?: undefined;
368
+ interval_secs?: undefined;
369
+ period?: undefined;
370
+ window_secs?: undefined;
371
+ };
372
+ additionalProperties: boolean;
373
+ required: string[];
374
+ } | {
375
+ description: string;
376
+ type: string;
377
+ properties: {
378
+ kind: {
379
+ type: string;
380
+ const: string;
381
+ };
382
+ market: {
383
+ description: string;
384
+ type: string;
385
+ pattern: string;
386
+ };
387
+ series: {
388
+ description: string;
389
+ $ref: string;
390
+ };
391
+ value?: undefined;
392
+ index?: undefined;
393
+ row?: undefined;
394
+ head?: undefined;
395
+ name?: undefined;
396
+ of?: undefined;
397
+ remember_anchor?: undefined;
398
+ args?: undefined;
399
+ op?: undefined;
400
+ ago_secs?: undefined;
401
+ anchor?: undefined;
402
+ fn?: undefined;
403
+ interval_secs?: undefined;
404
+ period?: undefined;
405
+ window_secs?: undefined;
406
+ };
407
+ additionalProperties: boolean;
408
+ required: string[];
409
+ } | {
410
+ description: string;
411
+ type: string;
412
+ properties: {
413
+ kind: {
414
+ type: string;
415
+ const: string;
416
+ };
417
+ series: {
418
+ description: string;
419
+ $ref: string;
420
+ };
421
+ value?: undefined;
422
+ market?: undefined;
423
+ index?: undefined;
424
+ row?: undefined;
425
+ head?: undefined;
426
+ name?: undefined;
427
+ of?: undefined;
428
+ remember_anchor?: undefined;
429
+ args?: undefined;
430
+ op?: undefined;
431
+ ago_secs?: undefined;
432
+ anchor?: undefined;
433
+ fn?: undefined;
434
+ interval_secs?: undefined;
435
+ period?: undefined;
436
+ window_secs?: undefined;
437
+ };
438
+ additionalProperties: boolean;
439
+ required: string[];
440
+ } | {
441
+ description: string;
442
+ type: string;
443
+ properties: {
444
+ index: {
445
+ description: string;
446
+ type: string;
447
+ format: string;
448
+ maximum: number;
449
+ minimum: number;
450
+ };
451
+ kind: {
452
+ type: string;
453
+ const: string;
454
+ };
455
+ row: {
456
+ description: string;
457
+ $ref: string;
458
+ };
459
+ value?: undefined;
460
+ market?: undefined;
461
+ series?: undefined;
462
+ head?: undefined;
463
+ name?: undefined;
464
+ of?: undefined;
465
+ remember_anchor?: undefined;
466
+ args?: undefined;
467
+ op?: undefined;
468
+ ago_secs?: undefined;
469
+ anchor?: undefined;
470
+ fn?: undefined;
471
+ interval_secs?: undefined;
472
+ period?: undefined;
473
+ window_secs?: undefined;
474
+ };
475
+ additionalProperties: boolean;
476
+ required: string[];
477
+ } | {
478
+ description: string;
479
+ type: string;
480
+ properties: {
481
+ head: {
482
+ description: string;
483
+ $ref: string;
484
+ };
485
+ kind: {
486
+ type: string;
487
+ const: string;
488
+ };
489
+ market: {
490
+ description: string;
491
+ type: string;
492
+ pattern: string;
493
+ };
494
+ name: {
495
+ description: string;
496
+ $ref: string;
497
+ };
498
+ of: {
499
+ description: string;
500
+ $ref: string;
501
+ };
502
+ remember_anchor: {
503
+ description: string;
504
+ $ref: string;
505
+ };
506
+ value?: undefined;
507
+ series?: undefined;
508
+ index?: undefined;
509
+ row?: undefined;
510
+ args?: undefined;
511
+ op?: undefined;
512
+ ago_secs?: undefined;
513
+ anchor?: undefined;
514
+ fn?: undefined;
515
+ interval_secs?: undefined;
516
+ period?: undefined;
517
+ window_secs?: undefined;
518
+ };
519
+ additionalProperties: boolean;
520
+ required: string[];
521
+ } | {
522
+ description: string;
523
+ type: string;
524
+ properties: {
525
+ args: {
526
+ description: string;
527
+ type: string;
528
+ items: {
529
+ $ref: string;
530
+ };
531
+ };
532
+ kind: {
533
+ type: string;
534
+ const: string;
535
+ };
536
+ op: {
537
+ description: string;
538
+ $ref: string;
539
+ };
540
+ value?: undefined;
541
+ market?: undefined;
542
+ series?: undefined;
543
+ index?: undefined;
544
+ row?: undefined;
545
+ head?: undefined;
546
+ name?: undefined;
547
+ of?: undefined;
548
+ remember_anchor?: undefined;
549
+ ago_secs?: undefined;
550
+ anchor?: undefined;
551
+ fn?: undefined;
552
+ interval_secs?: undefined;
553
+ period?: undefined;
554
+ window_secs?: undefined;
555
+ };
556
+ additionalProperties: boolean;
557
+ required: string[];
558
+ } | {
559
+ description: string;
560
+ type: string;
561
+ properties: {
562
+ ago_secs: {
563
+ description: string;
564
+ type: string;
565
+ format: string;
566
+ maximum: number;
567
+ minimum: number;
568
+ };
569
+ anchor: {
570
+ description: string;
571
+ $ref: string;
572
+ };
573
+ args: {
574
+ description: string;
575
+ type: string;
576
+ items: {
577
+ $ref: string;
578
+ };
579
+ };
580
+ fn: {
581
+ description: string;
582
+ $ref: string;
583
+ };
584
+ interval_secs: {
585
+ description: string;
586
+ type: string;
587
+ enum: number[];
588
+ maximum: number;
589
+ };
590
+ kind: {
591
+ type: string;
592
+ const: string;
593
+ };
594
+ period: {
595
+ description: string;
596
+ type: string;
597
+ format: string;
598
+ maximum: number;
599
+ minimum: number;
600
+ };
601
+ window_secs: {
602
+ description: string;
603
+ type: string;
604
+ format: string;
605
+ maximum: number;
606
+ minimum: number;
607
+ };
608
+ value?: undefined;
609
+ market?: undefined;
610
+ series?: undefined;
611
+ index?: undefined;
612
+ row?: undefined;
613
+ head?: undefined;
614
+ name?: undefined;
615
+ of?: undefined;
616
+ remember_anchor?: undefined;
617
+ op?: undefined;
618
+ };
619
+ additionalProperties: boolean;
620
+ required: string[];
621
+ })[];
622
+ };
623
+ FinalOutcome: {
624
+ description: string;
625
+ type: string;
626
+ enum: string[];
627
+ };
628
+ FnAnchor: {
629
+ description: string;
630
+ type: string;
631
+ enum: string[];
632
+ };
633
+ FnName: {
634
+ description: string;
635
+ type: string;
636
+ enum: string[];
637
+ };
638
+ InputName: {
639
+ description: string;
640
+ type: string;
641
+ enum: string[];
642
+ };
643
+ Label: {
644
+ description: string;
645
+ type: string;
646
+ properties: {
647
+ ends: {
648
+ description: string;
649
+ type: string;
650
+ format: string;
651
+ maximum: number;
652
+ minimum: number;
653
+ };
654
+ outcome: {
655
+ description: string;
656
+ type: string;
657
+ maxLength: number;
658
+ };
659
+ question: {
660
+ description: string;
661
+ type: string;
662
+ maxLength: number;
663
+ };
664
+ };
665
+ additionalProperties: boolean;
666
+ required: string[];
667
+ };
668
+ Level: {
669
+ description: string;
670
+ oneOf: ({
671
+ description: string;
672
+ type: string;
673
+ properties: {
674
+ kind: {
675
+ type: string;
676
+ const: string;
677
+ };
678
+ price: {
679
+ description: string;
680
+ type: string;
681
+ pattern: string;
682
+ };
683
+ distance?: undefined;
684
+ pct?: undefined;
685
+ activation?: undefined;
686
+ value?: undefined;
687
+ };
688
+ additionalProperties: boolean;
689
+ required: string[];
690
+ } | {
691
+ description: string;
692
+ type: string;
693
+ properties: {
694
+ distance: {
695
+ description: string;
696
+ type: string;
697
+ pattern: string;
698
+ };
699
+ kind: {
700
+ type: string;
701
+ const: string;
702
+ };
703
+ pct: {
704
+ description: string;
705
+ type: string;
706
+ pattern: string;
707
+ };
708
+ price?: undefined;
709
+ activation?: undefined;
710
+ value?: undefined;
711
+ };
712
+ additionalProperties: boolean;
713
+ required: string[];
714
+ } | {
715
+ description: string;
716
+ type: string;
717
+ properties: {
718
+ activation: {
719
+ description: string;
720
+ type: string;
721
+ pattern: string;
722
+ };
723
+ distance: {
724
+ description: string;
725
+ type: string;
726
+ pattern: string;
727
+ };
728
+ kind: {
729
+ type: string;
730
+ const: string;
731
+ };
732
+ pct: {
733
+ description: string;
734
+ type: string;
735
+ pattern: string;
736
+ };
737
+ price?: undefined;
738
+ value?: undefined;
739
+ };
740
+ additionalProperties: boolean;
741
+ required: string[];
742
+ } | {
743
+ description: string;
744
+ type: string;
745
+ properties: {
746
+ kind: {
747
+ type: string;
748
+ const: string;
749
+ };
750
+ value: {
751
+ description: string;
752
+ $ref: string;
753
+ };
754
+ price?: undefined;
755
+ distance?: undefined;
756
+ pct?: undefined;
757
+ activation?: undefined;
758
+ };
759
+ additionalProperties: boolean;
760
+ required: string[];
761
+ })[];
762
+ };
763
+ ListBlock: {
764
+ description: string;
765
+ oneOf: ({
766
+ description: string;
767
+ type: string;
768
+ properties: {
769
+ id: {
770
+ description: string;
771
+ $ref: string;
772
+ };
773
+ kind: {
774
+ type: string;
775
+ const: string;
776
+ };
777
+ members: {
778
+ description: string;
779
+ type: string;
780
+ items: {
781
+ $ref: string;
782
+ };
783
+ minItems: number;
784
+ };
785
+ start: {
786
+ description: string;
787
+ $ref: string;
788
+ };
789
+ from?: undefined;
790
+ max_size?: undefined;
791
+ where?: undefined;
792
+ by?: undefined;
793
+ order?: undefined;
794
+ top?: undefined;
795
+ };
796
+ additionalProperties: boolean;
797
+ required: string[];
798
+ } | {
799
+ description: string;
800
+ type: string;
801
+ properties: {
802
+ from: {
803
+ description: string;
804
+ type: string;
805
+ items: {
806
+ type: string;
807
+ pattern: string;
808
+ };
809
+ minItems: number;
810
+ };
811
+ id: {
812
+ description: string;
813
+ $ref: string;
814
+ };
815
+ kind: {
816
+ type: string;
817
+ const: string;
818
+ };
819
+ max_size: {
820
+ description: string;
821
+ type: string;
822
+ format: string;
823
+ maximum: number;
824
+ minimum: number;
825
+ };
826
+ start: {
827
+ description: string;
828
+ $ref: string;
829
+ };
830
+ where: {
831
+ description: string;
832
+ $ref: string;
833
+ };
834
+ members?: undefined;
835
+ by?: undefined;
836
+ order?: undefined;
837
+ top?: undefined;
838
+ };
839
+ additionalProperties: boolean;
840
+ required: string[];
841
+ } | {
842
+ description: string;
843
+ type: string;
844
+ properties: {
845
+ by: {
846
+ description: string;
847
+ $ref: string;
848
+ };
849
+ from: {
850
+ description: string;
851
+ type: string;
852
+ items: {
853
+ type: string;
854
+ pattern: string;
855
+ };
856
+ minItems: number;
857
+ };
858
+ id: {
859
+ description: string;
860
+ $ref: string;
861
+ };
862
+ kind: {
863
+ type: string;
864
+ const: string;
865
+ };
866
+ order: {
867
+ description: string;
868
+ $ref: string;
869
+ };
870
+ start: {
871
+ description: string;
872
+ $ref: string;
873
+ };
874
+ top: {
875
+ description: string;
876
+ type: string;
877
+ format: string;
878
+ maximum: number;
879
+ minimum: number;
880
+ };
881
+ members?: undefined;
882
+ max_size?: undefined;
883
+ where?: undefined;
884
+ };
885
+ additionalProperties: boolean;
886
+ required: string[];
887
+ })[];
888
+ };
889
+ OnLiquidation: {
890
+ description: string;
891
+ oneOf: ({
892
+ type: string;
893
+ enum: string[];
894
+ description?: undefined;
895
+ const?: undefined;
896
+ } | {
897
+ description: string;
898
+ type: string;
899
+ const: string;
900
+ enum?: undefined;
901
+ })[];
902
+ };
903
+ OnMarginSkip: {
904
+ description: string;
905
+ oneOf: ({
906
+ type: string;
907
+ enum: string[];
908
+ description?: undefined;
909
+ const?: undefined;
910
+ } | {
911
+ description: string;
912
+ type: string;
913
+ const: string;
914
+ enum?: undefined;
915
+ })[];
916
+ };
917
+ OpName: {
918
+ description: string;
919
+ type: string;
920
+ enum: string[];
921
+ };
922
+ Polymarket: {
923
+ description: string;
924
+ oneOf: {
925
+ description: string;
926
+ type: string;
927
+ const: string;
928
+ }[];
929
+ };
930
+ PriceSpec: {
931
+ oneOf: ({
932
+ type: string;
933
+ properties: {
934
+ fixed: {
935
+ type: string;
936
+ pattern: string;
937
+ };
938
+ offset_bps?: undefined;
939
+ expr?: undefined;
940
+ };
941
+ additionalProperties: boolean;
942
+ required: string[];
943
+ } | {
944
+ type: string;
945
+ properties: {
946
+ offset_bps: {
947
+ type: string;
948
+ maximum: number;
949
+ };
950
+ fixed?: undefined;
951
+ expr?: undefined;
952
+ };
953
+ additionalProperties: boolean;
954
+ required: string[];
955
+ } | {
956
+ type: string;
957
+ properties: {
958
+ expr: {
959
+ $ref: string;
960
+ };
961
+ fixed?: undefined;
962
+ offset_bps?: undefined;
963
+ };
964
+ additionalProperties: boolean;
965
+ required: string[];
966
+ })[];
967
+ };
968
+ RankOrder: {
969
+ description: string;
970
+ type: string;
971
+ enum: string[];
972
+ };
973
+ ReduceBy: {
974
+ oneOf: ({
975
+ type: string;
976
+ properties: {
977
+ rusd: {
978
+ type: string;
979
+ pattern: string;
980
+ };
981
+ qty?: undefined;
982
+ expr?: undefined;
983
+ row?: undefined;
984
+ pct?: undefined;
985
+ };
986
+ additionalProperties: boolean;
987
+ required: string[];
988
+ } | {
989
+ type: string;
990
+ properties: {
991
+ qty: {
992
+ type: string;
993
+ pattern: string;
994
+ };
995
+ rusd?: undefined;
996
+ expr?: undefined;
997
+ row?: undefined;
998
+ pct?: undefined;
999
+ };
1000
+ additionalProperties: boolean;
1001
+ required: string[];
1002
+ } | {
1003
+ type: string;
1004
+ properties: {
1005
+ expr: {
1006
+ $ref: string;
1007
+ };
1008
+ rusd?: undefined;
1009
+ qty?: undefined;
1010
+ row?: undefined;
1011
+ pct?: undefined;
1012
+ };
1013
+ additionalProperties: boolean;
1014
+ required: string[];
1015
+ } | {
1016
+ type: string;
1017
+ properties: {
1018
+ row: {
1019
+ const: string;
1020
+ };
1021
+ rusd?: undefined;
1022
+ qty?: undefined;
1023
+ expr?: undefined;
1024
+ pct?: undefined;
1025
+ };
1026
+ additionalProperties: boolean;
1027
+ required: string[];
1028
+ } | {
1029
+ type: string;
1030
+ properties: {
1031
+ pct: {
1032
+ type: string;
1033
+ pattern: string;
1034
+ };
1035
+ rusd?: undefined;
1036
+ qty?: undefined;
1037
+ expr?: undefined;
1038
+ row?: undefined;
1039
+ };
1040
+ additionalProperties: boolean;
1041
+ required: string[];
1042
+ })[];
1043
+ };
1044
+ RememberAnchor: {
1045
+ description: string;
1046
+ type: string;
1047
+ enum: string[];
1048
+ };
1049
+ RestingOrder: {
1050
+ description: string;
1051
+ type: string;
1052
+ properties: {
1053
+ id: {
1054
+ description: string;
1055
+ $ref: string;
1056
+ };
1057
+ market: {
1058
+ description: string;
1059
+ type: string;
1060
+ pattern: string;
1061
+ };
1062
+ price: {
1063
+ description: string;
1064
+ $ref: string;
1065
+ };
1066
+ side: {
1067
+ description: string;
1068
+ $ref: string;
1069
+ };
1070
+ size: {
1071
+ description: string;
1072
+ $ref: string;
1073
+ };
1074
+ taker_ok: {
1075
+ description: string;
1076
+ enum: boolean[];
1077
+ };
1078
+ };
1079
+ additionalProperties: boolean;
1080
+ required: string[];
1081
+ };
1082
+ Row: {
1083
+ description: string;
1084
+ type: string;
1085
+ properties: {
1086
+ id: {
1087
+ description: string;
1088
+ $ref: string;
1089
+ };
1090
+ market: {
1091
+ description: string;
1092
+ type: string;
1093
+ pattern: string;
1094
+ };
1095
+ reads: {
1096
+ description: string;
1097
+ type: string;
1098
+ items: {
1099
+ $ref: string;
1100
+ };
1101
+ maxItems: number;
1102
+ minItems: number;
1103
+ };
1104
+ side: {
1105
+ description: string;
1106
+ $ref: string;
1107
+ };
1108
+ size: {
1109
+ description: string;
1110
+ $ref: string;
1111
+ };
1112
+ };
1113
+ additionalProperties: boolean;
1114
+ required: string[];
1115
+ };
1116
+ RowReads: {
1117
+ description: string;
1118
+ oneOf: {
1119
+ description: string;
1120
+ type: string;
1121
+ const: string;
1122
+ }[];
1123
+ };
1124
+ Rule: {
1125
+ description: string;
1126
+ type: string;
1127
+ properties: {
1128
+ do: {
1129
+ description: string;
1130
+ type: string;
1131
+ items: {
1132
+ $ref: string;
1133
+ };
1134
+ minItems: number;
1135
+ };
1136
+ go: {
1137
+ description: string;
1138
+ $ref: string;
1139
+ };
1140
+ if: {
1141
+ description: string;
1142
+ $ref: string;
1143
+ };
1144
+ when: {
1145
+ description: string;
1146
+ $ref: string;
1147
+ };
1148
+ };
1149
+ additionalProperties: boolean;
1150
+ required: string[];
1151
+ };
1152
+ SeriesName: {
1153
+ description: string;
1154
+ type: string;
1155
+ enum: string[];
1156
+ };
1157
+ SeriesPin: {
1158
+ description: string;
1159
+ oneOf: {
1160
+ description: string;
1161
+ type: string;
1162
+ properties: {
1163
+ kind: {
1164
+ type: string;
1165
+ const: string;
1166
+ };
1167
+ label: {
1168
+ description: string;
1169
+ $ref: string;
1170
+ };
1171
+ market: {
1172
+ description: string;
1173
+ type: string;
1174
+ maxLength: number;
1175
+ };
1176
+ outcome: {
1177
+ description: string;
1178
+ type: string;
1179
+ maxLength: number;
1180
+ };
1181
+ source: {
1182
+ description: string;
1183
+ $ref: string;
1184
+ };
1185
+ };
1186
+ additionalProperties: boolean;
1187
+ required: string[];
1188
+ }[];
1189
+ };
1190
+ SideSpec: {
1191
+ oneOf: ({
1192
+ enum: string[];
1193
+ type?: undefined;
1194
+ properties?: undefined;
1195
+ additionalProperties?: undefined;
1196
+ required?: undefined;
1197
+ } | {
1198
+ type: string;
1199
+ properties: {
1200
+ row: {
1201
+ const: string;
1202
+ };
1203
+ };
1204
+ additionalProperties: boolean;
1205
+ required: string[];
1206
+ enum?: undefined;
1207
+ })[];
1208
+ };
1209
+ Size: {
1210
+ oneOf: ({
1211
+ type: string;
1212
+ properties: {
1213
+ rusd: {
1214
+ type: string;
1215
+ pattern: string;
1216
+ };
1217
+ qty?: undefined;
1218
+ expr?: undefined;
1219
+ row?: undefined;
1220
+ };
1221
+ additionalProperties: boolean;
1222
+ required: string[];
1223
+ } | {
1224
+ type: string;
1225
+ properties: {
1226
+ qty: {
1227
+ type: string;
1228
+ pattern: string;
1229
+ };
1230
+ rusd?: undefined;
1231
+ expr?: undefined;
1232
+ row?: undefined;
1233
+ };
1234
+ additionalProperties: boolean;
1235
+ required: string[];
1236
+ } | {
1237
+ type: string;
1238
+ properties: {
1239
+ expr: {
1240
+ $ref: string;
1241
+ };
1242
+ rusd?: undefined;
1243
+ qty?: undefined;
1244
+ row?: undefined;
1245
+ };
1246
+ additionalProperties: boolean;
1247
+ required: string[];
1248
+ } | {
1249
+ type: string;
1250
+ properties: {
1251
+ row: {
1252
+ const: string;
1253
+ };
1254
+ rusd?: undefined;
1255
+ qty?: undefined;
1256
+ expr?: undefined;
1257
+ };
1258
+ additionalProperties: boolean;
1259
+ required: string[];
1260
+ })[];
1261
+ };
1262
+ State: {
1263
+ description: string;
1264
+ oneOf: ({
1265
+ description: string;
1266
+ type: string;
1267
+ properties: {
1268
+ in_list: {
1269
+ description: string;
1270
+ $ref: string;
1271
+ };
1272
+ kind: {
1273
+ type: string;
1274
+ const: string;
1275
+ };
1276
+ name: {
1277
+ description: string;
1278
+ type: string;
1279
+ maxLength: number;
1280
+ pattern: string;
1281
+ };
1282
+ on: {
1283
+ description: string;
1284
+ type: string;
1285
+ items: {
1286
+ $ref: string;
1287
+ };
1288
+ minItems: number;
1289
+ };
1290
+ rounds?: undefined;
1291
+ then?: undefined;
1292
+ outcome?: undefined;
1293
+ };
1294
+ additionalProperties: boolean;
1295
+ required: string[];
1296
+ } | {
1297
+ description: string;
1298
+ type: string;
1299
+ properties: {
1300
+ in_list: {
1301
+ description: string;
1302
+ $ref: string;
1303
+ };
1304
+ kind: {
1305
+ type: string;
1306
+ const: string;
1307
+ };
1308
+ name: {
1309
+ description: string;
1310
+ type: string;
1311
+ maxLength: number;
1312
+ pattern: string;
1313
+ };
1314
+ on: {
1315
+ description: string;
1316
+ type: string;
1317
+ items: {
1318
+ $ref: string;
1319
+ };
1320
+ minItems: number;
1321
+ };
1322
+ rounds: {
1323
+ description: string;
1324
+ type: string;
1325
+ format: string;
1326
+ maximum: number;
1327
+ minimum: number;
1328
+ };
1329
+ then: {
1330
+ description: string;
1331
+ $ref: string;
1332
+ };
1333
+ outcome?: undefined;
1334
+ };
1335
+ additionalProperties: boolean;
1336
+ required: string[];
1337
+ } | {
1338
+ description: string;
1339
+ type: string;
1340
+ properties: {
1341
+ in_list: {
1342
+ description: string;
1343
+ $ref: string;
1344
+ };
1345
+ kind: {
1346
+ type: string;
1347
+ const: string;
1348
+ };
1349
+ name: {
1350
+ description: string;
1351
+ type: string;
1352
+ maxLength: number;
1353
+ pattern: string;
1354
+ };
1355
+ on: {
1356
+ description: string;
1357
+ type: string;
1358
+ items: {
1359
+ $ref: string;
1360
+ };
1361
+ minItems: number;
1362
+ };
1363
+ outcome: {
1364
+ description: string;
1365
+ $ref: string;
1366
+ };
1367
+ rounds?: undefined;
1368
+ then?: undefined;
1369
+ };
1370
+ additionalProperties: boolean;
1371
+ required: string[];
1372
+ })[];
1373
+ };
1374
+ StopLevel: {
1375
+ description: string;
1376
+ type: string;
1377
+ properties: {
1378
+ at: {
1379
+ description: string;
1380
+ $ref: string;
1381
+ };
1382
+ id: {
1383
+ description: string;
1384
+ $ref: string;
1385
+ };
1386
+ size: {
1387
+ description: string;
1388
+ $ref: string;
1389
+ };
1390
+ };
1391
+ additionalProperties: boolean;
1392
+ required: string[];
1393
+ };
1394
+ Trigger: {
1395
+ description: string;
1396
+ oneOf: ({
1397
+ description: string;
1398
+ type: string;
1399
+ properties: {
1400
+ kind: {
1401
+ type: string;
1402
+ const: string;
1403
+ };
1404
+ band?: undefined;
1405
+ direction?: undefined;
1406
+ level?: undefined;
1407
+ value?: undefined;
1408
+ anchor?: undefined;
1409
+ period_secs?: undefined;
1410
+ cadence?: undefined;
1411
+ day?: undefined;
1412
+ time?: undefined;
1413
+ after_secs?: undefined;
1414
+ order?: undefined;
1415
+ levels?: undefined;
1416
+ market?: undefined;
1417
+ list?: undefined;
1418
+ action?: undefined;
1419
+ series?: undefined;
1420
+ };
1421
+ additionalProperties: boolean;
1422
+ required: string[];
1423
+ } | {
1424
+ description: string;
1425
+ type: string;
1426
+ properties: {
1427
+ band: {
1428
+ description: string;
1429
+ type: string;
1430
+ pattern: string;
1431
+ };
1432
+ direction: {
1433
+ description: string;
1434
+ $ref: string;
1435
+ };
1436
+ kind: {
1437
+ type: string;
1438
+ const: string;
1439
+ };
1440
+ level: {
1441
+ description: string;
1442
+ $ref: string;
1443
+ };
1444
+ value: {
1445
+ description: string;
1446
+ $ref: string;
1447
+ };
1448
+ anchor?: undefined;
1449
+ period_secs?: undefined;
1450
+ cadence?: undefined;
1451
+ day?: undefined;
1452
+ time?: undefined;
1453
+ after_secs?: undefined;
1454
+ order?: undefined;
1455
+ levels?: undefined;
1456
+ market?: undefined;
1457
+ list?: undefined;
1458
+ action?: undefined;
1459
+ series?: undefined;
1460
+ };
1461
+ additionalProperties: boolean;
1462
+ required: string[];
1463
+ } | {
1464
+ description: string;
1465
+ type: string;
1466
+ properties: {
1467
+ anchor: {
1468
+ description: string;
1469
+ type: string;
1470
+ format: string;
1471
+ maximum: number;
1472
+ minimum: number;
1473
+ };
1474
+ kind: {
1475
+ type: string;
1476
+ const: string;
1477
+ };
1478
+ period_secs: {
1479
+ description: string;
1480
+ type: string;
1481
+ format: string;
1482
+ maximum: number;
1483
+ minimum: number;
1484
+ };
1485
+ band?: undefined;
1486
+ direction?: undefined;
1487
+ level?: undefined;
1488
+ value?: undefined;
1489
+ cadence?: undefined;
1490
+ day?: undefined;
1491
+ time?: undefined;
1492
+ after_secs?: undefined;
1493
+ order?: undefined;
1494
+ levels?: undefined;
1495
+ market?: undefined;
1496
+ list?: undefined;
1497
+ action?: undefined;
1498
+ series?: undefined;
1499
+ };
1500
+ additionalProperties: boolean;
1501
+ required: string[];
1502
+ } | {
1503
+ description: string;
1504
+ type: string;
1505
+ properties: {
1506
+ cadence: {
1507
+ description: string;
1508
+ $ref: string;
1509
+ };
1510
+ day: {
1511
+ description: string;
1512
+ $ref: string;
1513
+ };
1514
+ kind: {
1515
+ type: string;
1516
+ const: string;
1517
+ };
1518
+ time: {
1519
+ description: string;
1520
+ type: string;
1521
+ };
1522
+ band?: undefined;
1523
+ direction?: undefined;
1524
+ level?: undefined;
1525
+ value?: undefined;
1526
+ anchor?: undefined;
1527
+ period_secs?: undefined;
1528
+ after_secs?: undefined;
1529
+ order?: undefined;
1530
+ levels?: undefined;
1531
+ market?: undefined;
1532
+ list?: undefined;
1533
+ action?: undefined;
1534
+ series?: undefined;
1535
+ };
1536
+ additionalProperties: boolean;
1537
+ required: string[];
1538
+ } | {
1539
+ description: string;
1540
+ type: string;
1541
+ properties: {
1542
+ after_secs: {
1543
+ description: string;
1544
+ type: string;
1545
+ format: string;
1546
+ maximum: number;
1547
+ minimum: number;
1548
+ };
1549
+ kind: {
1550
+ type: string;
1551
+ const: string;
1552
+ };
1553
+ band?: undefined;
1554
+ direction?: undefined;
1555
+ level?: undefined;
1556
+ value?: undefined;
1557
+ anchor?: undefined;
1558
+ period_secs?: undefined;
1559
+ cadence?: undefined;
1560
+ day?: undefined;
1561
+ time?: undefined;
1562
+ order?: undefined;
1563
+ levels?: undefined;
1564
+ market?: undefined;
1565
+ list?: undefined;
1566
+ action?: undefined;
1567
+ series?: undefined;
1568
+ };
1569
+ additionalProperties: boolean;
1570
+ required: string[];
1571
+ } | {
1572
+ description: string;
1573
+ type: string;
1574
+ properties: {
1575
+ kind: {
1576
+ type: string;
1577
+ const: string;
1578
+ };
1579
+ order: {
1580
+ description: string;
1581
+ $ref: string;
1582
+ };
1583
+ band?: undefined;
1584
+ direction?: undefined;
1585
+ level?: undefined;
1586
+ value?: undefined;
1587
+ anchor?: undefined;
1588
+ period_secs?: undefined;
1589
+ cadence?: undefined;
1590
+ day?: undefined;
1591
+ time?: undefined;
1592
+ after_secs?: undefined;
1593
+ levels?: undefined;
1594
+ market?: undefined;
1595
+ list?: undefined;
1596
+ action?: undefined;
1597
+ series?: undefined;
1598
+ };
1599
+ additionalProperties: boolean;
1600
+ required: string[];
1601
+ } | {
1602
+ description: string;
1603
+ type: string;
1604
+ properties: {
1605
+ kind: {
1606
+ type: string;
1607
+ const: string;
1608
+ };
1609
+ levels: {
1610
+ description: string;
1611
+ type: string;
1612
+ items: {
1613
+ $ref: string;
1614
+ };
1615
+ maxItems: number;
1616
+ minItems: number;
1617
+ };
1618
+ market: {
1619
+ description: string;
1620
+ type: string;
1621
+ pattern: string;
1622
+ };
1623
+ band?: undefined;
1624
+ direction?: undefined;
1625
+ level?: undefined;
1626
+ value?: undefined;
1627
+ anchor?: undefined;
1628
+ period_secs?: undefined;
1629
+ cadence?: undefined;
1630
+ day?: undefined;
1631
+ time?: undefined;
1632
+ after_secs?: undefined;
1633
+ order?: undefined;
1634
+ list?: undefined;
1635
+ action?: undefined;
1636
+ series?: undefined;
1637
+ };
1638
+ additionalProperties: boolean;
1639
+ required: string[];
1640
+ } | {
1641
+ description: string;
1642
+ type: string;
1643
+ properties: {
1644
+ kind: {
1645
+ type: string;
1646
+ const: string;
1647
+ };
1648
+ list: {
1649
+ description: string;
1650
+ $ref: string;
1651
+ };
1652
+ band?: undefined;
1653
+ direction?: undefined;
1654
+ level?: undefined;
1655
+ value?: undefined;
1656
+ anchor?: undefined;
1657
+ period_secs?: undefined;
1658
+ cadence?: undefined;
1659
+ day?: undefined;
1660
+ time?: undefined;
1661
+ after_secs?: undefined;
1662
+ order?: undefined;
1663
+ levels?: undefined;
1664
+ market?: undefined;
1665
+ action?: undefined;
1666
+ series?: undefined;
1667
+ };
1668
+ additionalProperties: boolean;
1669
+ required: string[];
1670
+ } | {
1671
+ description: string;
1672
+ type: string;
1673
+ properties: {
1674
+ action: {
1675
+ description: string;
1676
+ $ref: string;
1677
+ };
1678
+ kind: {
1679
+ type: string;
1680
+ const: string;
1681
+ };
1682
+ band?: undefined;
1683
+ direction?: undefined;
1684
+ level?: undefined;
1685
+ value?: undefined;
1686
+ anchor?: undefined;
1687
+ period_secs?: undefined;
1688
+ cadence?: undefined;
1689
+ day?: undefined;
1690
+ time?: undefined;
1691
+ after_secs?: undefined;
1692
+ order?: undefined;
1693
+ levels?: undefined;
1694
+ market?: undefined;
1695
+ list?: undefined;
1696
+ series?: undefined;
1697
+ };
1698
+ additionalProperties: boolean;
1699
+ required: string[];
1700
+ } | {
1701
+ description: string;
1702
+ type: string;
1703
+ properties: {
1704
+ kind: {
1705
+ type: string;
1706
+ const: string;
1707
+ };
1708
+ series: {
1709
+ description: string;
1710
+ $ref: string;
1711
+ };
1712
+ band?: undefined;
1713
+ direction?: undefined;
1714
+ level?: undefined;
1715
+ value?: undefined;
1716
+ anchor?: undefined;
1717
+ period_secs?: undefined;
1718
+ cadence?: undefined;
1719
+ day?: undefined;
1720
+ time?: undefined;
1721
+ after_secs?: undefined;
1722
+ order?: undefined;
1723
+ levels?: undefined;
1724
+ market?: undefined;
1725
+ list?: undefined;
1726
+ action?: undefined;
1727
+ };
1728
+ additionalProperties: boolean;
1729
+ required: string[];
1730
+ })[];
1731
+ };
1732
+ Weekday: {
1733
+ description: string;
1734
+ type: string;
1735
+ enum: string[];
1736
+ };
1737
+ WeightRow: {
1738
+ description: string;
1739
+ type: string;
1740
+ properties: {
1741
+ id: {
1742
+ description: string;
1743
+ $ref: string;
1744
+ };
1745
+ if: {
1746
+ description: string;
1747
+ $ref: string;
1748
+ };
1749
+ weight: {
1750
+ description: string;
1751
+ type: string;
1752
+ pattern: string;
1753
+ };
1754
+ };
1755
+ additionalProperties: boolean;
1756
+ required: string[];
1757
+ };
1758
+ };
1759
+ };
1760
+ export declare const acceptedKinds: {
1761
+ devnet1: {
1762
+ actions: string[];
1763
+ expr_functions: never[];
1764
+ expr_inputs: string[];
1765
+ expr_nodes: string[];
1766
+ expr_ops: string[];
1767
+ expr_series: string[];
1768
+ lists: string[];
1769
+ on_liquidation: string[];
1770
+ on_margin_skip: string[];
1771
+ refused_shapes: {
1772
+ feature: string;
1773
+ rule: string;
1774
+ shape: string;
1775
+ }[];
1776
+ series_pins: string[];
1777
+ states: string[];
1778
+ stop_levels: string[];
1779
+ triggers: string[];
1780
+ };
1781
+ mainnet: {
1782
+ actions: string[];
1783
+ expr_functions: never[];
1784
+ expr_inputs: string[];
1785
+ expr_nodes: string[];
1786
+ expr_ops: string[];
1787
+ expr_series: string[];
1788
+ lists: string[];
1789
+ on_liquidation: string[];
1790
+ on_margin_skip: string[];
1791
+ refused_shapes: {
1792
+ feature: string;
1793
+ rule: string;
1794
+ shape: string;
1795
+ }[];
1796
+ series_pins: string[];
1797
+ states: string[];
1798
+ stop_levels: string[];
1799
+ triggers: string[];
1800
+ };
1801
+ };
1802
+ export declare const schemaSource: {
1803
+ repo: string;
1804
+ commit: string;
1805
+ root: string;
1806
+ sha256: {
1807
+ "schema/workflow-v3.schema.json": string;
1808
+ "schema/workflow-v3.accepted-kinds.json": string;
1809
+ };
1810
+ };
1811
+ export { sentences } from './sentences';
1812
+ export type { Mode, SentenceKey, Translations } from './sentences';