For the complete documentation index, see llms.txt. This page is also available as Markdown.

Twelve Data

Look up real-time and historical market data from Twelve Data — quotes, prices, and time series for stocks, forex, and crypto.

Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

Connector
Authentication

Twelve Data

API Key

Twelve Data

Connect to Twelve Data with an API key to look up real-time and historical market data for stocks, forex, and crypto.

Set up in Twelve Data

  1. Prepare the Twelve Data account or service that the workflow will access. Grant access to the required resources and operations.

  2. API Key: Your Twelve Data API key. Find it (or generate a new one) from your Twelve Data account dashboard.

Set up in StackAI

  1. Open Settings → Connections, add a connection, and select Twelve Data.

  2. Enter the credentials and connection details in the fields below.

  3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

Connection fields

StackAI field
Required
What to enter

API Key

Yes

Your Twelve Data API key. Find it (or generate a new one) from your Twelve Data account dashboard. Provider instructions.

Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

Use an action

  1. Add the required Twelve Data action to the workflow.

  2. Select a connection when the action requests one.

  3. Complete the required fields. Use the reference picker when a value comes from another workflow step.

  4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

Actions

Get Quote

Get a real-time quote for a stock, forex pair, or crypto symbol.

Inputs

Field
Type
Required
Description

Symbol

string

Yes

The ticker symbol to get a quote for.

Interval

select (string)

No

Time interval for the quote (leave unset for the default). Available values: 1min, 5min, 15min, 30min, 1h, 1day, 1week, 1month.

Exchange

string

No

Restrict the lookup to a specific exchange.

Outputs

Field
Type
Description

Quote

object

The full quote object returned by Twelve Data.

Symbol

string

The quoted symbol, for downstream nodes.

Name

string

Full name of the instrument.

Exchange

string

Exchange the instrument trades on.

Currency

string

Currency the quote is denominated in.

Datetime

string

Date/time the quote refers to.

Open

number

Opening price for the interval.

High

number

Highest price for the interval.

Low

number

Lowest price for the interval.

Close

number

Latest/closing price.

Volume

integer

Trading volume for the interval.

Previous Close

number

Previous interval's closing price.

Change

number

Absolute price change since previous close.

Percent Change

number

Percent price change since previous close.

Is Market Open

boolean

Whether the instrument's market is currently open.

Result Message

string

Human-readable result summary.

Get Price

Get the latest real-time price for a stock, forex pair, or crypto symbol.

Inputs

Field
Type
Required
Description

Symbol

string

Yes

The ticker symbol to get the latest price for.

Interval

select (string)

No

Time interval for the price lookup (optional, has no effect on the value returned). Available values: 1min, 5min, 15min, 30min, 1h, 1day, 1week, 1month.

Outputs

Field
Type
Description

Symbol

string

The symbol that was priced, for downstream nodes.

Price

number

The latest traded price.

Result Message

string

Human-readable result summary.

Get Time Series

Get historical OHLCV bars for a stock, forex pair, or crypto symbol.

Inputs

Field
Type
Required
Description

Symbol

string

Yes

The ticker symbol to get historical bars for.

Interval

select (string)

Yes

Bar size for the time series. Available values: 1min, 5min, 15min, 30min, 1h, 1day, 1week, 1month.

Start Date

string

No

Earliest bar to include (inclusive), leave unset for the most recent bars.

End Date

string

No

Latest bar to include (inclusive), leave unset for the most recent date.

Sort Order

select (string)

No

Sort bars oldest-first (ASC) or newest-first (DESC). Available values: Oldest first (ASC), Newest first (DESC).

Bar Count

integer

No

Number of bars to return (default 30, max 5000).

Outputs

Field
Type
Description

Time Series

object

The full time series object, including metadata and all bars.

Symbol

string

The symbol the series is for, for downstream nodes.

Interval

string

The bar interval used.

Bar Count

integer

Number of bars returned.

Result Message

string

Human-readable result summary.

Search for tradable symbols by company name, ticker, or ticker prefix.

Inputs

Field
Type
Required
Description

Search Query

string

Yes

Company name, ticker, or ticker prefix to search for.

Instrument Type

string

No

Filter results to a specific instrument type.

Country

string

No

Filter results to a specific country.

Max Results

integer

No

Maximum number of matches to return (default 30, max 120).

Outputs

Field
Type
Description

Results

object

The full search results object.

Query

string

The search query that was used, for downstream nodes.

Match Count

integer

Number of matches returned.

Result Message

string

Human-readable result summary.

Get Exchange Rate

Get the current exchange rate for a currency pair.

Inputs

Field
Type
Required
Description

Currency Pair

string

Yes

The currency pair to get the exchange rate for.

Interval

select (string)

No

Time interval for the rate lookup (optional, has minimal effect on the value returned). Available values: 1min, 5min, 15min, 30min, 1h, 1day, 1week, 1month.

Outputs

Field
Type
Description

Currency Pair

string

The currency pair that was quoted, for downstream nodes.

Rate

number

The current exchange rate.

Timestamp

integer

Unix timestamp the rate was quoted at.

Result Message

string

Human-readable result summary.

Important behavior

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.

Last updated

Was this helpful?