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

Cursor · Finance

How to Use Twelve Data latest price in Cursor

Returns one value: the current or most recently available trading price for an instrument. Use it for a price check or valuation when you do not need session statistics or historical bars.

Prompts to try with Twelve Data latest price in Cursor

Copy an example into Cursor, or ask in your own words.

Use Twelve Data latest price to fetch AAPL on NASDAQ and add the returned price to this project's internal watchlist.

Twelve Data latest priceCursor
Try asking
  • Use Twelve Data latest price to fetch BTC/USD and add a calculation to this project showing the value of a hypothetical 0.25 BTC holding.

  • Use Twelve Data latest price to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Twelve Data latest price and tell me what changed since last week.

  • Check Twelve Data latest price and summarize what you find in three bullet points.

How to set up Twelve Data latest price in Cursor

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

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to Cursor on the console's Agents & MCP page, or add this to .cursor/mcp.json (one project) or ~/.cursor/mcp.json (every project):

    {
      "mcpServers": {
        "spiral": { "url": "https://api.spiral.ai/mcp" }
      }
    }
  2. Sign in

    Open Cursor Settings › MCP, click Connect next to spiral, sign in to Spiral and click Authorize. No API key. Spiral then shows as connected, with its tools listed.

Use the Spiral skill

  1. Send Cursor 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 latest price

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

Then paste one of the prompts above: Cursor finds Twelve Data latest price on Spiral, shows the price and runs it.

Twelve Data latest price providers and prices

Spiral runs Twelve Data latest price through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
Twelve Data · Latest price
twelvedata/prices/latest

Settings you can ask for

Ask Cursor for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Dp0 to 11

Decimal places from 0 to 11. Default 5.

TypeAmerican Depositary Receipt, Bond, Bond Fund, Closed-end Fund, Common Stock, Depositary Receipt, Digital Currency, ETF and 12 more

Asset class, used to disambiguate a ticker.

Preposton or off

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.

Every API field of Twelve Data · Latest price is on its tool page: open its card above.

What can you do with Twelve Data latest price in Cursor?

Build an internal watchlist that shows AAPL, EUR/USD, or BTC/USD prices from Twelve Data. A coding agent can add a single-price display, a session summary, or a historical chart to the project's files.

Check an internal stock watchlist

Compare AAPL and MSFT using their latest prices, session snapshots, or recent historical closes. Calculate which moved more over the period represented by the retrieved data.

Monitor currency exposure

Use EUR/USD prices to estimate the dollar value of a euro-denominated business balance. Choose a latest reading, a session snapshot, or historical closes for a retrospective valuation.

Flag cryptocurrency price thresholds

Check whether BTC/USD crosses a chosen threshold using the latest price, a quote snapshot, or completed historical bars. Report which observation triggered the flag.

Value a hypothetical portfolio

Calculate the value of hypothetical AAPL, MSFT, and SPY positions using current prices or historical closes. Show each position's contribution and the observation period used.

Questions about Twelve Data latest price in Cursor

Can Cursor use Twelve Data latest price?

Yes. Add Spiral to Cursor as an MCP server, and Cursor can find and run Twelve Data latest price like any built-in tool.

How much does Twelve Data latest price cost in Cursor?

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

Do I need an Alexandria account to use Twelve Data latest price in Cursor?

No. Spiral runs Twelve Data latest price 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 latest price in Cursor?

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

Does Cursor wait while Twelve Data latest price runs?

Twelve Data latest price runs in the background. Cursor starts the run, checks on it and gives you the json when it's ready.

Does Twelve Data's US stock feed represent the whole market?

Its default real-time feed covers listed US equities, but the contributing venues represent approximately 5% of total US trading volume. OTC securities require separate licensing.

When is US end-of-day data available?

Twelve Data says US historical and end-of-day data becomes available after midnight Eastern Time on the next trading day following market close.

How much historical data does Twelve Data provide?

Daily equity history can extend to the first trading date, while intraday history typically spans months to years depending on the instrument. Historical requests return at most 5,000 data points each.

Why can Twelve Data prices differ from another chart?

Twelve Data derives intraday bars from tick-level data and says aggregation differences can produce different values across sources and brokers. Its default US real-time feed also represents approximately 5% of trading volume.

Can I redistribute Twelve Data prices to customers?

Twelve Data's terms require express authorization through redistribution rights or a separate written agreement for external display or redistribution. Receiving prices does not itself grant publication rights.

Get started

Start using Twelve Data latest price in Cursor

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

Paste this into Cursor:

Set up Cursor

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