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

AlexandriaFinanceAvailable now

Twelve Data · Quote

twelvedata/prices/quote

Get market and financial data with Twelve Data · Quote from Alexandria through one Spiral API key. Read the latest quote for one stock, forex pair, or cryptocurrency: open, high, low, close, volume, change, and the 52-week range. Use prices/latest when only the price is needed, and symbols/search to resolve a name to a ticker. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

Up to $0.17459 per run.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
dpnumber
0 to 11
—

Decimal places from 0 to 11. Default 5.

eodtrue or false—

When true, return the closed session instead of the live bar. Default false.

figitext—

FIGI for one instrument. Twelve Data limits this parameter to Ultra and Enterprise plans.

isintext—

ISIN for one instrument. Returning ISIN values in the body needs the ISIN add-on.

typeone of
American Depositary Receipt, Bond, Bond Fund, Closed-end Fund, Common Stock, Depositary Receipt, Digital Currency, ETF, Exchange-Traded Note, Global Depositary Receipt, Limited Partnership, Mutual Fund, Physical Currency, Preferred Stock, REIT, Right, Structured Product, Trust, Unit, Warrant
—

Asset class, used to disambiguate a ticker.

cusiptext—

CUSIP for one instrument. Returning CUSIP values in the body needs the CUSIP add-on.

symboltext—

Ticker. One instrument, such as AAPL, EUR/USD, or BTC/USD. A comma-separated list is not accepted.

countrytext—

Country name or ISO code, such as United States or US.

preposttrue or false—

Include US equity pre-market and post-market data. Twelve Data limits this to Pro and Venture plans and above, at 1min, 5min, 15min, and 30min. Default false.

exchangetext—

Exchange name, such as NASDAQ.

intervalone of
1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 8h, 1day, 1week, 1month
—

Bar size. Defaults to 1day when omitted.

mic_codetext—

ISO 10383 MIC, such as XNAS.

timezonetext—

Exchange, UTC, or an IANA name. Ignored for 1day, 1week, and 1month. Default Exchange.

rolling_periodnumber
1 to 168
—

Hours for the crypto rolling change. Integer from 1 to 168. Default 24.

volume_time_periodnumber
1 to 10000
—

Periods used for average volume. The published default is 9. No maximum is published; values above 10000 are refused here.

Same request in code

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/prices/quote",
    "input": {
      "symbol": "<symbol>"
    }
  }'

Frequently asked questions

How much does Twelve Data · Quote cost?

Up to $0.17459 per run. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use Twelve Data · Quote through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "twelvedata/prices/quote"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use Twelve Data · Quote?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use Twelve Data · Quote?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.