@gaberoo/kalshitools 1.1.0 → 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 +16 -16
- package/dist/lib/validation.js +4 -3
- package/oclif.manifest.json +221 -221
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -281,7 +281,7 @@ $ npm install -g @gaberoo/kalshitools
|
|
|
281
281
|
$ kalshitools COMMAND
|
|
282
282
|
running command...
|
|
283
283
|
$ kalshitools (--version)
|
|
284
|
-
@gaberoo/kalshitools/1.1.
|
|
284
|
+
@gaberoo/kalshitools/1.1.1 darwin-arm64 node-v22.20.0
|
|
285
285
|
$ kalshitools --help [COMMAND]
|
|
286
286
|
USAGE
|
|
287
287
|
$ kalshitools COMMAND
|
|
@@ -341,7 +341,7 @@ EXAMPLES
|
|
|
341
341
|
$ kalshitools config init --env production
|
|
342
342
|
```
|
|
343
343
|
|
|
344
|
-
_See code: [src/commands/config/init.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
344
|
+
_See code: [src/commands/config/init.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/config/init.ts)_
|
|
345
345
|
|
|
346
346
|
## `kalshitools config show`
|
|
347
347
|
|
|
@@ -363,7 +363,7 @@ EXAMPLES
|
|
|
363
363
|
$ kalshitools config show --json
|
|
364
364
|
```
|
|
365
365
|
|
|
366
|
-
_See code: [src/commands/config/show.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
366
|
+
_See code: [src/commands/config/show.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/config/show.ts)_
|
|
367
367
|
|
|
368
368
|
## `kalshitools help [COMMAND]`
|
|
369
369
|
|
|
@@ -421,7 +421,7 @@ EXAMPLES
|
|
|
421
421
|
$ kalshitools markets list --json
|
|
422
422
|
```
|
|
423
423
|
|
|
424
|
-
_See code: [src/commands/markets/list.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
424
|
+
_See code: [src/commands/markets/list.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/markets/list.ts)_
|
|
425
425
|
|
|
426
426
|
## `kalshitools markets orderbook TICKER`
|
|
427
427
|
|
|
@@ -449,7 +449,7 @@ EXAMPLES
|
|
|
449
449
|
$ kalshitools markets orderbook TICKER --json
|
|
450
450
|
```
|
|
451
451
|
|
|
452
|
-
_See code: [src/commands/markets/orderbook.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
452
|
+
_See code: [src/commands/markets/orderbook.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/markets/orderbook.ts)_
|
|
453
453
|
|
|
454
454
|
## `kalshitools markets scan`
|
|
455
455
|
|
|
@@ -489,7 +489,7 @@ EXAMPLES
|
|
|
489
489
|
$ kalshitools markets scan --json
|
|
490
490
|
```
|
|
491
491
|
|
|
492
|
-
_See code: [src/commands/markets/scan.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
492
|
+
_See code: [src/commands/markets/scan.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/markets/scan.ts)_
|
|
493
493
|
|
|
494
494
|
## `kalshitools markets show TICKER`
|
|
495
495
|
|
|
@@ -514,7 +514,7 @@ EXAMPLES
|
|
|
514
514
|
$ kalshitools markets show TICKER --json
|
|
515
515
|
```
|
|
516
516
|
|
|
517
|
-
_See code: [src/commands/markets/show.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
517
|
+
_See code: [src/commands/markets/show.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/markets/show.ts)_
|
|
518
518
|
|
|
519
519
|
## `kalshitools orders cancel ORDERID`
|
|
520
520
|
|
|
@@ -542,7 +542,7 @@ EXAMPLES
|
|
|
542
542
|
$ kalshitools orders cancel ORDER_ID --json
|
|
543
543
|
```
|
|
544
544
|
|
|
545
|
-
_See code: [src/commands/orders/cancel.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
545
|
+
_See code: [src/commands/orders/cancel.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/orders/cancel.ts)_
|
|
546
546
|
|
|
547
547
|
## `kalshitools orders create`
|
|
548
548
|
|
|
@@ -580,7 +580,7 @@ EXAMPLES
|
|
|
580
580
|
$ kalshitools orders create --ticker TICKER --action buy --side yes --quantity 100 --dry-run
|
|
581
581
|
```
|
|
582
582
|
|
|
583
|
-
_See code: [src/commands/orders/create.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
583
|
+
_See code: [src/commands/orders/create.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/orders/create.ts)_
|
|
584
584
|
|
|
585
585
|
## `kalshitools orders list`
|
|
586
586
|
|
|
@@ -611,7 +611,7 @@ EXAMPLES
|
|
|
611
611
|
$ kalshitools orders list --json
|
|
612
612
|
```
|
|
613
613
|
|
|
614
|
-
_See code: [src/commands/orders/list.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
614
|
+
_See code: [src/commands/orders/list.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/orders/list.ts)_
|
|
615
615
|
|
|
616
616
|
## `kalshitools plugins`
|
|
617
617
|
|
|
@@ -930,7 +930,7 @@ EXAMPLES
|
|
|
930
930
|
$ kalshitools portfolio analytics --json
|
|
931
931
|
```
|
|
932
932
|
|
|
933
|
-
_See code: [src/commands/portfolio/analytics.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
933
|
+
_See code: [src/commands/portfolio/analytics.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/portfolio/analytics.ts)_
|
|
934
934
|
|
|
935
935
|
## `kalshitools portfolio balance`
|
|
936
936
|
|
|
@@ -952,7 +952,7 @@ EXAMPLES
|
|
|
952
952
|
$ kalshitools portfolio balance --json
|
|
953
953
|
```
|
|
954
954
|
|
|
955
|
-
_See code: [src/commands/portfolio/balance.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
955
|
+
_See code: [src/commands/portfolio/balance.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/portfolio/balance.ts)_
|
|
956
956
|
|
|
957
957
|
## `kalshitools portfolio fills`
|
|
958
958
|
|
|
@@ -980,7 +980,7 @@ EXAMPLES
|
|
|
980
980
|
$ kalshitools portfolio fills --json
|
|
981
981
|
```
|
|
982
982
|
|
|
983
|
-
_See code: [src/commands/portfolio/fills.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
983
|
+
_See code: [src/commands/portfolio/fills.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/portfolio/fills.ts)_
|
|
984
984
|
|
|
985
985
|
## `kalshitools portfolio history`
|
|
986
986
|
|
|
@@ -1015,7 +1015,7 @@ EXAMPLES
|
|
|
1015
1015
|
$ kalshitools portfolio history --json
|
|
1016
1016
|
```
|
|
1017
1017
|
|
|
1018
|
-
_See code: [src/commands/portfolio/history.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
1018
|
+
_See code: [src/commands/portfolio/history.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/portfolio/history.ts)_
|
|
1019
1019
|
|
|
1020
1020
|
## `kalshitools portfolio positions`
|
|
1021
1021
|
|
|
@@ -1043,7 +1043,7 @@ EXAMPLES
|
|
|
1043
1043
|
$ kalshitools portfolio positions --json
|
|
1044
1044
|
```
|
|
1045
1045
|
|
|
1046
|
-
_See code: [src/commands/portfolio/positions.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
1046
|
+
_See code: [src/commands/portfolio/positions.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/portfolio/positions.ts)_
|
|
1047
1047
|
|
|
1048
1048
|
## `kalshitools portfolio risk`
|
|
1049
1049
|
|
|
@@ -1072,5 +1072,5 @@ EXAMPLES
|
|
|
1072
1072
|
$ kalshitools portfolio risk --json
|
|
1073
1073
|
```
|
|
1074
1074
|
|
|
1075
|
-
_See code: [src/commands/portfolio/risk.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.
|
|
1075
|
+
_See code: [src/commands/portfolio/risk.ts](https://github.com/kalshitools/kalshitools/blob/v1.1.1/src/commands/portfolio/risk.ts)_
|
|
1076
1076
|
<!-- commandsstop -->
|
package/dist/lib/validation.js
CHANGED
|
@@ -10,9 +10,10 @@ export function validateTicker(ticker) {
|
|
|
10
10
|
if (!ticker || ticker.trim().length === 0) {
|
|
11
11
|
throw new ValidationError('Ticker cannot be empty');
|
|
12
12
|
}
|
|
13
|
-
// Basic format check - alphanumeric and
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
// Basic format check - alphanumeric, hyphens, and decimal points
|
|
14
|
+
// Kalshi tickers can contain decimal points (e.g., KXCPI-26MAR-T0.3)
|
|
15
|
+
if (!/^[A-Z0-9.-]+$/.test(ticker)) {
|
|
16
|
+
throw new ValidationError('Ticker must contain only uppercase letters, numbers, hyphens, and periods', {
|
|
16
17
|
ticker,
|
|
17
18
|
});
|
|
18
19
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -90,226 +90,6 @@
|
|
|
90
90
|
"show.js"
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
|
-
"orders:cancel": {
|
|
94
|
-
"aliases": [],
|
|
95
|
-
"args": {
|
|
96
|
-
"orderId": {
|
|
97
|
-
"description": "Order ID to cancel",
|
|
98
|
-
"name": "orderId",
|
|
99
|
-
"required": true
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"description": "Cancel an order",
|
|
103
|
-
"examples": [
|
|
104
|
-
"<%= config.bin %> <%= command.id %> ORDER_ID",
|
|
105
|
-
"<%= config.bin %> <%= command.id %> ORDER_ID --yes",
|
|
106
|
-
"<%= config.bin %> <%= command.id %> ORDER_ID --json"
|
|
107
|
-
],
|
|
108
|
-
"flags": {
|
|
109
|
-
"json": {
|
|
110
|
-
"description": "Output in JSON format",
|
|
111
|
-
"name": "json",
|
|
112
|
-
"allowNo": false,
|
|
113
|
-
"type": "boolean"
|
|
114
|
-
},
|
|
115
|
-
"yes": {
|
|
116
|
-
"char": "y",
|
|
117
|
-
"description": "Skip confirmation prompt",
|
|
118
|
-
"name": "yes",
|
|
119
|
-
"allowNo": false,
|
|
120
|
-
"type": "boolean"
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
"hasDynamicHelp": false,
|
|
124
|
-
"hiddenAliases": [],
|
|
125
|
-
"id": "orders:cancel",
|
|
126
|
-
"pluginAlias": "@gaberoo/kalshitools",
|
|
127
|
-
"pluginName": "@gaberoo/kalshitools",
|
|
128
|
-
"pluginType": "core",
|
|
129
|
-
"strict": true,
|
|
130
|
-
"enableJsonFlag": false,
|
|
131
|
-
"isESM": true,
|
|
132
|
-
"relativePath": [
|
|
133
|
-
"dist",
|
|
134
|
-
"commands",
|
|
135
|
-
"orders",
|
|
136
|
-
"cancel.js"
|
|
137
|
-
]
|
|
138
|
-
},
|
|
139
|
-
"orders:create": {
|
|
140
|
-
"aliases": [],
|
|
141
|
-
"args": {},
|
|
142
|
-
"description": "Create a new order (buy or sell contracts)",
|
|
143
|
-
"examples": [
|
|
144
|
-
"<%= config.bin %> <%= command.id %> --ticker TICKER --action buy --side yes --quantity 10 --type market",
|
|
145
|
-
"<%= config.bin %> <%= command.id %> --ticker TICKER --action buy --side yes --quantity 10 --type limit --price 0.65",
|
|
146
|
-
"<%= config.bin %> <%= command.id %> --ticker TICKER --action sell --side no --quantity 5 --type market --yes",
|
|
147
|
-
"<%= config.bin %> <%= command.id %> --ticker TICKER --action buy --side yes --quantity 100 --dry-run"
|
|
148
|
-
],
|
|
149
|
-
"flags": {
|
|
150
|
-
"json": {
|
|
151
|
-
"description": "Output in JSON format",
|
|
152
|
-
"name": "json",
|
|
153
|
-
"allowNo": false,
|
|
154
|
-
"type": "boolean"
|
|
155
|
-
},
|
|
156
|
-
"action": {
|
|
157
|
-
"char": "a",
|
|
158
|
-
"description": "Order action (buy or sell)",
|
|
159
|
-
"name": "action",
|
|
160
|
-
"required": true,
|
|
161
|
-
"hasDynamicHelp": false,
|
|
162
|
-
"multiple": false,
|
|
163
|
-
"options": [
|
|
164
|
-
"buy",
|
|
165
|
-
"sell"
|
|
166
|
-
],
|
|
167
|
-
"type": "option"
|
|
168
|
-
},
|
|
169
|
-
"dry-run": {
|
|
170
|
-
"description": "Simulate the order without actually placing it",
|
|
171
|
-
"name": "dry-run",
|
|
172
|
-
"allowNo": false,
|
|
173
|
-
"type": "boolean"
|
|
174
|
-
},
|
|
175
|
-
"price": {
|
|
176
|
-
"char": "p",
|
|
177
|
-
"description": "Limit price (required for limit orders, 0.01-0.99)",
|
|
178
|
-
"name": "price",
|
|
179
|
-
"hasDynamicHelp": false,
|
|
180
|
-
"multiple": false,
|
|
181
|
-
"type": "option"
|
|
182
|
-
},
|
|
183
|
-
"quantity": {
|
|
184
|
-
"char": "q",
|
|
185
|
-
"description": "Number of contracts",
|
|
186
|
-
"name": "quantity",
|
|
187
|
-
"required": true,
|
|
188
|
-
"hasDynamicHelp": false,
|
|
189
|
-
"multiple": false,
|
|
190
|
-
"type": "option"
|
|
191
|
-
},
|
|
192
|
-
"side": {
|
|
193
|
-
"char": "s",
|
|
194
|
-
"description": "Contract side (yes or no)",
|
|
195
|
-
"name": "side",
|
|
196
|
-
"required": true,
|
|
197
|
-
"hasDynamicHelp": false,
|
|
198
|
-
"multiple": false,
|
|
199
|
-
"options": [
|
|
200
|
-
"yes",
|
|
201
|
-
"no"
|
|
202
|
-
],
|
|
203
|
-
"type": "option"
|
|
204
|
-
},
|
|
205
|
-
"ticker": {
|
|
206
|
-
"char": "t",
|
|
207
|
-
"description": "Market ticker symbol",
|
|
208
|
-
"name": "ticker",
|
|
209
|
-
"required": true,
|
|
210
|
-
"hasDynamicHelp": false,
|
|
211
|
-
"multiple": false,
|
|
212
|
-
"type": "option"
|
|
213
|
-
},
|
|
214
|
-
"type": {
|
|
215
|
-
"description": "Order type (market or limit)",
|
|
216
|
-
"name": "type",
|
|
217
|
-
"default": "market",
|
|
218
|
-
"hasDynamicHelp": false,
|
|
219
|
-
"multiple": false,
|
|
220
|
-
"options": [
|
|
221
|
-
"market",
|
|
222
|
-
"limit"
|
|
223
|
-
],
|
|
224
|
-
"type": "option"
|
|
225
|
-
},
|
|
226
|
-
"yes": {
|
|
227
|
-
"char": "y",
|
|
228
|
-
"description": "Skip confirmation prompt",
|
|
229
|
-
"name": "yes",
|
|
230
|
-
"allowNo": false,
|
|
231
|
-
"type": "boolean"
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
"hasDynamicHelp": false,
|
|
235
|
-
"hiddenAliases": [],
|
|
236
|
-
"id": "orders:create",
|
|
237
|
-
"pluginAlias": "@gaberoo/kalshitools",
|
|
238
|
-
"pluginName": "@gaberoo/kalshitools",
|
|
239
|
-
"pluginType": "core",
|
|
240
|
-
"strict": true,
|
|
241
|
-
"enableJsonFlag": false,
|
|
242
|
-
"isESM": true,
|
|
243
|
-
"relativePath": [
|
|
244
|
-
"dist",
|
|
245
|
-
"commands",
|
|
246
|
-
"orders",
|
|
247
|
-
"create.js"
|
|
248
|
-
]
|
|
249
|
-
},
|
|
250
|
-
"orders:list": {
|
|
251
|
-
"aliases": [],
|
|
252
|
-
"args": {},
|
|
253
|
-
"description": "List orders",
|
|
254
|
-
"examples": [
|
|
255
|
-
"<%= config.bin %> <%= command.id %>",
|
|
256
|
-
"<%= config.bin %> <%= command.id %> --status resting",
|
|
257
|
-
"<%= config.bin %> <%= command.id %> --ticker TICKER",
|
|
258
|
-
"<%= config.bin %> <%= command.id %> --json"
|
|
259
|
-
],
|
|
260
|
-
"flags": {
|
|
261
|
-
"json": {
|
|
262
|
-
"description": "Output in JSON format",
|
|
263
|
-
"name": "json",
|
|
264
|
-
"allowNo": false,
|
|
265
|
-
"type": "boolean"
|
|
266
|
-
},
|
|
267
|
-
"limit": {
|
|
268
|
-
"description": "Maximum number of orders to return",
|
|
269
|
-
"name": "limit",
|
|
270
|
-
"default": 50,
|
|
271
|
-
"hasDynamicHelp": false,
|
|
272
|
-
"multiple": false,
|
|
273
|
-
"type": "option"
|
|
274
|
-
},
|
|
275
|
-
"status": {
|
|
276
|
-
"description": "Filter by order status",
|
|
277
|
-
"name": "status",
|
|
278
|
-
"hasDynamicHelp": false,
|
|
279
|
-
"multiple": false,
|
|
280
|
-
"options": [
|
|
281
|
-
"pending",
|
|
282
|
-
"resting",
|
|
283
|
-
"canceled",
|
|
284
|
-
"executed",
|
|
285
|
-
"expired"
|
|
286
|
-
],
|
|
287
|
-
"type": "option"
|
|
288
|
-
},
|
|
289
|
-
"ticker": {
|
|
290
|
-
"description": "Filter by ticker",
|
|
291
|
-
"name": "ticker",
|
|
292
|
-
"hasDynamicHelp": false,
|
|
293
|
-
"multiple": false,
|
|
294
|
-
"type": "option"
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
"hasDynamicHelp": false,
|
|
298
|
-
"hiddenAliases": [],
|
|
299
|
-
"id": "orders:list",
|
|
300
|
-
"pluginAlias": "@gaberoo/kalshitools",
|
|
301
|
-
"pluginName": "@gaberoo/kalshitools",
|
|
302
|
-
"pluginType": "core",
|
|
303
|
-
"strict": true,
|
|
304
|
-
"enableJsonFlag": false,
|
|
305
|
-
"isESM": true,
|
|
306
|
-
"relativePath": [
|
|
307
|
-
"dist",
|
|
308
|
-
"commands",
|
|
309
|
-
"orders",
|
|
310
|
-
"list.js"
|
|
311
|
-
]
|
|
312
|
-
},
|
|
313
93
|
"markets:list": {
|
|
314
94
|
"aliases": [],
|
|
315
95
|
"args": {},
|
|
@@ -590,6 +370,226 @@
|
|
|
590
370
|
"show.js"
|
|
591
371
|
]
|
|
592
372
|
},
|
|
373
|
+
"orders:cancel": {
|
|
374
|
+
"aliases": [],
|
|
375
|
+
"args": {
|
|
376
|
+
"orderId": {
|
|
377
|
+
"description": "Order ID to cancel",
|
|
378
|
+
"name": "orderId",
|
|
379
|
+
"required": true
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"description": "Cancel an order",
|
|
383
|
+
"examples": [
|
|
384
|
+
"<%= config.bin %> <%= command.id %> ORDER_ID",
|
|
385
|
+
"<%= config.bin %> <%= command.id %> ORDER_ID --yes",
|
|
386
|
+
"<%= config.bin %> <%= command.id %> ORDER_ID --json"
|
|
387
|
+
],
|
|
388
|
+
"flags": {
|
|
389
|
+
"json": {
|
|
390
|
+
"description": "Output in JSON format",
|
|
391
|
+
"name": "json",
|
|
392
|
+
"allowNo": false,
|
|
393
|
+
"type": "boolean"
|
|
394
|
+
},
|
|
395
|
+
"yes": {
|
|
396
|
+
"char": "y",
|
|
397
|
+
"description": "Skip confirmation prompt",
|
|
398
|
+
"name": "yes",
|
|
399
|
+
"allowNo": false,
|
|
400
|
+
"type": "boolean"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"hasDynamicHelp": false,
|
|
404
|
+
"hiddenAliases": [],
|
|
405
|
+
"id": "orders:cancel",
|
|
406
|
+
"pluginAlias": "@gaberoo/kalshitools",
|
|
407
|
+
"pluginName": "@gaberoo/kalshitools",
|
|
408
|
+
"pluginType": "core",
|
|
409
|
+
"strict": true,
|
|
410
|
+
"enableJsonFlag": false,
|
|
411
|
+
"isESM": true,
|
|
412
|
+
"relativePath": [
|
|
413
|
+
"dist",
|
|
414
|
+
"commands",
|
|
415
|
+
"orders",
|
|
416
|
+
"cancel.js"
|
|
417
|
+
]
|
|
418
|
+
},
|
|
419
|
+
"orders:create": {
|
|
420
|
+
"aliases": [],
|
|
421
|
+
"args": {},
|
|
422
|
+
"description": "Create a new order (buy or sell contracts)",
|
|
423
|
+
"examples": [
|
|
424
|
+
"<%= config.bin %> <%= command.id %> --ticker TICKER --action buy --side yes --quantity 10 --type market",
|
|
425
|
+
"<%= config.bin %> <%= command.id %> --ticker TICKER --action buy --side yes --quantity 10 --type limit --price 0.65",
|
|
426
|
+
"<%= config.bin %> <%= command.id %> --ticker TICKER --action sell --side no --quantity 5 --type market --yes",
|
|
427
|
+
"<%= config.bin %> <%= command.id %> --ticker TICKER --action buy --side yes --quantity 100 --dry-run"
|
|
428
|
+
],
|
|
429
|
+
"flags": {
|
|
430
|
+
"json": {
|
|
431
|
+
"description": "Output in JSON format",
|
|
432
|
+
"name": "json",
|
|
433
|
+
"allowNo": false,
|
|
434
|
+
"type": "boolean"
|
|
435
|
+
},
|
|
436
|
+
"action": {
|
|
437
|
+
"char": "a",
|
|
438
|
+
"description": "Order action (buy or sell)",
|
|
439
|
+
"name": "action",
|
|
440
|
+
"required": true,
|
|
441
|
+
"hasDynamicHelp": false,
|
|
442
|
+
"multiple": false,
|
|
443
|
+
"options": [
|
|
444
|
+
"buy",
|
|
445
|
+
"sell"
|
|
446
|
+
],
|
|
447
|
+
"type": "option"
|
|
448
|
+
},
|
|
449
|
+
"dry-run": {
|
|
450
|
+
"description": "Simulate the order without actually placing it",
|
|
451
|
+
"name": "dry-run",
|
|
452
|
+
"allowNo": false,
|
|
453
|
+
"type": "boolean"
|
|
454
|
+
},
|
|
455
|
+
"price": {
|
|
456
|
+
"char": "p",
|
|
457
|
+
"description": "Limit price (required for limit orders, 0.01-0.99)",
|
|
458
|
+
"name": "price",
|
|
459
|
+
"hasDynamicHelp": false,
|
|
460
|
+
"multiple": false,
|
|
461
|
+
"type": "option"
|
|
462
|
+
},
|
|
463
|
+
"quantity": {
|
|
464
|
+
"char": "q",
|
|
465
|
+
"description": "Number of contracts",
|
|
466
|
+
"name": "quantity",
|
|
467
|
+
"required": true,
|
|
468
|
+
"hasDynamicHelp": false,
|
|
469
|
+
"multiple": false,
|
|
470
|
+
"type": "option"
|
|
471
|
+
},
|
|
472
|
+
"side": {
|
|
473
|
+
"char": "s",
|
|
474
|
+
"description": "Contract side (yes or no)",
|
|
475
|
+
"name": "side",
|
|
476
|
+
"required": true,
|
|
477
|
+
"hasDynamicHelp": false,
|
|
478
|
+
"multiple": false,
|
|
479
|
+
"options": [
|
|
480
|
+
"yes",
|
|
481
|
+
"no"
|
|
482
|
+
],
|
|
483
|
+
"type": "option"
|
|
484
|
+
},
|
|
485
|
+
"ticker": {
|
|
486
|
+
"char": "t",
|
|
487
|
+
"description": "Market ticker symbol",
|
|
488
|
+
"name": "ticker",
|
|
489
|
+
"required": true,
|
|
490
|
+
"hasDynamicHelp": false,
|
|
491
|
+
"multiple": false,
|
|
492
|
+
"type": "option"
|
|
493
|
+
},
|
|
494
|
+
"type": {
|
|
495
|
+
"description": "Order type (market or limit)",
|
|
496
|
+
"name": "type",
|
|
497
|
+
"default": "market",
|
|
498
|
+
"hasDynamicHelp": false,
|
|
499
|
+
"multiple": false,
|
|
500
|
+
"options": [
|
|
501
|
+
"market",
|
|
502
|
+
"limit"
|
|
503
|
+
],
|
|
504
|
+
"type": "option"
|
|
505
|
+
},
|
|
506
|
+
"yes": {
|
|
507
|
+
"char": "y",
|
|
508
|
+
"description": "Skip confirmation prompt",
|
|
509
|
+
"name": "yes",
|
|
510
|
+
"allowNo": false,
|
|
511
|
+
"type": "boolean"
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"hasDynamicHelp": false,
|
|
515
|
+
"hiddenAliases": [],
|
|
516
|
+
"id": "orders:create",
|
|
517
|
+
"pluginAlias": "@gaberoo/kalshitools",
|
|
518
|
+
"pluginName": "@gaberoo/kalshitools",
|
|
519
|
+
"pluginType": "core",
|
|
520
|
+
"strict": true,
|
|
521
|
+
"enableJsonFlag": false,
|
|
522
|
+
"isESM": true,
|
|
523
|
+
"relativePath": [
|
|
524
|
+
"dist",
|
|
525
|
+
"commands",
|
|
526
|
+
"orders",
|
|
527
|
+
"create.js"
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
"orders:list": {
|
|
531
|
+
"aliases": [],
|
|
532
|
+
"args": {},
|
|
533
|
+
"description": "List orders",
|
|
534
|
+
"examples": [
|
|
535
|
+
"<%= config.bin %> <%= command.id %>",
|
|
536
|
+
"<%= config.bin %> <%= command.id %> --status resting",
|
|
537
|
+
"<%= config.bin %> <%= command.id %> --ticker TICKER",
|
|
538
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
539
|
+
],
|
|
540
|
+
"flags": {
|
|
541
|
+
"json": {
|
|
542
|
+
"description": "Output in JSON format",
|
|
543
|
+
"name": "json",
|
|
544
|
+
"allowNo": false,
|
|
545
|
+
"type": "boolean"
|
|
546
|
+
},
|
|
547
|
+
"limit": {
|
|
548
|
+
"description": "Maximum number of orders to return",
|
|
549
|
+
"name": "limit",
|
|
550
|
+
"default": 50,
|
|
551
|
+
"hasDynamicHelp": false,
|
|
552
|
+
"multiple": false,
|
|
553
|
+
"type": "option"
|
|
554
|
+
},
|
|
555
|
+
"status": {
|
|
556
|
+
"description": "Filter by order status",
|
|
557
|
+
"name": "status",
|
|
558
|
+
"hasDynamicHelp": false,
|
|
559
|
+
"multiple": false,
|
|
560
|
+
"options": [
|
|
561
|
+
"pending",
|
|
562
|
+
"resting",
|
|
563
|
+
"canceled",
|
|
564
|
+
"executed",
|
|
565
|
+
"expired"
|
|
566
|
+
],
|
|
567
|
+
"type": "option"
|
|
568
|
+
},
|
|
569
|
+
"ticker": {
|
|
570
|
+
"description": "Filter by ticker",
|
|
571
|
+
"name": "ticker",
|
|
572
|
+
"hasDynamicHelp": false,
|
|
573
|
+
"multiple": false,
|
|
574
|
+
"type": "option"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"hasDynamicHelp": false,
|
|
578
|
+
"hiddenAliases": [],
|
|
579
|
+
"id": "orders:list",
|
|
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
|
+
"orders",
|
|
590
|
+
"list.js"
|
|
591
|
+
]
|
|
592
|
+
},
|
|
593
593
|
"portfolio:analytics": {
|
|
594
594
|
"aliases": [],
|
|
595
595
|
"args": {},
|
|
@@ -905,5 +905,5 @@
|
|
|
905
905
|
]
|
|
906
906
|
}
|
|
907
907
|
},
|
|
908
|
-
"version": "1.1.
|
|
908
|
+
"version": "1.1.1"
|
|
909
909
|
}
|