Spiral gives your agent every tool with one account. Browse the tools →

Codex · Finance

How to Use Twelve Data symbol search in Codex

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 Codex

Copy an example into Codex, 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.

Twelve Data symbol searchCodex
Try asking
  • 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 Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. 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: Codex 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.

AlexandriaFinance
Twelve Data · Symbol search
twelvedata/symbols/search

Settings you can ask for

Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Show planon or off

Include access.plan on each match. Default false.

Outputsize1 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 Codex?

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.

Questions about Twelve Data symbol search in Codex

Can Codex use Twelve Data symbol search?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Twelve Data symbol search like any built-in tool.

How much does Twelve Data symbol search cost in Codex?

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 Codex plan is separate.

Do I need an Alexandria account to use Twelve Data symbol search in Codex?

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 Codex?

About two minutes: add the hosted server, then sign in.

Does Codex wait while Twelve Data symbol search runs?

Twelve Data symbol search runs in the background. Codex 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.

Get started

Start using Twelve Data symbol search in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options