Connect your data to Claude in 1 minute. No code needed Try it now

Connect Twelve Data to PostgreSQL

Send Twelve Data stocks, forex pairs, crypto currencies and 15 more data types to PostgreSQL on a schedule. Refresh as often as every 15 minutes.

capterra
star star star star star

4.9/5

PostgreSQL schema twelve_data
  • stocks
  • forex_pairs
  • crypto_currencies
  • funds
  • bonds
  • 13 more data types
Each Twelve Data data type lands in its own table. You pick the schema and table names.
Trusted by 200K+ users worldwide
Tradezella
Stanford
Webtoon
Getir
Stellar
Anker
ParentSquare
Bac 50
Benzinga
Matterport

How to connect Twelve Data and PostgreSQL

5 steps. You can preview the Twelve Data data in Coupler.io before anything reaches PostgreSQL.

Step 1 of 5

Connect Twelve Data

Enter your Twelve Data API key. You only do this once per account.

API key••••••••••••

Step 2 of 5

Choose what to export

Pick the Twelve Data data you want in PostgreSQL.

Show 10 more data types Show fewer data types

Step 3 of 5

Fine-tune the export

Optional settings for this Twelve Data export.

CountryNot setSpecify the country where the financial instrument is traded to filter results by geographic location.
ExchangeNot setSpecify the financial exchange where the instrument is traded to filter results by specific market.
SymbolNot setSpecify the ticker symbol of the financial instrument you want to retrieve data for.
IntervalNot setSpecify the time interval between consecutive data points in the time series data.

Step 4 of 5

Connect PostgreSQL

Enter your PostgreSQL connection details, then the schema and table for the Twelve Data data.

Hostdb.example.comHostname, IPv4, or IPv6 address of the server
Port5432Default is 5432
DatabaseanalyticsThe target database name
TablestocksCreated automatically on the first run
Show 3 more fields Show fewer fields
UsercouplerUser with CREATE and INSERT privileges
Password••••••••••••The database user's password
Schematwelve_dataCreated automatically if it doesn't exist

Step 5 of 5

Choose a write mode and schedule

Every run either replaces or appends the data in PostgreSQL. Run it as often as every 15 minutes.

Write mode

Each run deletes the existing rows in stocks and loads fresh Twelve Data data.

Get the most of Twelve Data to PostgreSQL integration

Gather data icon

Gather data

Export data from numerous apps and sources into a single destination. Blend data from different apps to get a single source of truth.
Understand data icon

Understand data

Preview, transform, sort, and filter data for better clarity in just a few clicks in the Coupler.io interface. Take your data analytics to the next level.
Automate data icon

Automate data

Access data that is always up to date by enabling the automatic data refresh on a schedule as often as every 15 minutes and using triggered automation.
Act on data icon

Act on data

Visualize your data by quickly connecting to data visualization and BI tools. Build insightful dashboards in a breeze and make better decisions.
Twelve Data to PostgreSQL questions

18 data types, including Stocks, Forex pairs, Crypto currencies, Funds and Bonds.

With your Twelve Data API key, entered once when you add the connection.

Yes, if the database user has CREATE privileges. Coupler.io creates the twelve_data schema and the stocks table on the first run.

Yes. Append adds new rows to stocks on each run, while Replace swaps in a fresh copy. With Append, add new Twelve Data columns to the table yourself before the next run.

On a schedule you choose, from monthly down to every 15 minutes, depending on your Coupler.io plan.

Yes. Add more sources to the same data flow, for example QuickBooks or Xero, and join or append them before the data reaches PostgreSQL.

High five for scrolling till the very end!
See you in the app!