Questions tagged [twelvedata]

For questions related to HTTP/websocket API, client libraries of twelvedata.com service that provides stocks, ctypto, forex, indicies and ETFs realtime data

Twelve Data is a cloud financial data provider. Data might be sourced via API in JSON & CSV formats or streamed in real-time via WebSocket. Over 25+ years of historical data. Full support of the stock, forex, crypto, ETF, indices, and fundamentals data. All data is processable with 100+ technical indicators. SDKs and spreadsheet add-ins to access all API endpoints.

10 questions
2
votes
2 answers

Django - How to process JSON response from TwelveData API in Template?

In a hobby project, I am using TwelveData API to receive Time Series Data. I am using JSON format response and able to check each data (example: open, close, high, and etc.) from Python side, but the problem arises when I try to show the data in a…
Shimul
  • 463
  • 2
  • 7
  • 33
2
votes
1 answer

ClientWebSocket "The remote party closed the WebSocket connection without completing the close handshake."

I am trying to implement a WebSocket, but every time I try to read it throws a "The remote party closed the WebSocket connection without completing the close handshake." error. This is my code: string url = "wss://ws.url.com/v1/func/func2"; var…
Eduard G
  • 443
  • 5
  • 21
1
vote
2 answers

Connect to a third party server (twelvedata) from my own express server through web socket connection string

I want to connect to the twelevedata server through its provided socket connection to receive information. import * as dotenv from 'dotenv' import WebSocket from 'ws'; import express from 'express' const app = express(); //setting up…
Abdullah Ch
  • 1,678
  • 1
  • 13
  • 31
1
vote
1 answer

Initate Socket connection with Twelvedata server in node js

import * as dotenv from 'dotenv' import WebSocket from 'ws'; //setting up env dotenv.config() // setting up the websocket const ws = new…
Abdullah Ch
  • 1,678
  • 1
  • 13
  • 31
0
votes
1 answer

How can i convert time to unix timestamp?

I have a twelvedata api, where i get my data to the lightweightchart. I convert the time to unix timestamp with getTime(), but the chart is still not working. Error: Uncaught Error: Value is null The code: var intervals = ['15min', '1day', '1week',…
0
votes
1 answer

Error in Python Flask execution in PythonAnywhere from TwelveData

I have to create working link via pythonanywhere. Below is my code to accept stock symbol and respond with the name and price. The below is my code. However, I'm getting the following error: Method Not Allowed The method is not allowed for the…
0
votes
0 answers

Why does changing the currency on my api call make the data retrieved not accurate?

I am trying to get an api to send me data in GBP instead of USD however when I tried the api sent over the wrong values. https://api.twelvedata.com/time_series?symbol=aapl&interval=1week&start_date=2021-03-01&outputsize=5000&apikey={TDKEY} this is…
64 bit
  • 33
  • 3
0
votes
1 answer

JSON Post R - Web scraping to a Dataframe in R

I'm trying to capture a data pull from the twelvedata.com webpage. I want to pull historical equity prices for several stocks with a long time frame. The instructions are located here: https://twelvedata.com/docs#complex-data This request requires…
DougC
  • 3
  • 3
0
votes
2 answers

how to display real time change in stock price in ionic app

I have a 3rd party api https://api.twelvedata.com/time_series?symbol=TEST_SYMBOL&interval=1day&apikey=YOUR_API_KEY I have displayed stock price list in the cards. Now I have to show the real time data of each card with each sec changes how do i do…