Questions tagged [ameritrade]

TD Ameritrade is a broker for trading financial assets. This tag is for questions related to usage of their API.

Documentation


The non-commercial API has a limit of 120 requests per minute. Users will need a TD Ameritrade account as well as a separate TD Ameritrade Developer account to gain access to the API.

21 questions
7
votes
4 answers

A third party application may be attempting to make unauthorized access to your account - Ameritrade

I was trying to do some simple authorization for ameritrade's developer platform. I was attempting. According to the platform, the Endpoint I need to access is is: …
Fallenreaper
  • 10,222
  • 12
  • 66
  • 129
3
votes
1 answer

Can I use TD Ameritrade API's for creating an app for commercial usage

I recently found out we are allowed to use TD's API if we have an account with them. However I am not entirely sure if we're allowed to use it to create our own applications that we want to sell on the market. I went to their site: …
Brogrammer
  • 191
  • 1
  • 1
  • 10
2
votes
2 answers

Td Ameritrade download historical data with endDate startDate

I can't figure out how to get data for a given day. Using the annual line in my code, I know the milisecond value of give date. 1612159200000.00 AAPL 2/1/2021 6:00 1612418400000.00 AAPL 2/4/2021 6:00 But putting these value in the code…
HongNg
  • 53
  • 5
2
votes
1 answer

TD Ameritrade API Multiple Quote Subscriptions

Using the TD Ameritrade API Page, my C# app successfully logs in and subscribes to get a data stream for several symbols using a small field list. Now I add a second subscription with a different field list that might contain some of the same…
John Kurtz
  • 775
  • 8
  • 16
2
votes
5 answers

TD Ameritrade .NET

Has anyone gotten the TD Ameritrade streaming API to work with C#? They have some documentation and JavaScript examples here https://developer.tdameritrade.com/content/streaming-data. I have gotten the JavaScript examples to work on https://js.do/,…
user2062445
  • 81
  • 2
  • 6
1
vote
1 answer

I keep receiving an API error when requesting from ameritrade api?

I am trying to pull Google price data from the TD Ameritrade API. It worked in the base form of anaconda but I created a new virtual environment and now it isn't working. It keeps returning this error. I have attempted "verify=false" and that does…
1
vote
2 answers

Python Get Account using tda-api returns ValueError

I have the following api call to tda-api orders = client.get_account(config.account_id,fields=['positions']) Gives the Error: File "/opt/anaconda3/lib/python3.7/site-packages/tda/client/base.py", line 361, in get_account fields =…
1
vote
1 answer

cannot run thinkorswim behind corporate firewall: "unable to find valid certification path to requested target"

In windows, when I install and run thinkorswim inside company network (with its own self-signed ssl cert), it cannot connect via https to tdameritrade's server. How do I update tos's java runtime with the self-signed cert?
kai zhu
  • 149
  • 1
  • 7
1
vote
2 answers

Does anyone know how to get the hours for markets such as the NYSE on TD Ameritrade API?

I'm trying to request hour information from the TD Ameritrade API. Is there any way I could get the hours for the New York Stock Exchange? Here is the link to the API: https://developer.tdameritrade.com/
1
vote
1 answer

TD Ameritrade API :: Unable to connect Firefox can’t establish a connection to the server at 127.0.0.1

Using documentation from https://pypi.org/project/td-ameritrade-python-api/ I'm trying to get started with the TD Ameritrade API in Python... The problem I am having is with authentication of my account which is done via this Url: (note: client_id…
PiE
  • 335
  • 1
  • 7
  • 24
1
vote
1 answer

Td Ameritrade Api returning empty json reponse for historical API call

I am trying to create a function that returns a days historical data for a certain symbol in python and have run across an error where whenever I call this function it return to me: [{'candles': [], 'symbol': 'snap', 'empty': True}, {'candles': [],…
Santa
  • 158
  • 1
  • 9
0
votes
0 answers

Celery worker not handling streaming data properly

I am running a streaming task inside a celery worker which is giving me 1 minute candle stick data and then I'm converting that 1 minute incoming data to 5 minute data but this task always starts giving some wierd output after sometime but works…
0
votes
1 answer

How to get the price history of stock index in TD Ameritrade API such as SPX, DJX, NDX, RUT, etc.?

I have tried to get price history of stock market index such as S&P 500 use SPX as symbol, but the server return empty data. I can get all the normal stock's price history successfully such as AAPL, TSLA, etc. I am using td-ameritrade-python-api…
Kevin Lee
  • 1
  • 1
0
votes
1 answer

Ameritrade API to get account value

Is there an API call to Ameritrade services to pull account value? I don't need other data, just how much is in my account (total). What is the URL and how do I authenticate?
Tioman Island
  • 91
  • 1
  • 1
  • 5
0
votes
1 answer

How to combine frequency and period to get default TOS timeframes?

I am trying to get the following timeframes by combining Period Type, Period, Frequency Type, and Frequency using TDA-API in python: 3Y:W 1Y:1D 180D:4H 20D:1H 10D:30M 10D:15M 5D:5M 1D:1M for example I made this for…
Henul
  • 192
  • 1
  • 10
1
2