@gaberoo/kalshitools 1.0.3 → 1.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.
- package/README.md +249 -12
- package/dist/commands/markets/scan.d.ts +18 -0
- package/dist/commands/markets/scan.js +237 -0
- package/dist/commands/portfolio/analytics.d.ts +12 -0
- package/dist/commands/portfolio/analytics.js +192 -0
- package/dist/commands/portfolio/history.d.ts +14 -0
- package/dist/commands/portfolio/history.js +245 -0
- package/dist/commands/portfolio/risk.d.ts +11 -0
- package/dist/commands/portfolio/risk.js +206 -0
- package/dist/lib/analytics.d.ts +64 -0
- package/dist/lib/analytics.js +236 -0
- package/dist/lib/risk.d.ts +51 -0
- package/dist/lib/risk.js +153 -0
- package/dist/lib/scanner.d.ts +58 -0
- package/dist/lib/scanner.js +160 -0
- package/dist/lib/validation.js +4 -3
- package/docs/TRADING_STRATEGIES.md +538 -0
- package/oclif.manifest.json +299 -1
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -221,6 +221,117 @@
|
|
|
221
221
|
"orderbook.js"
|
|
222
222
|
]
|
|
223
223
|
},
|
|
224
|
+
"markets:scan": {
|
|
225
|
+
"aliases": [],
|
|
226
|
+
"args": {},
|
|
227
|
+
"description": "Scan markets for trading opportunities based on liquidity and spreads",
|
|
228
|
+
"examples": [
|
|
229
|
+
"<%= config.bin %> <%= command.id %>",
|
|
230
|
+
"<%= config.bin %> <%= command.id %> --min-liquidity 200 --min-spread 0.05",
|
|
231
|
+
"<%= config.bin %> <%= command.id %> --event-ticker EVENT-2024",
|
|
232
|
+
"<%= config.bin %> <%= command.id %> --sort-by liquidity --limit 20",
|
|
233
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
234
|
+
],
|
|
235
|
+
"flags": {
|
|
236
|
+
"json": {
|
|
237
|
+
"description": "Output in JSON format",
|
|
238
|
+
"name": "json",
|
|
239
|
+
"allowNo": false,
|
|
240
|
+
"type": "boolean"
|
|
241
|
+
},
|
|
242
|
+
"depth": {
|
|
243
|
+
"description": "Orderbook depth to fetch for analysis",
|
|
244
|
+
"name": "depth",
|
|
245
|
+
"default": 5,
|
|
246
|
+
"hasDynamicHelp": false,
|
|
247
|
+
"multiple": false,
|
|
248
|
+
"type": "option"
|
|
249
|
+
},
|
|
250
|
+
"event-ticker": {
|
|
251
|
+
"description": "Filter to specific event",
|
|
252
|
+
"name": "event-ticker",
|
|
253
|
+
"hasDynamicHelp": false,
|
|
254
|
+
"multiple": false,
|
|
255
|
+
"type": "option"
|
|
256
|
+
},
|
|
257
|
+
"limit": {
|
|
258
|
+
"description": "Maximum markets to scan",
|
|
259
|
+
"name": "limit",
|
|
260
|
+
"default": 50,
|
|
261
|
+
"hasDynamicHelp": false,
|
|
262
|
+
"multiple": false,
|
|
263
|
+
"type": "option"
|
|
264
|
+
},
|
|
265
|
+
"max-spread": {
|
|
266
|
+
"description": "Maximum spread in cents (e.g., 0.30 = 30 cents)",
|
|
267
|
+
"name": "max-spread",
|
|
268
|
+
"default": "0.30",
|
|
269
|
+
"hasDynamicHelp": false,
|
|
270
|
+
"multiple": false,
|
|
271
|
+
"type": "option"
|
|
272
|
+
},
|
|
273
|
+
"min-liquidity": {
|
|
274
|
+
"description": "Minimum orderbook depth in dollars",
|
|
275
|
+
"name": "min-liquidity",
|
|
276
|
+
"default": "100",
|
|
277
|
+
"hasDynamicHelp": false,
|
|
278
|
+
"multiple": false,
|
|
279
|
+
"type": "option"
|
|
280
|
+
},
|
|
281
|
+
"min-spread": {
|
|
282
|
+
"description": "Minimum spread in cents (e.g., 0.03 = 3 cents)",
|
|
283
|
+
"name": "min-spread",
|
|
284
|
+
"default": "0.03",
|
|
285
|
+
"hasDynamicHelp": false,
|
|
286
|
+
"multiple": false,
|
|
287
|
+
"type": "option"
|
|
288
|
+
},
|
|
289
|
+
"min-volume": {
|
|
290
|
+
"description": "Minimum 24h volume in dollars",
|
|
291
|
+
"name": "min-volume",
|
|
292
|
+
"default": "500",
|
|
293
|
+
"hasDynamicHelp": false,
|
|
294
|
+
"multiple": false,
|
|
295
|
+
"type": "option"
|
|
296
|
+
},
|
|
297
|
+
"series-ticker": {
|
|
298
|
+
"description": "Filter to specific series",
|
|
299
|
+
"name": "series-ticker",
|
|
300
|
+
"hasDynamicHelp": false,
|
|
301
|
+
"multiple": false,
|
|
302
|
+
"type": "option"
|
|
303
|
+
},
|
|
304
|
+
"sort-by": {
|
|
305
|
+
"description": "Ranking criteria",
|
|
306
|
+
"name": "sort-by",
|
|
307
|
+
"default": "score",
|
|
308
|
+
"hasDynamicHelp": false,
|
|
309
|
+
"multiple": false,
|
|
310
|
+
"options": [
|
|
311
|
+
"liquidity",
|
|
312
|
+
"score",
|
|
313
|
+
"spread",
|
|
314
|
+
"volume"
|
|
315
|
+
],
|
|
316
|
+
"type": "option"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"hasDynamicHelp": false,
|
|
320
|
+
"hiddenAliases": [],
|
|
321
|
+
"id": "markets:scan",
|
|
322
|
+
"pluginAlias": "@gaberoo/kalshitools",
|
|
323
|
+
"pluginName": "@gaberoo/kalshitools",
|
|
324
|
+
"pluginType": "core",
|
|
325
|
+
"strict": true,
|
|
326
|
+
"enableJsonFlag": false,
|
|
327
|
+
"isESM": true,
|
|
328
|
+
"relativePath": [
|
|
329
|
+
"dist",
|
|
330
|
+
"commands",
|
|
331
|
+
"markets",
|
|
332
|
+
"scan.js"
|
|
333
|
+
]
|
|
334
|
+
},
|
|
224
335
|
"markets:show": {
|
|
225
336
|
"aliases": [],
|
|
226
337
|
"args": {
|
|
@@ -479,6 +590,61 @@
|
|
|
479
590
|
"list.js"
|
|
480
591
|
]
|
|
481
592
|
},
|
|
593
|
+
"portfolio:analytics": {
|
|
594
|
+
"aliases": [],
|
|
595
|
+
"args": {},
|
|
596
|
+
"description": "Comprehensive portfolio performance analytics",
|
|
597
|
+
"examples": [
|
|
598
|
+
"<%= config.bin %> <%= command.id %>",
|
|
599
|
+
"<%= config.bin %> <%= command.id %> --period 7",
|
|
600
|
+
"<%= config.bin %> <%= command.id %> --min-ts 2026-01-01T00:00:00Z",
|
|
601
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
602
|
+
],
|
|
603
|
+
"flags": {
|
|
604
|
+
"json": {
|
|
605
|
+
"description": "Output in JSON format",
|
|
606
|
+
"name": "json",
|
|
607
|
+
"allowNo": false,
|
|
608
|
+
"type": "boolean"
|
|
609
|
+
},
|
|
610
|
+
"max-ts": {
|
|
611
|
+
"description": "End date for analysis (ISO-8601 format)",
|
|
612
|
+
"name": "max-ts",
|
|
613
|
+
"hasDynamicHelp": false,
|
|
614
|
+
"multiple": false,
|
|
615
|
+
"type": "option"
|
|
616
|
+
},
|
|
617
|
+
"min-ts": {
|
|
618
|
+
"description": "Start date for analysis (ISO-8601 format)",
|
|
619
|
+
"name": "min-ts",
|
|
620
|
+
"hasDynamicHelp": false,
|
|
621
|
+
"multiple": false,
|
|
622
|
+
"type": "option"
|
|
623
|
+
},
|
|
624
|
+
"period": {
|
|
625
|
+
"description": "Analysis period in days (overridden by min-ts/max-ts)",
|
|
626
|
+
"name": "period",
|
|
627
|
+
"hasDynamicHelp": false,
|
|
628
|
+
"multiple": false,
|
|
629
|
+
"type": "option"
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
"hasDynamicHelp": false,
|
|
633
|
+
"hiddenAliases": [],
|
|
634
|
+
"id": "portfolio:analytics",
|
|
635
|
+
"pluginAlias": "@gaberoo/kalshitools",
|
|
636
|
+
"pluginName": "@gaberoo/kalshitools",
|
|
637
|
+
"pluginType": "core",
|
|
638
|
+
"strict": true,
|
|
639
|
+
"enableJsonFlag": false,
|
|
640
|
+
"isESM": true,
|
|
641
|
+
"relativePath": [
|
|
642
|
+
"dist",
|
|
643
|
+
"commands",
|
|
644
|
+
"portfolio",
|
|
645
|
+
"analytics.js"
|
|
646
|
+
]
|
|
647
|
+
},
|
|
482
648
|
"portfolio:balance": {
|
|
483
649
|
"aliases": [],
|
|
484
650
|
"args": {},
|
|
@@ -560,6 +726,83 @@
|
|
|
560
726
|
"fills.js"
|
|
561
727
|
]
|
|
562
728
|
},
|
|
729
|
+
"portfolio:history": {
|
|
730
|
+
"aliases": [],
|
|
731
|
+
"args": {},
|
|
732
|
+
"description": "Historical performance analysis with time-series data",
|
|
733
|
+
"examples": [
|
|
734
|
+
"<%= config.bin %> <%= command.id %>",
|
|
735
|
+
"<%= config.bin %> <%= command.id %> --ticker MARKET-A",
|
|
736
|
+
"<%= config.bin %> <%= command.id %> --group-by week",
|
|
737
|
+
"<%= config.bin %> <%= command.id %> --min-ts 2026-01-01T00:00:00Z --max-ts 2026-02-01T00:00:00Z",
|
|
738
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
739
|
+
],
|
|
740
|
+
"flags": {
|
|
741
|
+
"json": {
|
|
742
|
+
"description": "Output in JSON format",
|
|
743
|
+
"name": "json",
|
|
744
|
+
"allowNo": false,
|
|
745
|
+
"type": "boolean"
|
|
746
|
+
},
|
|
747
|
+
"group-by": {
|
|
748
|
+
"description": "Time aggregation level",
|
|
749
|
+
"name": "group-by",
|
|
750
|
+
"default": "day",
|
|
751
|
+
"hasDynamicHelp": false,
|
|
752
|
+
"multiple": false,
|
|
753
|
+
"options": [
|
|
754
|
+
"day",
|
|
755
|
+
"week",
|
|
756
|
+
"month"
|
|
757
|
+
],
|
|
758
|
+
"type": "option"
|
|
759
|
+
},
|
|
760
|
+
"limit": {
|
|
761
|
+
"description": "Maximum fills to fetch (handles pagination)",
|
|
762
|
+
"name": "limit",
|
|
763
|
+
"default": 500,
|
|
764
|
+
"hasDynamicHelp": false,
|
|
765
|
+
"multiple": false,
|
|
766
|
+
"type": "option"
|
|
767
|
+
},
|
|
768
|
+
"max-ts": {
|
|
769
|
+
"description": "End date (ISO-8601 format)",
|
|
770
|
+
"name": "max-ts",
|
|
771
|
+
"hasDynamicHelp": false,
|
|
772
|
+
"multiple": false,
|
|
773
|
+
"type": "option"
|
|
774
|
+
},
|
|
775
|
+
"min-ts": {
|
|
776
|
+
"description": "Start date (ISO-8601 format)",
|
|
777
|
+
"name": "min-ts",
|
|
778
|
+
"hasDynamicHelp": false,
|
|
779
|
+
"multiple": false,
|
|
780
|
+
"type": "option"
|
|
781
|
+
},
|
|
782
|
+
"ticker": {
|
|
783
|
+
"description": "Filter by specific market ticker",
|
|
784
|
+
"name": "ticker",
|
|
785
|
+
"hasDynamicHelp": false,
|
|
786
|
+
"multiple": false,
|
|
787
|
+
"type": "option"
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"hasDynamicHelp": false,
|
|
791
|
+
"hiddenAliases": [],
|
|
792
|
+
"id": "portfolio:history",
|
|
793
|
+
"pluginAlias": "@gaberoo/kalshitools",
|
|
794
|
+
"pluginName": "@gaberoo/kalshitools",
|
|
795
|
+
"pluginType": "core",
|
|
796
|
+
"strict": true,
|
|
797
|
+
"enableJsonFlag": false,
|
|
798
|
+
"isESM": true,
|
|
799
|
+
"relativePath": [
|
|
800
|
+
"dist",
|
|
801
|
+
"commands",
|
|
802
|
+
"portfolio",
|
|
803
|
+
"history.js"
|
|
804
|
+
]
|
|
805
|
+
},
|
|
563
806
|
"portfolio:positions": {
|
|
564
807
|
"aliases": [],
|
|
565
808
|
"args": {},
|
|
@@ -605,7 +848,62 @@
|
|
|
605
848
|
"portfolio",
|
|
606
849
|
"positions.js"
|
|
607
850
|
]
|
|
851
|
+
},
|
|
852
|
+
"portfolio:risk": {
|
|
853
|
+
"aliases": [],
|
|
854
|
+
"args": {},
|
|
855
|
+
"description": "Real-time portfolio risk analysis and warnings",
|
|
856
|
+
"examples": [
|
|
857
|
+
"<%= config.bin %> <%= command.id %>",
|
|
858
|
+
"<%= config.bin %> <%= command.id %> --threshold 15",
|
|
859
|
+
"<%= config.bin %> <%= command.id %> --group-by event",
|
|
860
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
861
|
+
],
|
|
862
|
+
"flags": {
|
|
863
|
+
"json": {
|
|
864
|
+
"description": "Output in JSON format",
|
|
865
|
+
"name": "json",
|
|
866
|
+
"allowNo": false,
|
|
867
|
+
"type": "boolean"
|
|
868
|
+
},
|
|
869
|
+
"group-by": {
|
|
870
|
+
"description": "Grouping for concentration analysis",
|
|
871
|
+
"name": "group-by",
|
|
872
|
+
"default": "ticker",
|
|
873
|
+
"hasDynamicHelp": false,
|
|
874
|
+
"multiple": false,
|
|
875
|
+
"options": [
|
|
876
|
+
"event",
|
|
877
|
+
"series",
|
|
878
|
+
"ticker"
|
|
879
|
+
],
|
|
880
|
+
"type": "option"
|
|
881
|
+
},
|
|
882
|
+
"threshold": {
|
|
883
|
+
"description": "Alert threshold for position concentration (%)",
|
|
884
|
+
"name": "threshold",
|
|
885
|
+
"default": 20,
|
|
886
|
+
"hasDynamicHelp": false,
|
|
887
|
+
"multiple": false,
|
|
888
|
+
"type": "option"
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"hasDynamicHelp": false,
|
|
892
|
+
"hiddenAliases": [],
|
|
893
|
+
"id": "portfolio:risk",
|
|
894
|
+
"pluginAlias": "@gaberoo/kalshitools",
|
|
895
|
+
"pluginName": "@gaberoo/kalshitools",
|
|
896
|
+
"pluginType": "core",
|
|
897
|
+
"strict": true,
|
|
898
|
+
"enableJsonFlag": false,
|
|
899
|
+
"isESM": true,
|
|
900
|
+
"relativePath": [
|
|
901
|
+
"dist",
|
|
902
|
+
"commands",
|
|
903
|
+
"portfolio",
|
|
904
|
+
"risk.js"
|
|
905
|
+
]
|
|
608
906
|
}
|
|
609
907
|
},
|
|
610
|
-
"version": "1.
|
|
908
|
+
"version": "1.1.1"
|
|
611
909
|
}
|