@miramarket/cli 1.8.0 → 1.9.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 +1 -0
- package/dist/{chunk-UCB7XSQE.js → chunk-CUQEGUAG.js} +726 -264
- package/dist/{chunk-NKZGADKF.js → chunk-GVMZCXYH.js} +2 -2
- package/dist/commands/account/accept-policies.js +17 -17
- package/dist/commands/account/capital.js +7 -7
- package/dist/commands/account/policies.js +7 -7
- package/dist/commands/account/setup.js +10 -10
- package/dist/commands/account/status.js +5 -5
- package/dist/commands/account/withdraw.js +12 -12
- package/dist/commands/auth/status.js +7 -7
- package/dist/commands/balance.js +8 -8
- package/dist/commands/bridge/execute.js +9 -9
- package/dist/commands/bridge/quote.js +5 -5
- package/dist/commands/bridge/status.js +5 -5
- package/dist/commands/edit.js +5 -5
- package/dist/commands/init.js +22 -22
- package/dist/commands/login.js +7 -7
- package/dist/commands/logout.js +4 -4
- package/dist/commands/markets/list.js +5 -5
- package/dist/commands/markets/orderbook.js +5 -5
- package/dist/commands/markets/prices-history.js +6 -6
- package/dist/commands/markets/resolve.js +5 -5
- package/dist/commands/markets/search.js +5 -5
- package/dist/commands/markets/show.js +5 -5
- package/dist/commands/order/cancel.js +7 -7
- package/dist/commands/order/status.js +9 -9
- package/dist/commands/perps/history.js +5 -5
- package/dist/commands/perps/list.js +5 -5
- package/dist/commands/perps/positions.js +5 -5
- package/dist/commands/perps/show.js +5 -5
- package/dist/commands/portfolio.js +9 -9
- package/dist/commands/post.js +6 -6
- package/dist/commands/preview.js +5 -5
- package/dist/commands/schema.js +3 -3
- package/dist/commands/status.js +6 -6
- package/dist/commands/stocks/history.js +5 -5
- package/dist/commands/stocks/list.js +5 -5
- package/dist/commands/stocks/show.js +5 -5
- package/dist/commands/strategies/approval.js +5 -5
- package/dist/commands/strategies/cancel.js +6 -6
- package/dist/commands/strategies/delete.js +7 -7
- package/dist/commands/strategies/exit.js +7 -7
- package/dist/commands/strategies/generate.js +13 -13
- package/dist/commands/strategies/list.js +6 -6
- package/dist/commands/strategies/pull.js +5 -5
- package/dist/commands/strategies/rename.js +6 -6
- package/dist/commands/strategies/runs.js +7 -7
- package/dist/commands/strategies/show.js +22 -13
- package/dist/commands/strategies/update.js +7 -7
- package/dist/commands/strategies/watch.js +10 -8
- package/dist/commands/trade.js +49 -14
- package/dist/commands/update.js +8 -8
- package/dist/commands/validate.js +7 -7
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"commands":{"balance":{"aliases":[],"args":{},"description":"Show USDC wallet balance across chains.","flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"chain":{"description":"Chain to query: base|polygon|all","name":"chain","default":"all","hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"balance","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","balance.js"]},"edit":{"aliases":[],"args":{"file":{"description":"Path to the strategy JSON file.","name":"file","required":true}},"description":"Update fields in a strategy JSON file.","examples":["miramarket-cli edit ./strategy.json --set initial_principal_usd=100","miramarket-cli edit ./strategy.json --set \"nodes[0].action.allocation_pct=50\"","miramarket-cli edit ./strategy.json --unset nodes[1].action.risk_guards","miramarket-cli edit ./strategy.json --set name=\"My Strategy\" --out ./updated.json"],"flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"},"demo":{"description":"Mark strategy as simulation mode (legacy --demo flag; uses simulated fills and skips real on-chain trades and pUSD recovery).","name":"demo","allowNo":true,"type":"boolean"},"set":{"description":"Set a field: \"path=value\". Value is parsed as JSON; falls back to string.","name":"set","hasDynamicHelp":false,"multiple":true,"type":"option"},"unset":{"description":"Remove a field at the given path.","name":"unset","hasDynamicHelp":false,"multiple":true,"type":"option"},"out":{"description":"Write result to this path instead of overwriting the input file.","name":"out","hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"edit","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","edit.js"]},"init":{"aliases":[],"args":{},"description":"Guided wizard to create, validate, and post a strategy.","examples":["miramarket-cli init"],"flags":{"json":{"description":"Not supported — init is an interactive wizard. Use validate/post --json for scripted use.","name":"json","allowNo":false,"type":"boolean"},"demo":{"description":"Mark strategy as simulation mode (legacy --demo flag; uses simulated fills and skips real on-chain trades and pUSD recovery).","name":"demo","allowNo":true,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"init","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","init.js"]},"login":{"aliases":[],"args":{},"description":"Sign in: approve a code in any browser and choose what the CLI may do (strategies, live trading, orders and bridging, withdrawals) and its budget.","examples":["miramarket-cli login","miramarket-cli login --json","miramarket-cli login --events # agents: relay the verification line's URL and code to the human"],"flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"},"events":{"description":"Agent mode, implies --json: print {\"event\":\"verification\",...} with the URL and code as soon as they exist, then the final envelope, one JSON object per line.","name":"events","allowNo":false,"type":"boolean"},"force":{"description":"Re-authenticate even if a valid token is already cached.","name":"force","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"login","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","login.js"]},"logout":{"aliases":[],"args":{},"description":"End this login: revoke it on the server (it disappears from Connected agents) and remove the cached token.","flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"logout","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","logout.js"]},"portfolio":{"aliases":[],"args":{},"description":"Show wallet balances and open positions.","flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"venue":{"description":"Filter by venue: polymarket|base-stocks|all","name":"venue","default":"all","hasDynamicHelp":false,"multiple":false,"options":["polymarket","base-stocks","all"],"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"portfolio","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","portfolio.js"]},"post":{"aliases":[],"args":{"file":{"description":"Path to the strategy JSON file.","name":"file","required":true}},"description":"Validate and post a strategy to the Convex backend using your Privy session.","examples":["miramarket-cli post ./strategy.json","miramarket-cli post ./strategy.json --no-start","miramarket-cli post ./strategy.json --name 'My Strategy' --json","miramarket-cli post ./strategy.json --demo","miramarket-cli post ./strategy.json --idempotency-key 3f6c1e0a-post --json # retry with the same key is safe"],"flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"},"no-start":{"description":"Save the strategy without starting a run (import only).","name":"no-start","allowNo":false,"type":"boolean"},"name":{"description":"Override the strategy name sent to the server. Defaults to strategy_id from the JSON.","name":"name","hasDynamicHelp":false,"multiple":false,"type":"option"},"demo":{"description":"Post as a simulation strategy (legacy --demo flag; skips real-trade constraints on the server).","name":"demo","allowNo":false,"type":"boolean"},"idempotency-key":{"description":"A unique value for this post (e.g. a UUID). Re-running the same post with the same key returns the strategy and run it already created instead of creating them again, so a timed-out post can be retried safely.","name":"idempotency-key","hasDynamicHelp":false,"multiple":false,"type":"option"},"skip-health-check":{"description":"Skip the market health pre-flight — demo/simulation runs only. Live runs always run it; combining this with a live (non-demo) strategy is rejected.","name":"skip-health-check","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"post","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","post.js"]},"preview":{"aliases":[],"args":{"file":{"description":"Path to the strategy JSON file.","name":"file","required":true}},"description":"Show a summary of a strategy before posting.","examples":["miramarket-cli preview ./strategy.json","miramarket-cli preview ./strategy.json --json"],"flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"preview","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","preview.js"]},"schema":{"aliases":[],"args":{},"description":"Print the ConditionalAction strategy schema for agent authoring.","examples":["miramarket-cli schema","miramarket-cli schema --format=ts","miramarket-cli schema --format=json","miramarket-cli schema --format=markdown"],"flags":{"format":{"description":"Output format: ts (TypeScript types), json (JSON Schema), markdown (guide).","name":"format","default":"markdown","hasDynamicHelp":false,"multiple":false,"options":["ts","json","markdown"],"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"schema","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","schema.js"]},"status":{"aliases":[],"args":{},"description":"Show the current CLI workflow state.","flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"status","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","status.js"]},"trade":{"aliases":[],"args":{},"description":"Place a CLOB limit order on Polymarket.","examples":["miramarket-cli trade --token-id <id> --side buy --price 0.55 --size 10 --confirm","miramarket-cli trade --token-id <id> --side sell --price 0.60 --size 5 --order-type GTC --confirm --json"],"flags":{"token-id":{"description":"CLOB token ID (outcome token)","name":"token-id","required":true,"hasDynamicHelp":false,"multiple":false,"type":"option"},"side":{"description":"Order side: buy or sell","name":"side","required":true,"hasDynamicHelp":false,"multiple":false,"options":["buy","sell"],"type":"option"},"price":{"description":"Limit price (0–1, e.g. 0.55 = 55 cents)","name":"price","required":true,"hasDynamicHelp":false,"multiple":false,"type":"option"},"size":{"description":"Order size in USDC","name":"size","required":true,"hasDynamicHelp":false,"multiple":false,"type":"option"},"order-type":{"description":"Order type: FOK (fill-or-kill) or GTC (good-till-cancel)","name":"order-type","default":"FOK","hasDynamicHelp":false,"multiple":false,"options":["FOK","GTC"],"type":"option"},"confirm":{"description":"Required: confirm that you intend to place a real order","name":"confirm","allowNo":false,"type":"boolean"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"trade","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","trade.js"]},"update":{"aliases":[],"args":{},"description":"Update miramarket-cli to the latest release on npm, with the package manager it was installed with.","examples":["miramarket-cli update","miramarket-cli update --check","miramarket-cli update --json"],"flags":{"check":{"description":"Only report whether a newer release exists; install nothing.","name":"check","allowNo":false,"type":"boolean"},"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"update","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","update.js"]},"validate":{"aliases":[],"args":{"file":{"description":"Path to the strategy JSON file.","name":"file","required":true}},"description":"Validate a strategy JSON file against the ConditionalAction schema.","examples":["miramarket-cli validate ./strategy.json","miramarket-cli validate ./strategy.json --json"],"flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"validate","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","validate.js"]},"account:accept-policies":{"aliases":[],"args":{},"description":"Record acceptance of the current Terms, Privacy Policy, and Risk Disclosure. Human-only — agents must not run this.","examples":["miramarket-cli account accept-policies","miramarket-cli account accept-policies --i-have-read-and-accept --terms-version=2026-10-16 --privacy-version=2026-10-16 --risk-version=2026-10-16 --json"],"flags":{"json":{"description":"Non-interactive (headless) mode. Requires the flags below.","name":"json","allowNo":false,"type":"boolean"},"i-have-read-and-accept":{"description":"Headless mode only: confirms a human has read the linked policies at the pinned versions.","name":"i-have-read-and-accept","allowNo":false,"type":"boolean"},"terms-version":{"description":"Headless mode only: the Terms version you are accepting.","name":"terms-version","hasDynamicHelp":false,"multiple":false,"type":"option"},"privacy-version":{"description":"Headless mode only: the Privacy Policy version you are accepting.","name":"privacy-version","hasDynamicHelp":false,"multiple":false,"type":"option"},"risk-version":{"description":"Headless mode only: the Risk Disclosure version you are accepting.","name":"risk-version","hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"account:accept-policies","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","account","accept-policies.js"]},"account:capital":{"aliases":[],"args":{},"description":"Show capital locked by active strategy runs and pending withdrawals.","examples":["miramarket-cli account capital --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"account:capital","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","account","capital.js"]},"account:policies":{"aliases":[],"args":{},"description":"Show the current Terms/Privacy/Risk Disclosure versions and your acceptance status.","examples":["miramarket-cli account policies --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"account:policies","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","account","policies.js"]},"account:setup":{"aliases":[],"args":{},"description":"Bootstrap deposit wallet + token approvals, and report what else is needed before trading.","examples":["miramarket-cli account setup --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"account:setup","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","account","setup.js"]},"account:status":{"aliases":[],"args":{},"description":"Diagnose whether this account is ready to trade — auth, region, policy acceptance, wallet delegation, and capital.","examples":["miramarket-cli account status --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"account:status","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","account","status.js"]},"account:withdraw":{"aliases":[],"args":{},"description":"Withdraw spendable USDC (Polygon + Base + the free Hyperliquid perps balance, moved out over Circle CCTP when needed) to another address.","examples":["miramarket-cli account withdraw --recipient 0xabc... --amount 25 --confirm --json","miramarket-cli account withdraw --recipient 0xabc... --confirm --json # withdraws all spendable cash"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"recipient":{"description":"Destination address (0x...).","name":"recipient","required":true,"hasDynamicHelp":false,"multiple":false,"type":"option"},"amount":{"description":"Amount in USD. Omit to withdraw all spendable cash.","name":"amount","hasDynamicHelp":false,"multiple":false,"type":"option"},"confirm":{"description":"Required: confirm that you intend to move real funds.","name":"confirm","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"account:withdraw","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","account","withdraw.js"]},"auth:status":{"aliases":[],"args":{},"description":"Check the cached login: who it is, what it may do, and its budget.","flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"auth:status","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","auth","status.js"]},"bridge:execute":{"aliases":[],"args":{},"description":"Execute a USDC bridge transfer between chains.","examples":["miramarket-cli bridge execute --amount 100 --direction base-to-polygon --confirm","miramarket-cli bridge execute --amount 50 --direction polygon-to-base --confirm --no-wait --json"],"flags":{"amount":{"description":"Amount of USDC to bridge","name":"amount","required":true,"hasDynamicHelp":false,"multiple":false,"type":"option"},"direction":{"description":"Bridge direction","name":"direction","required":true,"hasDynamicHelp":false,"multiple":false,"options":["base-to-polygon","polygon-to-base","polygon-usdc-to-usdce","polygon-usdce-to-usdc","polygon-to-hyperliquid","base-to-hyperliquid"],"type":"option"},"confirm":{"description":"Required: confirm that you intend to execute a real bridge transfer","name":"confirm","allowNo":false,"type":"boolean"},"no-wait":{"description":"Return immediately after submitting; do not poll for status","name":"no-wait","allowNo":false,"type":"boolean"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"bridge:execute","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","bridge","execute.js"]},"bridge:quote":{"aliases":[],"args":{},"description":"Get a USDC bridge quote between chains.","examples":["miramarket-cli bridge quote --amount 100 --direction base-to-polygon","miramarket-cli bridge quote --amount 25 --direction polygon-to-hyperliquid --json","miramarket-cli bridge quote --amount 50 --direction polygon-to-base --json"],"flags":{"amount":{"description":"Amount of USDC to bridge","name":"amount","required":true,"hasDynamicHelp":false,"multiple":false,"type":"option"},"direction":{"description":"Bridge direction","name":"direction","required":true,"hasDynamicHelp":false,"multiple":false,"options":["base-to-polygon","polygon-to-base","polygon-usdc-to-usdce","polygon-usdce-to-usdc","polygon-to-hyperliquid","base-to-hyperliquid"],"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"bridge:quote","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","bridge","quote.js"]},"bridge:status":{"aliases":[],"args":{"txHash":{"description":"Origin-chain transaction hash returned by `bridge execute`","name":"txHash","required":true}},"description":"Get the status of a cross-chain bridge by its origin transaction hash.","examples":["miramarket-cli bridge status <txHash> --chain-id 8453","miramarket-cli bridge status <txHash> --chain-id 8453 --json"],"flags":{"chain-id":{"description":"Chain the origin transaction was submitted on","name":"chain-id","required":true,"hasDynamicHelp":false,"multiple":false,"options":["8453","137"],"type":"option"},"quote-id":{"description":"Quote ID from `bridge execute` (optional, helps 0x resolve the route)","name":"quote-id","hasDynamicHelp":false,"multiple":false,"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"bridge:status","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","bridge","status.js"]},"markets:list":{"aliases":[],"args":{},"description":"List prediction markets from Polymarket.","examples":["miramarket-cli markets list --json","miramarket-cli markets list --limit 50 --offset 20"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"limit":{"description":"Max results","name":"limit","default":20,"hasDynamicHelp":false,"multiple":false,"type":"option"},"offset":{"description":"Pagination offset","name":"offset","default":0,"hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"markets:list","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","markets","list.js"]},"markets:orderbook":{"aliases":[],"args":{"tokenId":{"description":"Outcome token id, or a market id, condition id, market slug or polymarket.com link.","name":"tokenId","required":true}},"description":"Show the top bids and asks for a Polymarket outcome token. Takes the token id, or any handle that names one market (market id, condition id, slug, link) with --outcome.","examples":["miramarket-cli markets orderbook <tokenId> --json","miramarket-cli markets orderbook 12345"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"outcome":{"description":"Which side's token to read when the handle is not itself a token id.","name":"outcome","default":"yes","hasDynamicHelp":false,"multiple":false,"options":["yes","no"],"type":"option"},"depth":{"description":"Number of levels to display","name":"depth","default":5,"hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"markets:orderbook","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","markets","orderbook.js"]},"markets:prices-history":{"aliases":[],"args":{"market":{"description":"Outcome token id, or a market id, condition id, market slug or polymarket.com link.","name":"market","required":true}},"description":"Fetch price history for a Polymarket outcome token. Takes the token id, or any handle that names one market (market id, condition id, slug, link) with --outcome.","examples":["miramarket-cli markets prices-history <tokenId> --interval 1d --json","miramarket-cli markets prices-history <tokenId> --interval 1w"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"outcome":{"description":"Which side's token to read when the handle is not itself a token id.","name":"outcome","default":"yes","hasDynamicHelp":false,"multiple":false,"options":["yes","no"],"type":"option"},"interval":{"description":"Time interval: 1h | 6h | 1d | 1w | 1m | max","name":"interval","default":"1d","hasDynamicHelp":false,"multiple":false,"options":["1h","6h","1d","1w","1m","max"],"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"markets:prices-history","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","markets","prices-history.js"]},"markets:resolve":{"aliases":[],"args":{"handle":{"description":"A market id, event id, condition id, outcome token id, market or event slug, or polymarket.com link.","name":"handle","required":true}},"description":"Resolve any Polymarket handle to every id it goes by: market id, condition id, YES/NO token ids, slugs and event id.","examples":["miramarket-cli markets resolve 0x025eb37a...fcb2c9 --json # a condition id","miramarket-cli markets resolve 7471587551...37574019 --json # an outcome token id","miramarket-cli markets resolve fed-decision-in-december --json # a market or event slug","miramarket-cli markets resolve https://polymarket.com/event/<slug> --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"markets:resolve","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","markets","resolve.js"]},"markets:search":{"aliases":[],"args":{"query":{"description":"Search query string.","name":"query","required":true}},"description":"Search prediction markets on Polymarket by keyword.","examples":["miramarket-cli markets search \"bitcoin\" --json","miramarket-cli markets search \"election\" --limit 10"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"limit":{"description":"Max results","name":"limit","default":20,"hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"markets:search","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","markets","search.js"]},"markets:show":{"aliases":[],"args":{"eventId":{"description":"Polymarket event id, or any handle `markets resolve` takes: the event it belongs to is shown.","name":"eventId","required":true}},"description":"Show a Polymarket event and its markets, each with every id it goes by. Takes an event id or any other handle (slug, market id, condition id, token id, link).","examples":["miramarket-cli markets show <eventId> --json","miramarket-cli markets show abc123"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"markets:show","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","markets","show.js"]},"order:cancel":{"aliases":[],"args":{"orderId":{"description":"Polymarket order ID to cancel","name":"orderId","required":true}},"description":"Cancel a Polymarket GTC order by ID.","examples":["miramarket-cli order cancel <orderId> --confirm --json"],"flags":{"confirm":{"description":"Required: confirm that you intend to cancel this order","name":"confirm","allowNo":false,"type":"boolean"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"order:cancel","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","order","cancel.js"]},"order:status":{"aliases":[],"args":{"orderId":{"description":"Polymarket order ID (omit to list all open orders)","name":"orderId","required":false}},"description":"Show the status of a Polymarket order, or list all open orders.","examples":["miramarket-cli order status <orderId> --json","miramarket-cli order status --json # list all open orders"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"order:status","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","order","status.js"]},"perps:history":{"aliases":[],"args":{"coin":{"description":"Coin ticker (BTC, ETH, SOL), a HIP-3 coin with its dex (xyz:NVDA) or its id (hl:BTC, hl:xyz:NVDA).","name":"coin","required":true}},"description":"Mark-price candles for one Hyperliquid perp, in dollars.","examples":["miramarket-cli perps history BTC --json","miramarket-cli perps history ETH --interval 4h --json","miramarket-cli perps history SOL --interval 1d --from 2026-09-01 --to 2026-10-01 --json","miramarket-cli perps history xyz:NVDA --interval 1d --json"],"flags":{"interval":{"description":"Candle width","name":"interval","default":"1h","hasDynamicHelp":false,"multiple":false,"options":["1m","5m","15m","30m","1h","4h","12h","1d","1w"],"type":"option"},"from":{"description":"Window start, ISO date or unix ms. Default: 168 bars before --to.","name":"from","hasDynamicHelp":false,"multiple":false,"type":"option"},"to":{"description":"Window end, ISO date or unix ms. Default: now.","name":"to","hasDynamicHelp":false,"multiple":false,"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"perps:history","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","perps","history.js"]},"perps:list":{"aliases":[],"args":{},"description":"List Hyperliquid perpetuals -- crypto on the main dex; stocks, indices, commodities, FX, rates and pre-IPO names on the HIP-3 dexes -- with dex, category, margin mode, mark price, 24h move, funding, leverage cap and open interest.","examples":["miramarket-cli perps list --json","miramarket-cli perps list --dex xyz --json","miramarket-cli perps list --category stocks","miramarket-cli perps list --dex main --json"],"flags":{"dex":{"description":"Only this perp dex: its name (xyz, para, io, mkts, ...), its display name, or \"main\" for Hyperliquid's own dex. Any case.","name":"dex","hasDynamicHelp":false,"multiple":false,"type":"option"},"category":{"description":"Only this asset class: crypto, stocks, indices, commodities, fx, rates, preipo, other. Any case.","name":"category","hasDynamicHelp":false,"multiple":false,"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"perps:list","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","perps","list.js"]},"perps:positions":{"aliases":[],"args":{},"description":"Open Hyperliquid perp positions on every dex (main and HIP-3) and the withdrawable USDC balance there. Requires auth.","examples":["miramarket-cli perps positions --json","miramarket-cli perps positions"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"perps:positions","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","perps","positions.js"]},"perps:show":{"aliases":[],"args":{"coin":{"description":"Coin ticker (BTC, ETH, SOL), a HIP-3 coin (xyz:NVDA) or its id (hl:BTC, hl:xyz:NVDA). A bare ticker that is not on the main dex resolves to its HIP-3 listing; `resolution` says which.","name":"coin","required":true}},"description":"Show one Hyperliquid perp (main dex or HIP-3), with the exact action target to paste into a strategy.","examples":["miramarket-cli perps show BTC --json","miramarket-cli perps show ETH --side SHORT --leverage 3 --json | jq .actionTarget","miramarket-cli perps show hl:SOL","miramarket-cli perps show xyz:NVDA --leverage 2 --json"],"flags":{"side":{"description":"Which side `actionTarget` carries. Both sides are always in `actionTargets`.","name":"side","default":"LONG","hasDynamicHelp":false,"multiple":false,"options":["LONG","SHORT"],"type":"option"},"leverage":{"description":"Leverage for `actionTarget` (integer, 1 up to the asset's maxLeverage). Omitted means 1x. Cross margin on the main dex, isolated on a HIP-3 dex: `marginMode` says which.","name":"leverage","hasDynamicHelp":false,"multiple":false,"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"perps:show","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","perps","show.js"]},"stocks:history":{"aliases":[],"args":{"stock":{"description":"Ticker (TSLA), token symbol (TSLAc), company name, or contract address.","name":"stock","required":true}},"description":"Pool price history for one tokenized stock, in dollars per token.","examples":["miramarket-cli stocks history TSLA --json","miramarket-cli stocks history NVDA --range 1M","miramarket-cli stocks history 0xb2000000000000000000001e800a7f5189430cD0 --range ALL --json"],"flags":{"range":{"description":"Window: 1D (15-minute bars), 1W (hourly), 1M (4-hourly), ALL (daily)","name":"range","default":"1W","hasDynamicHelp":false,"multiple":false,"options":["1D","1W","1M","ALL"],"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"stocks:history","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","stocks","history.js"]},"stocks:list":{"aliases":[],"args":{},"description":"List tradable B20 tokenized stocks on Base with live Aerodrome pool prices.","examples":["miramarket-cli stocks list --json","miramarket-cli stocks list"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"stocks:list","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","stocks","list.js"]},"stocks:show":{"aliases":[],"args":{"stock":{"description":"Ticker (TSLA), token symbol (TSLAc), company name, or contract address.","name":"stock","required":true}},"description":"Show one tokenized stock, with the exact action target to paste into a strategy.","examples":["miramarket-cli stocks show TSLA --json","miramarket-cli stocks show Tesla","miramarket-cli stocks show 0xb2000000000000000000001e800a7f5189430cD0 --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"stocks:show","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","stocks","show.js"]},"strategies:approval":{"aliases":[],"args":{"approvalId":{"description":"The approvalId `post` returned","name":"approvalId","required":true}},"description":"Check a live start waiting for the account owner's approval: pending, started (with its runId), denied, expired or failed.","examples":["miramarket-cli strategies approval k57abc... --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:approval","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","approval.js"]},"strategies:cancel":{"aliases":[],"args":{"runId":{"description":"Convex strategy run document ID","name":"runId","required":true}},"description":"Cancel an active strategy run by run ID.","flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"strategy-id":{"description":"Convex strategy document ID (optional — resolved from the run if omitted).","name":"strategy-id","hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:cancel","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","cancel.js"]},"strategies:delete":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true}},"description":"Delete a draft strategy. Only strategies that have never been started can be deleted.","examples":["miramarket-cli strategies delete <strategyId> --confirm --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"confirm":{"description":"Required: confirm that you intend to permanently delete this draft.","name":"confirm","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:delete","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","delete.js"]},"strategies:exit":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true}},"description":"Close/exit a completed strategy run to free up principal.","flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:exit","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","exit.js"]},"strategies:generate":{"aliases":[],"args":{"prompt":{"description":"What the strategy should do, in one or two sentences. Omit only with --choose.","name":"prompt"}},"description":"Describe a strategy in plain English and get authoring JSON back -- the same text-to-strategy pipeline as the web assistant.","examples":["miramarket-cli strategies generate \"buy YES on the Fed cutting rates in December if it drops below 40c, sell at 70c\" --out ./strategy.json","miramarket-cli strategies generate \"buy TSLA if it crosses $400, sell at $450\" --json","miramarket-cli strategies generate \"add a 20% stop loss\" --strategy ./strategy.json --out ./strategy.json --json","miramarket-cli strategies generate --choose 2 --out ./strategy.json --json","miramarket-cli strategies generate --choose 3215006 --selection a1b2c3d4 --out ./strategy.json --json"],"flags":{"out":{"description":"Write the generated strategy JSON to this file. Without it the strategy is embedded in the result.","name":"out","hasDynamicHelp":false,"multiple":false,"type":"option"},"strategy":{"description":"An existing strategy file to edit: the prompt is applied as a change to it instead of building from scratch.","name":"strategy","hasDynamicHelp":false,"multiple":false,"type":"option"},"choose":{"description":"Answer the market question from the previous call: the candidate's market id, or its number as printed.","name":"choose","hasDynamicHelp":false,"multiple":false,"type":"option"},"selection":{"dependsOn":["choose"],"description":"With --choose: the selectionId the question came with. Refused if a different question is pending now.","name":"selection","hasDynamicHelp":false,"multiple":false,"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:generate","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","generate.js"]},"strategies:list":{"aliases":[],"args":{},"description":"List your strategies.","flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:list","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","list.js"]},"strategies:pull":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true}},"description":"Download a posted strategy as authoring JSON, with the node keys that are locked by its active run.","examples":["miramarket-cli strategies pull <strategyId> --out ./strategy.json","miramarket-cli strategies pull <strategyId> --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"out":{"description":"Write the strategy JSON to this file. Without it the strategy is embedded in the result.","name":"out","hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:pull","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","pull.js"]},"strategies:rename":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true},"name":{"description":"New name (1-120 characters)","name":"name","required":true}},"description":"Rename a strategy.","examples":["miramarket-cli strategies rename <strategyId> \"eth-momentum-v2\" --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:rename","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","rename.js"]},"strategies:runs":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true}},"description":"List run history for a strategy.","examples":["miramarket-cli strategies runs <strategyId> --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"limit":{"description":"Max runs to return (most recent first)","name":"limit","default":20,"hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:runs","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","runs.js"]},"strategies:show":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true}},"description":"Show details for a strategy by ID.","flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"verbose":{"description":"Include per-run node results, executed trades, and settlement detail.","name":"verbose","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:show","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","show.js"]},"strategies:update":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true},"file":{"description":"Strategy JSON to upload (usually from `strategies pull --out`). Omit to edit the posted graph directly with --set/--unset.","name":"file","required":false}},"description":"Edit the future part of a running strategy in place. Nodes the run has executed or is waiting on are locked; only downstream (child) nodes can change.","examples":["miramarket-cli strategies update <strategyId> --set \"nodes[4].condition.threshold=0.35\" --json","miramarket-cli strategies update <strategyId> ./strategy.json --json","miramarket-cli strategies update <strategyId> --set \"nodes[4].condition.timing.absolute_trigger_time_iso=2030-01-01T00:00:00Z\""],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"set":{"description":"Set a field: \"path=value\". Value is parsed as JSON; falls back to string.","name":"set","hasDynamicHelp":false,"multiple":true,"type":"option"},"unset":{"description":"Remove a field at the given path.","name":"unset","hasDynamicHelp":false,"multiple":true,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:update","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","update.js"]},"strategies:watch":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true}},"description":"Poll a strategy run until it reaches one of --until's terminal statuses.","examples":["miramarket-cli strategies watch <strategyId> --json","miramarket-cli strategies watch <strategyId> --events --timeout 600"],"flags":{"json":{"description":"Output JSON (blocks; emits exactly one final envelope).","name":"json","allowNo":false,"type":"boolean"},"events":{"description":"Emit one NDJSON line per status transition on stdout, then the final envelope. Implies JSON output.","name":"events","allowNo":false,"type":"boolean"},"run":{"description":"Run ID to watch (default: the strategy's latest run).","name":"run","hasDynamicHelp":false,"multiple":false,"type":"option"},"until":{"description":"Comma-separated terminal statuses to stop at.","name":"until","default":"completed,failed,canceled","hasDynamicHelp":false,"multiple":false,"type":"option"},"timeout":{"description":"Give up after this many seconds.","name":"timeout","default":86400,"hasDynamicHelp":false,"multiple":false,"type":"option"},"interval":{"description":"Poll interval in seconds (floor 2).","name":"interval","default":5,"hasDynamicHelp":false,"multiple":false,"type":"option"},"fail-on-error":{"description":"Exit 4 if the run ends in failed/canceled, instead of the default exit 0 (the watch itself still succeeded).","name":"fail-on-error","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:watch","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","watch.js"]}},"version":"1.8.0"}
|
|
1
|
+
{"commands":{"balance":{"aliases":[],"args":{},"description":"Show USDC wallet balance across chains.","flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"chain":{"description":"Chain to query: base|polygon|all","name":"chain","default":"all","hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"balance","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","balance.js"]},"edit":{"aliases":[],"args":{"file":{"description":"Path to the strategy JSON file.","name":"file","required":true}},"description":"Update fields in a strategy JSON file.","examples":["miramarket-cli edit ./strategy.json --set initial_principal_usd=100","miramarket-cli edit ./strategy.json --set \"nodes[0].action.allocation_pct=50\"","miramarket-cli edit ./strategy.json --unset nodes[1].action.risk_guards","miramarket-cli edit ./strategy.json --set name=\"My Strategy\" --out ./updated.json"],"flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"},"demo":{"description":"Mark strategy as simulation mode (legacy --demo flag; uses simulated fills and skips real on-chain trades and pUSD recovery).","name":"demo","allowNo":true,"type":"boolean"},"set":{"description":"Set a field: \"path=value\". Value is parsed as JSON; falls back to string.","name":"set","hasDynamicHelp":false,"multiple":true,"type":"option"},"unset":{"description":"Remove a field at the given path.","name":"unset","hasDynamicHelp":false,"multiple":true,"type":"option"},"out":{"description":"Write result to this path instead of overwriting the input file.","name":"out","hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"edit","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","edit.js"]},"init":{"aliases":[],"args":{},"description":"Guided wizard to create, validate, and post a strategy.","examples":["miramarket-cli init"],"flags":{"json":{"description":"Not supported — init is an interactive wizard. Use validate/post --json for scripted use.","name":"json","allowNo":false,"type":"boolean"},"demo":{"description":"Mark strategy as simulation mode (legacy --demo flag; uses simulated fills and skips real on-chain trades and pUSD recovery).","name":"demo","allowNo":true,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"init","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","init.js"]},"login":{"aliases":[],"args":{},"description":"Sign in: approve a code in any browser and choose what the CLI may do (strategies, live trading, orders and bridging, withdrawals) and its budget.","examples":["miramarket-cli login","miramarket-cli login --json","miramarket-cli login --events # agents: relay the verification line's URL and code to the human"],"flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"},"events":{"description":"Agent mode, implies --json: print {\"event\":\"verification\",...} with the URL and code as soon as they exist, then the final envelope, one JSON object per line.","name":"events","allowNo":false,"type":"boolean"},"force":{"description":"Re-authenticate even if a valid token is already cached.","name":"force","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"login","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","login.js"]},"logout":{"aliases":[],"args":{},"description":"End this login: revoke it on the server (it disappears from Connected agents) and remove the cached token.","flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"logout","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","logout.js"]},"portfolio":{"aliases":[],"args":{},"description":"Show wallet balances and open positions.","flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"venue":{"description":"Filter by venue: polymarket|base-stocks|all","name":"venue","default":"all","hasDynamicHelp":false,"multiple":false,"options":["polymarket","base-stocks","all"],"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"portfolio","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","portfolio.js"]},"post":{"aliases":[],"args":{"file":{"description":"Path to the strategy JSON file.","name":"file","required":true}},"description":"Validate and post a strategy to the Convex backend using your Privy session.","examples":["miramarket-cli post ./strategy.json","miramarket-cli post ./strategy.json --no-start","miramarket-cli post ./strategy.json --name 'My Strategy' --json","miramarket-cli post ./strategy.json --demo","miramarket-cli post ./strategy.json --idempotency-key 3f6c1e0a-post --json # retry with the same key is safe"],"flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"},"no-start":{"description":"Save the strategy without starting a run (import only).","name":"no-start","allowNo":false,"type":"boolean"},"name":{"description":"Override the strategy name sent to the server. Defaults to strategy_id from the JSON.","name":"name","hasDynamicHelp":false,"multiple":false,"type":"option"},"demo":{"description":"Post as a simulation strategy (legacy --demo flag; skips real-trade constraints on the server).","name":"demo","allowNo":false,"type":"boolean"},"idempotency-key":{"description":"A unique value for this post (e.g. a UUID). Re-running the same post with the same key returns the strategy and run it already created instead of creating them again, so a timed-out post can be retried safely.","name":"idempotency-key","hasDynamicHelp":false,"multiple":false,"type":"option"},"skip-health-check":{"description":"Skip the market health pre-flight — demo/simulation runs only. Live runs always run it; combining this with a live (non-demo) strategy is rejected.","name":"skip-health-check","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"post","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","post.js"]},"preview":{"aliases":[],"args":{"file":{"description":"Path to the strategy JSON file.","name":"file","required":true}},"description":"Show a summary of a strategy before posting.","examples":["miramarket-cli preview ./strategy.json","miramarket-cli preview ./strategy.json --json"],"flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"preview","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","preview.js"]},"schema":{"aliases":[],"args":{},"description":"Print the ConditionalAction strategy schema for agent authoring.","examples":["miramarket-cli schema","miramarket-cli schema --format=ts","miramarket-cli schema --format=json","miramarket-cli schema --format=markdown"],"flags":{"format":{"description":"Output format: ts (TypeScript types), json (JSON Schema), markdown (guide).","name":"format","default":"markdown","hasDynamicHelp":false,"multiple":false,"options":["ts","json","markdown"],"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"schema","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","schema.js"]},"status":{"aliases":[],"args":{},"description":"Show the current CLI workflow state.","flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"status","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","status.js"]},"trade":{"aliases":[],"args":{},"description":"Place a CLOB limit order on Polymarket.","examples":["miramarket-cli trade --token-id <id> --side buy --price 0.55 --size 10 --confirm","miramarket-cli trade --token-id <id> --side sell --price 0.60 --size 5 --order-type GTC --confirm --json"],"flags":{"token-id":{"description":"CLOB token ID (outcome token)","name":"token-id","required":true,"hasDynamicHelp":false,"multiple":false,"type":"option"},"side":{"description":"Order side: buy or sell","name":"side","required":true,"hasDynamicHelp":false,"multiple":false,"options":["buy","sell"],"type":"option"},"price":{"description":"Limit price (0–1, up to 4 decimals, e.g. 0.55 = 55 cents)","name":"price","required":true,"hasDynamicHelp":false,"multiple":false,"type":"option"},"size":{"description":"Order size in SHARES, not USDC: a buy costs price × size, a sell receives it. A default FOK buy is sent as a dollar budget of price × size, so it can fill a few more shares at a better average price","name":"size","required":true,"hasDynamicHelp":false,"multiple":false,"type":"option"},"order-type":{"description":"Order type: FOK (fill-or-kill) or GTC (good-till-cancel)","name":"order-type","default":"FOK","hasDynamicHelp":false,"multiple":false,"options":["FOK","GTC"],"type":"option"},"confirm":{"description":"Required: confirm that you intend to place a real order","name":"confirm","allowNo":false,"type":"boolean"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"trade","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","trade.js"]},"update":{"aliases":[],"args":{},"description":"Update miramarket-cli to the latest release on npm, with the package manager it was installed with.","examples":["miramarket-cli update","miramarket-cli update --check","miramarket-cli update --json"],"flags":{"check":{"description":"Only report whether a newer release exists; install nothing.","name":"check","allowNo":false,"type":"boolean"},"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"update","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","update.js"]},"validate":{"aliases":[],"args":{"file":{"description":"Path to the strategy JSON file.","name":"file","required":true}},"description":"Validate a strategy JSON file against the ConditionalAction schema.","examples":["miramarket-cli validate ./strategy.json","miramarket-cli validate ./strategy.json --json"],"flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"validate","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","validate.js"]},"auth:status":{"aliases":[],"args":{},"description":"Check the cached login: who it is, what it may do, and its budget.","flags":{"json":{"description":"Output machine-readable JSON.","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"auth:status","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","auth","status.js"]},"account:accept-policies":{"aliases":[],"args":{},"description":"Record acceptance of the current Terms, Privacy Policy, and Risk Disclosure. Human-only — agents must not run this.","examples":["miramarket-cli account accept-policies","miramarket-cli account accept-policies --i-have-read-and-accept --terms-version=2026-10-16 --privacy-version=2026-10-16 --risk-version=2026-10-16 --json"],"flags":{"json":{"description":"Non-interactive (headless) mode. Requires the flags below.","name":"json","allowNo":false,"type":"boolean"},"i-have-read-and-accept":{"description":"Headless mode only: confirms a human has read the linked policies at the pinned versions.","name":"i-have-read-and-accept","allowNo":false,"type":"boolean"},"terms-version":{"description":"Headless mode only: the Terms version you are accepting.","name":"terms-version","hasDynamicHelp":false,"multiple":false,"type":"option"},"privacy-version":{"description":"Headless mode only: the Privacy Policy version you are accepting.","name":"privacy-version","hasDynamicHelp":false,"multiple":false,"type":"option"},"risk-version":{"description":"Headless mode only: the Risk Disclosure version you are accepting.","name":"risk-version","hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"account:accept-policies","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","account","accept-policies.js"]},"account:capital":{"aliases":[],"args":{},"description":"Show capital locked by active strategy runs and pending withdrawals.","examples":["miramarket-cli account capital --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"account:capital","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","account","capital.js"]},"account:policies":{"aliases":[],"args":{},"description":"Show the current Terms/Privacy/Risk Disclosure versions and your acceptance status.","examples":["miramarket-cli account policies --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"account:policies","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","account","policies.js"]},"account:setup":{"aliases":[],"args":{},"description":"Bootstrap deposit wallet + token approvals, and report what else is needed before trading.","examples":["miramarket-cli account setup --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"account:setup","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","account","setup.js"]},"account:status":{"aliases":[],"args":{},"description":"Diagnose whether this account is ready to trade — auth, region, policy acceptance, wallet delegation, and capital.","examples":["miramarket-cli account status --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"account:status","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","account","status.js"]},"account:withdraw":{"aliases":[],"args":{},"description":"Withdraw spendable USDC (Polygon + Base + the free Hyperliquid perps balance, moved out over Circle CCTP when needed) to another address.","examples":["miramarket-cli account withdraw --recipient 0xabc... --amount 25 --confirm --json","miramarket-cli account withdraw --recipient 0xabc... --confirm --json # withdraws all spendable cash"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"recipient":{"description":"Destination address (0x...).","name":"recipient","required":true,"hasDynamicHelp":false,"multiple":false,"type":"option"},"amount":{"description":"Amount in USD. Omit to withdraw all spendable cash.","name":"amount","hasDynamicHelp":false,"multiple":false,"type":"option"},"confirm":{"description":"Required: confirm that you intend to move real funds.","name":"confirm","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"account:withdraw","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","account","withdraw.js"]},"bridge:execute":{"aliases":[],"args":{},"description":"Execute a USDC bridge transfer between chains.","examples":["miramarket-cli bridge execute --amount 100 --direction base-to-polygon --confirm","miramarket-cli bridge execute --amount 50 --direction polygon-to-base --confirm --no-wait --json"],"flags":{"amount":{"description":"Amount of USDC to bridge","name":"amount","required":true,"hasDynamicHelp":false,"multiple":false,"type":"option"},"direction":{"description":"Bridge direction","name":"direction","required":true,"hasDynamicHelp":false,"multiple":false,"options":["base-to-polygon","polygon-to-base","polygon-usdc-to-usdce","polygon-usdce-to-usdc","polygon-to-hyperliquid","base-to-hyperliquid"],"type":"option"},"confirm":{"description":"Required: confirm that you intend to execute a real bridge transfer","name":"confirm","allowNo":false,"type":"boolean"},"no-wait":{"description":"Return immediately after submitting; do not poll for status","name":"no-wait","allowNo":false,"type":"boolean"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"bridge:execute","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","bridge","execute.js"]},"bridge:quote":{"aliases":[],"args":{},"description":"Get a USDC bridge quote between chains.","examples":["miramarket-cli bridge quote --amount 100 --direction base-to-polygon","miramarket-cli bridge quote --amount 25 --direction polygon-to-hyperliquid --json","miramarket-cli bridge quote --amount 50 --direction polygon-to-base --json"],"flags":{"amount":{"description":"Amount of USDC to bridge","name":"amount","required":true,"hasDynamicHelp":false,"multiple":false,"type":"option"},"direction":{"description":"Bridge direction","name":"direction","required":true,"hasDynamicHelp":false,"multiple":false,"options":["base-to-polygon","polygon-to-base","polygon-usdc-to-usdce","polygon-usdce-to-usdc","polygon-to-hyperliquid","base-to-hyperliquid"],"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"bridge:quote","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","bridge","quote.js"]},"bridge:status":{"aliases":[],"args":{"txHash":{"description":"Origin-chain transaction hash returned by `bridge execute`","name":"txHash","required":true}},"description":"Get the status of a cross-chain bridge by its origin transaction hash.","examples":["miramarket-cli bridge status <txHash> --chain-id 8453","miramarket-cli bridge status <txHash> --chain-id 8453 --json"],"flags":{"chain-id":{"description":"Chain the origin transaction was submitted on","name":"chain-id","required":true,"hasDynamicHelp":false,"multiple":false,"options":["8453","137"],"type":"option"},"quote-id":{"description":"Quote ID from `bridge execute` (optional, helps 0x resolve the route)","name":"quote-id","hasDynamicHelp":false,"multiple":false,"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"bridge:status","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","bridge","status.js"]},"order:cancel":{"aliases":[],"args":{"orderId":{"description":"Polymarket order ID to cancel","name":"orderId","required":true}},"description":"Cancel a Polymarket GTC order by ID.","examples":["miramarket-cli order cancel <orderId> --confirm --json"],"flags":{"confirm":{"description":"Required: confirm that you intend to cancel this order","name":"confirm","allowNo":false,"type":"boolean"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"order:cancel","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","order","cancel.js"]},"order:status":{"aliases":[],"args":{"orderId":{"description":"Polymarket order ID (omit to list all open orders)","name":"orderId","required":false}},"description":"Show the status of a Polymarket order, or list all open orders.","examples":["miramarket-cli order status <orderId> --json","miramarket-cli order status --json # list all open orders"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"order:status","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","order","status.js"]},"markets:list":{"aliases":[],"args":{},"description":"List prediction markets from Polymarket.","examples":["miramarket-cli markets list --json","miramarket-cli markets list --limit 50 --offset 20"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"limit":{"description":"Max results","name":"limit","default":20,"hasDynamicHelp":false,"multiple":false,"type":"option"},"offset":{"description":"Pagination offset","name":"offset","default":0,"hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"markets:list","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","markets","list.js"]},"markets:orderbook":{"aliases":[],"args":{"tokenId":{"description":"Outcome token id, or a market id, condition id, market slug or polymarket.com link.","name":"tokenId","required":true}},"description":"Show the top bids and asks for a Polymarket outcome token. Takes the token id, or any handle that names one market (market id, condition id, slug, link) with --outcome.","examples":["miramarket-cli markets orderbook <tokenId> --json","miramarket-cli markets orderbook 12345"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"outcome":{"description":"Which side's token to read when the handle is not itself a token id.","name":"outcome","default":"yes","hasDynamicHelp":false,"multiple":false,"options":["yes","no"],"type":"option"},"depth":{"description":"Number of levels to display","name":"depth","default":5,"hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"markets:orderbook","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","markets","orderbook.js"]},"markets:prices-history":{"aliases":[],"args":{"market":{"description":"Outcome token id, or a market id, condition id, market slug or polymarket.com link.","name":"market","required":true}},"description":"Fetch price history for a Polymarket outcome token. Takes the token id, or any handle that names one market (market id, condition id, slug, link) with --outcome.","examples":["miramarket-cli markets prices-history <tokenId> --interval 1d --json","miramarket-cli markets prices-history <tokenId> --interval 1w"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"outcome":{"description":"Which side's token to read when the handle is not itself a token id.","name":"outcome","default":"yes","hasDynamicHelp":false,"multiple":false,"options":["yes","no"],"type":"option"},"interval":{"description":"Time interval: 1h | 6h | 1d | 1w | 1m | max","name":"interval","default":"1d","hasDynamicHelp":false,"multiple":false,"options":["1h","6h","1d","1w","1m","max"],"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"markets:prices-history","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","markets","prices-history.js"]},"markets:resolve":{"aliases":[],"args":{"handle":{"description":"A market id, event id, condition id, outcome token id, market or event slug, or polymarket.com link.","name":"handle","required":true}},"description":"Resolve any Polymarket handle to every id it goes by: market id, condition id, YES/NO token ids, slugs and event id.","examples":["miramarket-cli markets resolve 0x025eb37a...fcb2c9 --json # a condition id","miramarket-cli markets resolve 7471587551...37574019 --json # an outcome token id","miramarket-cli markets resolve fed-decision-in-december --json # a market or event slug","miramarket-cli markets resolve https://polymarket.com/event/<slug> --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"markets:resolve","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","markets","resolve.js"]},"markets:search":{"aliases":[],"args":{"query":{"description":"Search query string.","name":"query","required":true}},"description":"Search prediction markets on Polymarket by keyword.","examples":["miramarket-cli markets search \"bitcoin\" --json","miramarket-cli markets search \"election\" --limit 10"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"limit":{"description":"Max results","name":"limit","default":20,"hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"markets:search","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","markets","search.js"]},"markets:show":{"aliases":[],"args":{"eventId":{"description":"Polymarket event id, or any handle `markets resolve` takes: the event it belongs to is shown.","name":"eventId","required":true}},"description":"Show a Polymarket event and its markets, each with every id it goes by. Takes an event id or any other handle (slug, market id, condition id, token id, link).","examples":["miramarket-cli markets show <eventId> --json","miramarket-cli markets show abc123"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"markets:show","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","markets","show.js"]},"perps:history":{"aliases":[],"args":{"coin":{"description":"Coin ticker (BTC, ETH, SOL), a HIP-3 coin with its dex (xyz:NVDA) or its id (hl:BTC, hl:xyz:NVDA).","name":"coin","required":true}},"description":"Mark-price candles for one Hyperliquid perp, in dollars.","examples":["miramarket-cli perps history BTC --json","miramarket-cli perps history ETH --interval 4h --json","miramarket-cli perps history SOL --interval 1d --from 2026-09-01 --to 2026-10-01 --json","miramarket-cli perps history xyz:NVDA --interval 1d --json"],"flags":{"interval":{"description":"Candle width","name":"interval","default":"1h","hasDynamicHelp":false,"multiple":false,"options":["1m","5m","15m","30m","1h","4h","12h","1d","1w"],"type":"option"},"from":{"description":"Window start, ISO date or unix ms. Default: 168 bars before --to.","name":"from","hasDynamicHelp":false,"multiple":false,"type":"option"},"to":{"description":"Window end, ISO date or unix ms. Default: now.","name":"to","hasDynamicHelp":false,"multiple":false,"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"perps:history","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","perps","history.js"]},"perps:list":{"aliases":[],"args":{},"description":"List Hyperliquid perpetuals -- crypto on the main dex; stocks, indices, commodities, FX, rates and pre-IPO names on the HIP-3 dexes -- with dex, category, margin mode, mark price, 24h move, funding, leverage cap and open interest.","examples":["miramarket-cli perps list --json","miramarket-cli perps list --dex xyz --json","miramarket-cli perps list --category stocks","miramarket-cli perps list --dex main --json"],"flags":{"dex":{"description":"Only this perp dex: its name (xyz, para, io, mkts, ...), its display name, or \"main\" for Hyperliquid's own dex. Any case.","name":"dex","hasDynamicHelp":false,"multiple":false,"type":"option"},"category":{"description":"Only this asset class: crypto, stocks, indices, commodities, fx, rates, preipo, other. Any case.","name":"category","hasDynamicHelp":false,"multiple":false,"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"perps:list","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","perps","list.js"]},"perps:positions":{"aliases":[],"args":{},"description":"Open Hyperliquid perp positions on every dex (main and HIP-3) and the withdrawable USDC balance there. Requires auth.","examples":["miramarket-cli perps positions --json","miramarket-cli perps positions"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"perps:positions","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","perps","positions.js"]},"perps:show":{"aliases":[],"args":{"coin":{"description":"Coin ticker (BTC, ETH, SOL), a HIP-3 coin (xyz:NVDA) or its id (hl:BTC, hl:xyz:NVDA). A bare ticker that is not on the main dex resolves to its HIP-3 listing; `resolution` says which.","name":"coin","required":true}},"description":"Show one Hyperliquid perp (main dex or HIP-3), with the exact action target to paste into a strategy.","examples":["miramarket-cli perps show BTC --json","miramarket-cli perps show ETH --side SHORT --leverage 3 --json | jq .actionTarget","miramarket-cli perps show hl:SOL","miramarket-cli perps show xyz:NVDA --leverage 2 --json"],"flags":{"side":{"description":"Which side `actionTarget` carries. Both sides are always in `actionTargets`.","name":"side","default":"LONG","hasDynamicHelp":false,"multiple":false,"options":["LONG","SHORT"],"type":"option"},"leverage":{"description":"Leverage for `actionTarget` (integer, 1 up to the asset's maxLeverage). Omitted means 1x. Cross margin on the main dex, isolated on a HIP-3 dex: `marginMode` says which.","name":"leverage","hasDynamicHelp":false,"multiple":false,"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"perps:show","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","perps","show.js"]},"stocks:history":{"aliases":[],"args":{"stock":{"description":"Ticker (TSLA), token symbol (TSLAc), company name, or contract address.","name":"stock","required":true}},"description":"Pool price history for one tokenized stock, in dollars per token.","examples":["miramarket-cli stocks history TSLA --json","miramarket-cli stocks history NVDA --range 1M","miramarket-cli stocks history 0xb2000000000000000000001e800a7f5189430cD0 --range ALL --json"],"flags":{"range":{"description":"Window: 1D (15-minute bars), 1W (hourly), 1M (4-hourly), ALL (daily)","name":"range","default":"1W","hasDynamicHelp":false,"multiple":false,"options":["1D","1W","1M","ALL"],"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"stocks:history","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","stocks","history.js"]},"stocks:list":{"aliases":[],"args":{},"description":"List tradable B20 tokenized stocks on Base with live Aerodrome pool prices.","examples":["miramarket-cli stocks list --json","miramarket-cli stocks list"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"stocks:list","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","stocks","list.js"]},"stocks:show":{"aliases":[],"args":{"stock":{"description":"Ticker (TSLA), token symbol (TSLAc), company name, or contract address.","name":"stock","required":true}},"description":"Show one tokenized stock, with the exact action target to paste into a strategy.","examples":["miramarket-cli stocks show TSLA --json","miramarket-cli stocks show Tesla","miramarket-cli stocks show 0xb2000000000000000000001e800a7f5189430cD0 --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"stocks:show","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","stocks","show.js"]},"strategies:approval":{"aliases":[],"args":{"approvalId":{"description":"The approvalId `post` returned","name":"approvalId","required":true}},"description":"Check a live start waiting for the account owner's approval: pending, started (with its runId), denied, expired or failed.","examples":["miramarket-cli strategies approval k57abc... --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:approval","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","approval.js"]},"strategies:cancel":{"aliases":[],"args":{"runId":{"description":"Convex strategy run document ID","name":"runId","required":true}},"description":"Cancel an active strategy run by run ID.","flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"strategy-id":{"description":"Convex strategy document ID (optional — resolved from the run if omitted).","name":"strategy-id","hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:cancel","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","cancel.js"]},"strategies:delete":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true}},"description":"Delete a draft strategy. Only strategies that have never been started can be deleted.","examples":["miramarket-cli strategies delete <strategyId> --confirm --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"confirm":{"description":"Required: confirm that you intend to permanently delete this draft.","name":"confirm","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:delete","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","delete.js"]},"strategies:exit":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true}},"description":"Archive a completed strategy and close whatever positions it still holds. (A running strategy is cancelled with `strategies cancel`, not exited.)","flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:exit","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","exit.js"]},"strategies:generate":{"aliases":[],"args":{"prompt":{"description":"What the strategy should do, in one or two sentences. Omit only with --choose.","name":"prompt"}},"description":"Describe a strategy in plain English and get authoring JSON back -- the same text-to-strategy pipeline as the web assistant.","examples":["miramarket-cli strategies generate \"buy YES on the Fed cutting rates in December if it drops below 40c, sell at 70c\" --out ./strategy.json","miramarket-cli strategies generate \"buy TSLA if it crosses $400, sell at $450\" --json","miramarket-cli strategies generate \"add a 20% stop loss\" --strategy ./strategy.json --out ./strategy.json --json","miramarket-cli strategies generate --choose 2 --out ./strategy.json --json","miramarket-cli strategies generate --choose 3215006 --selection a1b2c3d4 --out ./strategy.json --json"],"flags":{"out":{"description":"Write the generated strategy JSON to this file. Without it the strategy is embedded in the result.","name":"out","hasDynamicHelp":false,"multiple":false,"type":"option"},"strategy":{"description":"An existing strategy file to edit: the prompt is applied as a change to it instead of building from scratch.","name":"strategy","hasDynamicHelp":false,"multiple":false,"type":"option"},"choose":{"description":"Answer the market question from the previous call: the candidate's market id, or its number as printed.","name":"choose","hasDynamicHelp":false,"multiple":false,"type":"option"},"selection":{"dependsOn":["choose"],"description":"With --choose: the selectionId the question came with. Refused if a different question is pending now.","name":"selection","hasDynamicHelp":false,"multiple":false,"type":"option"},"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:generate","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","generate.js"]},"strategies:list":{"aliases":[],"args":{},"description":"List your strategies.","flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:list","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","list.js"]},"strategies:pull":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true}},"description":"Download a posted strategy as authoring JSON, with the node keys that are locked by its active run.","examples":["miramarket-cli strategies pull <strategyId> --out ./strategy.json","miramarket-cli strategies pull <strategyId> --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"out":{"description":"Write the strategy JSON to this file. Without it the strategy is embedded in the result.","name":"out","hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:pull","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","pull.js"]},"strategies:rename":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true},"name":{"description":"New name (1-120 characters)","name":"name","required":true}},"description":"Rename a strategy.","examples":["miramarket-cli strategies rename <strategyId> \"eth-momentum-v2\" --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:rename","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","rename.js"]},"strategies:runs":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true}},"description":"List run history for a strategy.","examples":["miramarket-cli strategies runs <strategyId> --json"],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"limit":{"description":"Max runs to return (most recent first)","name":"limit","default":20,"hasDynamicHelp":false,"multiple":false,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:runs","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","runs.js"]},"strategies:show":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true}},"description":"Show details for a strategy by ID.","flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"verbose":{"description":"Include per-run node results, executed trades, and settlement detail.","name":"verbose","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:show","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","show.js"]},"strategies:update":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true},"file":{"description":"Strategy JSON to upload (usually from `strategies pull --out`). Omit to edit the posted graph directly with --set/--unset.","name":"file","required":false}},"description":"Edit the future part of a running strategy in place. Nodes the run has executed or is waiting on are locked; only downstream (child) nodes can change.","examples":["miramarket-cli strategies update <strategyId> --set \"nodes[4].condition.threshold=0.35\" --json","miramarket-cli strategies update <strategyId> ./strategy.json --json","miramarket-cli strategies update <strategyId> --set \"nodes[4].condition.timing.absolute_trigger_time_iso=2030-01-01T00:00:00Z\""],"flags":{"json":{"description":"Output JSON","name":"json","allowNo":false,"type":"boolean"},"set":{"description":"Set a field: \"path=value\". Value is parsed as JSON; falls back to string.","name":"set","hasDynamicHelp":false,"multiple":true,"type":"option"},"unset":{"description":"Remove a field at the given path.","name":"unset","hasDynamicHelp":false,"multiple":true,"type":"option"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:update","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","update.js"]},"strategies:watch":{"aliases":[],"args":{"strategyId":{"description":"Convex strategy document ID","name":"strategyId","required":true}},"description":"Poll a strategy run until it reaches one of --until's terminal statuses.","examples":["miramarket-cli strategies watch <strategyId> --json","miramarket-cli strategies watch <strategyId> --events --timeout 600"],"flags":{"json":{"description":"Output JSON (blocks; emits exactly one final envelope).","name":"json","allowNo":false,"type":"boolean"},"events":{"description":"Emit one NDJSON line per status transition on stdout, then the final envelope. Implies JSON output.","name":"events","allowNo":false,"type":"boolean"},"run":{"description":"Run ID to watch (default: the strategy's latest run).","name":"run","hasDynamicHelp":false,"multiple":false,"type":"option"},"until":{"description":"Comma-separated terminal statuses to stop at.","name":"until","default":"completed,failed,canceled","hasDynamicHelp":false,"multiple":false,"type":"option"},"timeout":{"description":"Give up after this many seconds.","name":"timeout","default":86400,"hasDynamicHelp":false,"multiple":false,"type":"option"},"interval":{"description":"Poll interval in seconds (floor 2).","name":"interval","default":5,"hasDynamicHelp":false,"multiple":false,"type":"option"},"fail-on-error":{"description":"Exit 4 if the run ends in failed/canceled, instead of the default exit 0 (the watch itself still succeeded).","name":"fail-on-error","allowNo":false,"type":"boolean"}},"hasDynamicHelp":false,"hiddenAliases":[],"id":"strategies:watch","pluginAlias":"@miramarket/cli","pluginName":"@miramarket/cli","pluginType":"core","strict":true,"isESM":false,"relativePath":["dist","commands","strategies","watch.js"]}},"version":"1.9.0"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miramarket/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "CLI for creating, validating, and posting ConditionalAction strategies",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -87,13 +87,13 @@
|
|
|
87
87
|
"@prediction-market-aggregator/shared": "file:../../packages/shared",
|
|
88
88
|
"@prediction-market-aggregator/miramarket-client": "file:../../packages/miramarket-client",
|
|
89
89
|
"@types/jest": "^29.0.0",
|
|
90
|
-
"@types/node": "^
|
|
90
|
+
"@types/node": "^24.0.0",
|
|
91
91
|
"dotenv": "^17.4.1",
|
|
92
92
|
"jest": "^29.0.0",
|
|
93
93
|
"ts-jest": "^29.0.0",
|
|
94
94
|
"tsup": "^8.5.1",
|
|
95
95
|
"typescript": "^5.0.0",
|
|
96
|
-
"vitest": "^1.
|
|
96
|
+
"vitest": "^5.1.2"
|
|
97
97
|
},
|
|
98
98
|
"jest": {
|
|
99
99
|
"preset": "ts-jest",
|