MarketIntell Query
Ask MarketIntell — the markets analysis API — a single natural-language question and return the analyst response.
The LLM picks the right invocation and reports the result. It does NOT
write the curl, JSON, or auth header itself — scripts/mi.sh does.
When to use
User wants an analyst-style answer about a ticker, market structure, an options chain, on-chain activity, crypto fundamentals, or a sector take.
Example user requests:
- "What's the deal with NVDA right now?"
- "Options flow on TSLA this week?"
- "Is SOL undervalued?"
- "Why did regional banks just sell off?"
If the user is asking something completely off-topic (cooking recipes, travel tips), don't call this skill — it'll waste budget.
How
Run:
bash scripts/mi.sh query "<user's question verbatim>"
Examples the LLM should emit verbatim:
bash scripts/mi.sh query "what is NVDA doing today?" bash scripts/mi.sh query "options flow on TSLA this week" bash scripts/mi.sh query "is SOL undervalued vs ETH right now?"
Quote the question. Pass it verbatim — the LLM does not paraphrase. The script handles JSON escaping.
Errors
Script exit codes:
| Exit | Meaning | What to tell the user |
|---|---|---|
| 0 | Got a response | Show the answer from stdout. |
| 1 | Missing args | "I need a question to ask MarketIntell." |
| 2 | Missing $MARKETINTELL_API_KEY | "Add MARKETINTELL_API_KEY in Hangar secrets to enable this skill." |
| 3 | API or network error | Relay stderr. Common: 401 (bad key), 429 (rate limit), 5xx (upstream). |
Anything else: relay stderr to the user.
Don't do this
🔴 Don't construct the curl call yourself. 🔴 Don't paraphrase the user's question — the script accepts it verbatim and MarketIntell handles it natively. 🔴 Don't try to render the response — print it; users read markdown.
🟢 Do call the script. That's the whole point.