Skip to main content

twelwdata


Twelwdata

Type: twelwdata • Category: flow

Description

Twelve Data provides access to over 100,000 financial symbols from various markets, including stocks, forex, cryptocurrencies, ETFs, and commodities. This allows you to obtain data from more than 250 exchanges worldwide.

Parameters

NameTypeDescriptionRequiredDefault
symbolstringExample NVDAno
date_fromdateExample dateno"2025-01-01"
date_todateExample dateno"2099-01-01"
intervalstringIntervalno"1h"
typestringType of the data to fetchno"price"
exchangestringExchange, Example NASDAQno
countrystringCountry, Example USAno
periodstringPeriod for financial datano"annual"
outputsizenumberOutput sizeno100
expiration_datedateExpiration date for optionsno
option_idstringOption IDno
sidestringOption sideno

Help

Overview

This worker retrieves a wide range of financial data from Twelve Data based on the parameters supplied at runtime. It dynamically builds the request, selects the appropriate API endpoint (price series, company profile, dividends, earnings, etc.), and returns the raw JSON response. The design allows callers to request only the data they need while keeping the implementation concise and adaptable.

Input Parameters

NameTypeDefaultRequiredDescription
symbolstringYesTicker symbol to query (e.g., NVDA).
date_fromdate2025-01-01NoStart date for time‑series or period‑based queries.
date_todate2099-01-01NoEnd date for time‑series or period‑based queries.
intervalstring1hNoGranularity of the time‑series data (e.g., 1h, 1d).
typestringpriceNoCategory of data to fetch (price, profile, dividends, splits, earnings, earnings_calendar, ipo_calendar, statistics, insider_transactions, income_statement, balance_sheet, cash_flow, options_expiration, …).
exchangestringNoExchange where the symbol is listed (e.g., NASDAQ).
countrystringNoCountry of the exchange (e.g., USA).
periodstringannualNoReporting period for financial statements (annual, quarterly).
outputsizenumber100NoMaximum number of records to return for list‑type endpoints.
expiration_datedateNoExpiration date for option‑related queries.
option_idstringNoIdentifier of a specific option contract.
sidestringNoOption side (call or put).