@gaberoo/kalshitools 1.0.3 → 1.1.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.
- 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/docs/TRADING_STRATEGIES.md +538 -0
- package/oclif.manifest.json +486 -188
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -90,175 +90,6 @@
|
|
|
90
90
|
"show.js"
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
|
-
"markets:list": {
|
|
94
|
-
"aliases": [],
|
|
95
|
-
"args": {},
|
|
96
|
-
"description": "List prediction markets",
|
|
97
|
-
"examples": [
|
|
98
|
-
"<%= config.bin %> <%= command.id %>",
|
|
99
|
-
"<%= config.bin %> <%= command.id %> --status active --limit 10",
|
|
100
|
-
"<%= config.bin %> <%= command.id %> --event-ticker ELECTION-2024",
|
|
101
|
-
"<%= config.bin %> <%= command.id %> --tickers \"TICKER1,TICKER2,TICKER3\"",
|
|
102
|
-
"<%= config.bin %> <%= command.id %> --with-nested",
|
|
103
|
-
"<%= config.bin %> <%= command.id %> --json"
|
|
104
|
-
],
|
|
105
|
-
"flags": {
|
|
106
|
-
"json": {
|
|
107
|
-
"description": "Output in JSON format",
|
|
108
|
-
"name": "json",
|
|
109
|
-
"allowNo": false,
|
|
110
|
-
"type": "boolean"
|
|
111
|
-
},
|
|
112
|
-
"event-ticker": {
|
|
113
|
-
"description": "Filter by event ticker",
|
|
114
|
-
"name": "event-ticker",
|
|
115
|
-
"hasDynamicHelp": false,
|
|
116
|
-
"multiple": false,
|
|
117
|
-
"type": "option"
|
|
118
|
-
},
|
|
119
|
-
"limit": {
|
|
120
|
-
"description": "Maximum number of markets to return",
|
|
121
|
-
"name": "limit",
|
|
122
|
-
"default": 20,
|
|
123
|
-
"hasDynamicHelp": false,
|
|
124
|
-
"multiple": false,
|
|
125
|
-
"type": "option"
|
|
126
|
-
},
|
|
127
|
-
"series-ticker": {
|
|
128
|
-
"description": "Filter by series ticker",
|
|
129
|
-
"name": "series-ticker",
|
|
130
|
-
"hasDynamicHelp": false,
|
|
131
|
-
"multiple": false,
|
|
132
|
-
"type": "option"
|
|
133
|
-
},
|
|
134
|
-
"status": {
|
|
135
|
-
"description": "Filter by market status",
|
|
136
|
-
"name": "status",
|
|
137
|
-
"hasDynamicHelp": false,
|
|
138
|
-
"multiple": false,
|
|
139
|
-
"options": [
|
|
140
|
-
"active",
|
|
141
|
-
"closed",
|
|
142
|
-
"settled",
|
|
143
|
-
"finalized"
|
|
144
|
-
],
|
|
145
|
-
"type": "option"
|
|
146
|
-
},
|
|
147
|
-
"tickers": {
|
|
148
|
-
"description": "Comma-separated list of tickers to fetch",
|
|
149
|
-
"name": "tickers",
|
|
150
|
-
"hasDynamicHelp": false,
|
|
151
|
-
"multiple": false,
|
|
152
|
-
"type": "option"
|
|
153
|
-
},
|
|
154
|
-
"with-nested": {
|
|
155
|
-
"description": "Include nested markets",
|
|
156
|
-
"name": "with-nested",
|
|
157
|
-
"allowNo": false,
|
|
158
|
-
"type": "boolean"
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
"hasDynamicHelp": false,
|
|
162
|
-
"hiddenAliases": [],
|
|
163
|
-
"id": "markets:list",
|
|
164
|
-
"pluginAlias": "@gaberoo/kalshitools",
|
|
165
|
-
"pluginName": "@gaberoo/kalshitools",
|
|
166
|
-
"pluginType": "core",
|
|
167
|
-
"strict": true,
|
|
168
|
-
"enableJsonFlag": false,
|
|
169
|
-
"isESM": true,
|
|
170
|
-
"relativePath": [
|
|
171
|
-
"dist",
|
|
172
|
-
"commands",
|
|
173
|
-
"markets",
|
|
174
|
-
"list.js"
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
"markets:orderbook": {
|
|
178
|
-
"aliases": [],
|
|
179
|
-
"args": {
|
|
180
|
-
"ticker": {
|
|
181
|
-
"description": "Market ticker symbol",
|
|
182
|
-
"name": "ticker",
|
|
183
|
-
"required": true
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
"description": "Show order book for a market",
|
|
187
|
-
"examples": [
|
|
188
|
-
"<%= config.bin %> <%= command.id %> TICKER",
|
|
189
|
-
"<%= config.bin %> <%= command.id %> TICKER --depth 5",
|
|
190
|
-
"<%= config.bin %> <%= command.id %> TICKER --json"
|
|
191
|
-
],
|
|
192
|
-
"flags": {
|
|
193
|
-
"json": {
|
|
194
|
-
"description": "Output in JSON format",
|
|
195
|
-
"name": "json",
|
|
196
|
-
"allowNo": false,
|
|
197
|
-
"type": "boolean"
|
|
198
|
-
},
|
|
199
|
-
"depth": {
|
|
200
|
-
"description": "Number of price levels to show",
|
|
201
|
-
"name": "depth",
|
|
202
|
-
"default": 10,
|
|
203
|
-
"hasDynamicHelp": false,
|
|
204
|
-
"multiple": false,
|
|
205
|
-
"type": "option"
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
"hasDynamicHelp": false,
|
|
209
|
-
"hiddenAliases": [],
|
|
210
|
-
"id": "markets:orderbook",
|
|
211
|
-
"pluginAlias": "@gaberoo/kalshitools",
|
|
212
|
-
"pluginName": "@gaberoo/kalshitools",
|
|
213
|
-
"pluginType": "core",
|
|
214
|
-
"strict": true,
|
|
215
|
-
"enableJsonFlag": false,
|
|
216
|
-
"isESM": true,
|
|
217
|
-
"relativePath": [
|
|
218
|
-
"dist",
|
|
219
|
-
"commands",
|
|
220
|
-
"markets",
|
|
221
|
-
"orderbook.js"
|
|
222
|
-
]
|
|
223
|
-
},
|
|
224
|
-
"markets:show": {
|
|
225
|
-
"aliases": [],
|
|
226
|
-
"args": {
|
|
227
|
-
"ticker": {
|
|
228
|
-
"description": "Market ticker symbol",
|
|
229
|
-
"name": "ticker",
|
|
230
|
-
"required": true
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
"description": "Show market details",
|
|
234
|
-
"examples": [
|
|
235
|
-
"<%= config.bin %> <%= command.id %> TICKER",
|
|
236
|
-
"<%= config.bin %> <%= command.id %> TICKER --json"
|
|
237
|
-
],
|
|
238
|
-
"flags": {
|
|
239
|
-
"json": {
|
|
240
|
-
"description": "Output in JSON format",
|
|
241
|
-
"name": "json",
|
|
242
|
-
"allowNo": false,
|
|
243
|
-
"type": "boolean"
|
|
244
|
-
}
|
|
245
|
-
},
|
|
246
|
-
"hasDynamicHelp": false,
|
|
247
|
-
"hiddenAliases": [],
|
|
248
|
-
"id": "markets:show",
|
|
249
|
-
"pluginAlias": "@gaberoo/kalshitools",
|
|
250
|
-
"pluginName": "@gaberoo/kalshitools",
|
|
251
|
-
"pluginType": "core",
|
|
252
|
-
"strict": true,
|
|
253
|
-
"enableJsonFlag": false,
|
|
254
|
-
"isESM": true,
|
|
255
|
-
"relativePath": [
|
|
256
|
-
"dist",
|
|
257
|
-
"commands",
|
|
258
|
-
"markets",
|
|
259
|
-
"show.js"
|
|
260
|
-
]
|
|
261
|
-
},
|
|
262
93
|
"orders:cancel": {
|
|
263
94
|
"aliases": [],
|
|
264
95
|
"args": {
|
|
@@ -479,12 +310,16 @@
|
|
|
479
310
|
"list.js"
|
|
480
311
|
]
|
|
481
312
|
},
|
|
482
|
-
"
|
|
313
|
+
"markets:list": {
|
|
483
314
|
"aliases": [],
|
|
484
315
|
"args": {},
|
|
485
|
-
"description": "
|
|
316
|
+
"description": "List prediction markets",
|
|
486
317
|
"examples": [
|
|
487
318
|
"<%= config.bin %> <%= command.id %>",
|
|
319
|
+
"<%= config.bin %> <%= command.id %> --status active --limit 10",
|
|
320
|
+
"<%= config.bin %> <%= command.id %> --event-ticker ELECTION-2024",
|
|
321
|
+
"<%= config.bin %> <%= command.id %> --tickers \"TICKER1,TICKER2,TICKER3\"",
|
|
322
|
+
"<%= config.bin %> <%= command.id %> --with-nested",
|
|
488
323
|
"<%= config.bin %> <%= command.id %> --json"
|
|
489
324
|
],
|
|
490
325
|
"flags": {
|
|
@@ -493,11 +328,59 @@
|
|
|
493
328
|
"name": "json",
|
|
494
329
|
"allowNo": false,
|
|
495
330
|
"type": "boolean"
|
|
331
|
+
},
|
|
332
|
+
"event-ticker": {
|
|
333
|
+
"description": "Filter by event ticker",
|
|
334
|
+
"name": "event-ticker",
|
|
335
|
+
"hasDynamicHelp": false,
|
|
336
|
+
"multiple": false,
|
|
337
|
+
"type": "option"
|
|
338
|
+
},
|
|
339
|
+
"limit": {
|
|
340
|
+
"description": "Maximum number of markets to return",
|
|
341
|
+
"name": "limit",
|
|
342
|
+
"default": 20,
|
|
343
|
+
"hasDynamicHelp": false,
|
|
344
|
+
"multiple": false,
|
|
345
|
+
"type": "option"
|
|
346
|
+
},
|
|
347
|
+
"series-ticker": {
|
|
348
|
+
"description": "Filter by series ticker",
|
|
349
|
+
"name": "series-ticker",
|
|
350
|
+
"hasDynamicHelp": false,
|
|
351
|
+
"multiple": false,
|
|
352
|
+
"type": "option"
|
|
353
|
+
},
|
|
354
|
+
"status": {
|
|
355
|
+
"description": "Filter by market status",
|
|
356
|
+
"name": "status",
|
|
357
|
+
"hasDynamicHelp": false,
|
|
358
|
+
"multiple": false,
|
|
359
|
+
"options": [
|
|
360
|
+
"active",
|
|
361
|
+
"closed",
|
|
362
|
+
"settled",
|
|
363
|
+
"finalized"
|
|
364
|
+
],
|
|
365
|
+
"type": "option"
|
|
366
|
+
},
|
|
367
|
+
"tickers": {
|
|
368
|
+
"description": "Comma-separated list of tickers to fetch",
|
|
369
|
+
"name": "tickers",
|
|
370
|
+
"hasDynamicHelp": false,
|
|
371
|
+
"multiple": false,
|
|
372
|
+
"type": "option"
|
|
373
|
+
},
|
|
374
|
+
"with-nested": {
|
|
375
|
+
"description": "Include nested markets",
|
|
376
|
+
"name": "with-nested",
|
|
377
|
+
"allowNo": false,
|
|
378
|
+
"type": "boolean"
|
|
496
379
|
}
|
|
497
380
|
},
|
|
498
381
|
"hasDynamicHelp": false,
|
|
499
382
|
"hiddenAliases": [],
|
|
500
|
-
"id": "
|
|
383
|
+
"id": "markets:list",
|
|
501
384
|
"pluginAlias": "@gaberoo/kalshitools",
|
|
502
385
|
"pluginName": "@gaberoo/kalshitools",
|
|
503
386
|
"pluginType": "core",
|
|
@@ -507,19 +390,24 @@
|
|
|
507
390
|
"relativePath": [
|
|
508
391
|
"dist",
|
|
509
392
|
"commands",
|
|
510
|
-
"
|
|
511
|
-
"
|
|
393
|
+
"markets",
|
|
394
|
+
"list.js"
|
|
512
395
|
]
|
|
513
396
|
},
|
|
514
|
-
"
|
|
397
|
+
"markets:orderbook": {
|
|
515
398
|
"aliases": [],
|
|
516
|
-
"args": {
|
|
517
|
-
|
|
399
|
+
"args": {
|
|
400
|
+
"ticker": {
|
|
401
|
+
"description": "Market ticker symbol",
|
|
402
|
+
"name": "ticker",
|
|
403
|
+
"required": true
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"description": "Show order book for a market",
|
|
518
407
|
"examples": [
|
|
519
|
-
"<%= config.bin %> <%= command.id %>",
|
|
520
|
-
"<%= config.bin %> <%= command.id %> --
|
|
521
|
-
"<%= config.bin %> <%= command.id %> --
|
|
522
|
-
"<%= config.bin %> <%= command.id %> --json"
|
|
408
|
+
"<%= config.bin %> <%= command.id %> TICKER",
|
|
409
|
+
"<%= config.bin %> <%= command.id %> TICKER --depth 5",
|
|
410
|
+
"<%= config.bin %> <%= command.id %> TICKER --json"
|
|
523
411
|
],
|
|
524
412
|
"flags": {
|
|
525
413
|
"json": {
|
|
@@ -528,12 +416,290 @@
|
|
|
528
416
|
"allowNo": false,
|
|
529
417
|
"type": "boolean"
|
|
530
418
|
},
|
|
531
|
-
"
|
|
532
|
-
"description": "
|
|
533
|
-
"name": "
|
|
534
|
-
"default":
|
|
535
|
-
"hasDynamicHelp": false,
|
|
536
|
-
"multiple": false,
|
|
419
|
+
"depth": {
|
|
420
|
+
"description": "Number of price levels to show",
|
|
421
|
+
"name": "depth",
|
|
422
|
+
"default": 10,
|
|
423
|
+
"hasDynamicHelp": false,
|
|
424
|
+
"multiple": false,
|
|
425
|
+
"type": "option"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
"hasDynamicHelp": false,
|
|
429
|
+
"hiddenAliases": [],
|
|
430
|
+
"id": "markets:orderbook",
|
|
431
|
+
"pluginAlias": "@gaberoo/kalshitools",
|
|
432
|
+
"pluginName": "@gaberoo/kalshitools",
|
|
433
|
+
"pluginType": "core",
|
|
434
|
+
"strict": true,
|
|
435
|
+
"enableJsonFlag": false,
|
|
436
|
+
"isESM": true,
|
|
437
|
+
"relativePath": [
|
|
438
|
+
"dist",
|
|
439
|
+
"commands",
|
|
440
|
+
"markets",
|
|
441
|
+
"orderbook.js"
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
"markets:scan": {
|
|
445
|
+
"aliases": [],
|
|
446
|
+
"args": {},
|
|
447
|
+
"description": "Scan markets for trading opportunities based on liquidity and spreads",
|
|
448
|
+
"examples": [
|
|
449
|
+
"<%= config.bin %> <%= command.id %>",
|
|
450
|
+
"<%= config.bin %> <%= command.id %> --min-liquidity 200 --min-spread 0.05",
|
|
451
|
+
"<%= config.bin %> <%= command.id %> --event-ticker EVENT-2024",
|
|
452
|
+
"<%= config.bin %> <%= command.id %> --sort-by liquidity --limit 20",
|
|
453
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
454
|
+
],
|
|
455
|
+
"flags": {
|
|
456
|
+
"json": {
|
|
457
|
+
"description": "Output in JSON format",
|
|
458
|
+
"name": "json",
|
|
459
|
+
"allowNo": false,
|
|
460
|
+
"type": "boolean"
|
|
461
|
+
},
|
|
462
|
+
"depth": {
|
|
463
|
+
"description": "Orderbook depth to fetch for analysis",
|
|
464
|
+
"name": "depth",
|
|
465
|
+
"default": 5,
|
|
466
|
+
"hasDynamicHelp": false,
|
|
467
|
+
"multiple": false,
|
|
468
|
+
"type": "option"
|
|
469
|
+
},
|
|
470
|
+
"event-ticker": {
|
|
471
|
+
"description": "Filter to specific event",
|
|
472
|
+
"name": "event-ticker",
|
|
473
|
+
"hasDynamicHelp": false,
|
|
474
|
+
"multiple": false,
|
|
475
|
+
"type": "option"
|
|
476
|
+
},
|
|
477
|
+
"limit": {
|
|
478
|
+
"description": "Maximum markets to scan",
|
|
479
|
+
"name": "limit",
|
|
480
|
+
"default": 50,
|
|
481
|
+
"hasDynamicHelp": false,
|
|
482
|
+
"multiple": false,
|
|
483
|
+
"type": "option"
|
|
484
|
+
},
|
|
485
|
+
"max-spread": {
|
|
486
|
+
"description": "Maximum spread in cents (e.g., 0.30 = 30 cents)",
|
|
487
|
+
"name": "max-spread",
|
|
488
|
+
"default": "0.30",
|
|
489
|
+
"hasDynamicHelp": false,
|
|
490
|
+
"multiple": false,
|
|
491
|
+
"type": "option"
|
|
492
|
+
},
|
|
493
|
+
"min-liquidity": {
|
|
494
|
+
"description": "Minimum orderbook depth in dollars",
|
|
495
|
+
"name": "min-liquidity",
|
|
496
|
+
"default": "100",
|
|
497
|
+
"hasDynamicHelp": false,
|
|
498
|
+
"multiple": false,
|
|
499
|
+
"type": "option"
|
|
500
|
+
},
|
|
501
|
+
"min-spread": {
|
|
502
|
+
"description": "Minimum spread in cents (e.g., 0.03 = 3 cents)",
|
|
503
|
+
"name": "min-spread",
|
|
504
|
+
"default": "0.03",
|
|
505
|
+
"hasDynamicHelp": false,
|
|
506
|
+
"multiple": false,
|
|
507
|
+
"type": "option"
|
|
508
|
+
},
|
|
509
|
+
"min-volume": {
|
|
510
|
+
"description": "Minimum 24h volume in dollars",
|
|
511
|
+
"name": "min-volume",
|
|
512
|
+
"default": "500",
|
|
513
|
+
"hasDynamicHelp": false,
|
|
514
|
+
"multiple": false,
|
|
515
|
+
"type": "option"
|
|
516
|
+
},
|
|
517
|
+
"series-ticker": {
|
|
518
|
+
"description": "Filter to specific series",
|
|
519
|
+
"name": "series-ticker",
|
|
520
|
+
"hasDynamicHelp": false,
|
|
521
|
+
"multiple": false,
|
|
522
|
+
"type": "option"
|
|
523
|
+
},
|
|
524
|
+
"sort-by": {
|
|
525
|
+
"description": "Ranking criteria",
|
|
526
|
+
"name": "sort-by",
|
|
527
|
+
"default": "score",
|
|
528
|
+
"hasDynamicHelp": false,
|
|
529
|
+
"multiple": false,
|
|
530
|
+
"options": [
|
|
531
|
+
"liquidity",
|
|
532
|
+
"score",
|
|
533
|
+
"spread",
|
|
534
|
+
"volume"
|
|
535
|
+
],
|
|
536
|
+
"type": "option"
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
"hasDynamicHelp": false,
|
|
540
|
+
"hiddenAliases": [],
|
|
541
|
+
"id": "markets:scan",
|
|
542
|
+
"pluginAlias": "@gaberoo/kalshitools",
|
|
543
|
+
"pluginName": "@gaberoo/kalshitools",
|
|
544
|
+
"pluginType": "core",
|
|
545
|
+
"strict": true,
|
|
546
|
+
"enableJsonFlag": false,
|
|
547
|
+
"isESM": true,
|
|
548
|
+
"relativePath": [
|
|
549
|
+
"dist",
|
|
550
|
+
"commands",
|
|
551
|
+
"markets",
|
|
552
|
+
"scan.js"
|
|
553
|
+
]
|
|
554
|
+
},
|
|
555
|
+
"markets:show": {
|
|
556
|
+
"aliases": [],
|
|
557
|
+
"args": {
|
|
558
|
+
"ticker": {
|
|
559
|
+
"description": "Market ticker symbol",
|
|
560
|
+
"name": "ticker",
|
|
561
|
+
"required": true
|
|
562
|
+
}
|
|
563
|
+
},
|
|
564
|
+
"description": "Show market details",
|
|
565
|
+
"examples": [
|
|
566
|
+
"<%= config.bin %> <%= command.id %> TICKER",
|
|
567
|
+
"<%= config.bin %> <%= command.id %> TICKER --json"
|
|
568
|
+
],
|
|
569
|
+
"flags": {
|
|
570
|
+
"json": {
|
|
571
|
+
"description": "Output in JSON format",
|
|
572
|
+
"name": "json",
|
|
573
|
+
"allowNo": false,
|
|
574
|
+
"type": "boolean"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"hasDynamicHelp": false,
|
|
578
|
+
"hiddenAliases": [],
|
|
579
|
+
"id": "markets:show",
|
|
580
|
+
"pluginAlias": "@gaberoo/kalshitools",
|
|
581
|
+
"pluginName": "@gaberoo/kalshitools",
|
|
582
|
+
"pluginType": "core",
|
|
583
|
+
"strict": true,
|
|
584
|
+
"enableJsonFlag": false,
|
|
585
|
+
"isESM": true,
|
|
586
|
+
"relativePath": [
|
|
587
|
+
"dist",
|
|
588
|
+
"commands",
|
|
589
|
+
"markets",
|
|
590
|
+
"show.js"
|
|
591
|
+
]
|
|
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
|
+
},
|
|
648
|
+
"portfolio:balance": {
|
|
649
|
+
"aliases": [],
|
|
650
|
+
"args": {},
|
|
651
|
+
"description": "View account balance",
|
|
652
|
+
"examples": [
|
|
653
|
+
"<%= config.bin %> <%= command.id %>",
|
|
654
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
655
|
+
],
|
|
656
|
+
"flags": {
|
|
657
|
+
"json": {
|
|
658
|
+
"description": "Output in JSON format",
|
|
659
|
+
"name": "json",
|
|
660
|
+
"allowNo": false,
|
|
661
|
+
"type": "boolean"
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
"hasDynamicHelp": false,
|
|
665
|
+
"hiddenAliases": [],
|
|
666
|
+
"id": "portfolio:balance",
|
|
667
|
+
"pluginAlias": "@gaberoo/kalshitools",
|
|
668
|
+
"pluginName": "@gaberoo/kalshitools",
|
|
669
|
+
"pluginType": "core",
|
|
670
|
+
"strict": true,
|
|
671
|
+
"enableJsonFlag": false,
|
|
672
|
+
"isESM": true,
|
|
673
|
+
"relativePath": [
|
|
674
|
+
"dist",
|
|
675
|
+
"commands",
|
|
676
|
+
"portfolio",
|
|
677
|
+
"balance.js"
|
|
678
|
+
]
|
|
679
|
+
},
|
|
680
|
+
"portfolio:fills": {
|
|
681
|
+
"aliases": [],
|
|
682
|
+
"args": {},
|
|
683
|
+
"description": "View trade history (fills)",
|
|
684
|
+
"examples": [
|
|
685
|
+
"<%= config.bin %> <%= command.id %>",
|
|
686
|
+
"<%= config.bin %> <%= command.id %> --ticker TICKER",
|
|
687
|
+
"<%= config.bin %> <%= command.id %> --limit 20",
|
|
688
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
689
|
+
],
|
|
690
|
+
"flags": {
|
|
691
|
+
"json": {
|
|
692
|
+
"description": "Output in JSON format",
|
|
693
|
+
"name": "json",
|
|
694
|
+
"allowNo": false,
|
|
695
|
+
"type": "boolean"
|
|
696
|
+
},
|
|
697
|
+
"limit": {
|
|
698
|
+
"description": "Maximum number of fills to return",
|
|
699
|
+
"name": "limit",
|
|
700
|
+
"default": 50,
|
|
701
|
+
"hasDynamicHelp": false,
|
|
702
|
+
"multiple": false,
|
|
537
703
|
"type": "option"
|
|
538
704
|
},
|
|
539
705
|
"ticker": {
|
|
@@ -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.0
|
|
908
|
+
"version": "1.1.0"
|
|
611
909
|
}
|