How to Use Twelve Data symbol search in opencode
Twelve Data symbol search returns matching tickers with instrument names, exchanges, MICs, currencies, countries, and instrument types. Use it to resolve a company name or ticker fragment before choosing a listing for market research.
Prompts to try with Twelve Data symbol search in opencode
Copy an example into opencode, or ask in your own words.
Use Twelve Data symbol search for Microsoft and add the returned candidates to my project's internal lookup screen, showing ticker, exchange, MIC, and currency.
Use Twelve Data symbol search for Toyota and update my import script to present candidate listings for review before accepting a ticker.
Use Twelve Data symbol search for Apple and create a response fixture from the real results for our instrument selector.
Use Twelve Data symbol search for Invesco QQQ and update the research table to show each candidate's instrument name, type, and exchange.
Use Twelve Data symbol search for IBM and inspect our watchlist code for places where it discards the returned exchange or MIC.
How to set up Twelve Data symbol search in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Twelve Data symbol search
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "twelvedata/symbols/search", "input": { "symbol": "<symbol>" } }'
Then paste one of the prompts above: opencode finds Twelve Data symbol search on Spiral, shows the price and runs it.
Twelve Data symbol search providers and prices
Spiral runs Twelve Data symbol search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Show plan | on or off | Include access.plan on each match. Default false. | |
| Outputsize | 1 to 120 | Matches to return, from 1 to 120. Default 30. The credit is per request, not per match. |
Every API field of Twelve Data · Symbol search is on its tool page: open its card above.
What can you do with Twelve Data symbol search in opencode?
Build an internal company lookup that presents candidate tickers with their exchanges and currencies. A coding agent can use Twelve Data results to repair imported labels and add listing selection to your project's research tools.
Resolve company names for a research watchlist
Search names such as Microsoft and Toyota, then review the returned tickers and exchanges before adding listings to an internal watchlist.
Review ambiguous ticker matches
Show each candidate's instrument name, exchange, country, and currency so an analyst can choose the intended listing.
Repair imported security labels
Turn company names and incomplete ticker labels in an imported research sheet into candidate symbols for review.
Check instrument types before analysis
Review the returned instrument type when resolving names such as Vanguard or Invesco, then keep the candidates relevant to the research task.
Prepare listing details for market data requests
Resolve a name to a candidate ticker and retain its exchange and MIC for the next stage of a market research workflow.
Review changes in search candidates
Repeat searches for a fixed set of public companies and compare returned symbols, exchanges, and currencies with the previous results.
More on Twelve Data symbol search and opencode
Overview
Twelve Data symbol search in other agents
Questions about Twelve Data symbol search in opencode
Can opencode use Twelve Data symbol search?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Twelve Data symbol search like any built-in tool.
How much does Twelve Data symbol search cost in opencode?
Up to $0.17459 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use Twelve Data symbol search in opencode?
No. Spiral runs Twelve Data symbol search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Twelve Data symbol search in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Twelve Data symbol search runs?
Twelve Data symbol search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
What information comes back with a matching ticker?
Results include the instrument name, exchange, MIC, exchange timezone, instrument type, country, and trading currency. Those details help you review which listing you intended to select.
How many matches can a search return?
Twelve Data returns up to 120 matches per call. The default response contains 30 matches.
Does the first result identify the listing I need?
Twelve Data puts the most relevant match first. That ranking does not establish your intended exchange or currency, so compare the returned listing details before selecting it.
How often does the symbol catalog change?
Twelve Data says its reference datasets update every three hours starting at midnight. That schedule describes the reference catalogs; it does not specify a separate search indexing delay.
Does a missing search result mean an instrument does not exist?
Search results concern Twelve Data's supported instruments. Its support guide points to stock, forex, cryptocurrency, and ETF lists for further checks and accepts requests to add instruments missing from those lists.
Start using Twelve Data symbol search in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


