The below guides offer step by step instructions for using TDAmeritrade's authorization process, how to setup your own personal consumer key or troubleshoot any problems.
For xlq to work with TDAmeritrade market data provided with your account, you need to authorize it. If you are not using your own personal consumer key (see 'configure personal consumer key' below, you need to ensure 'use
personal consumer key' is blank, and display the signin window by clicking the ... button in
secure login, or clicking 'open signin windows, or pressing Alt-Ctrl-Shift-T
Doing so grants access for 90 days, and you should renew it again before it expires to avoid disruption.
This will open a browser window allowing you to login to your TDAmeritrade account. Enter your User ID, password, click Login and follow instructions for any 2-step security questions
You will then be asked to Allow xlq access. xlq only accesses market data, and does not place trades, display balances or move money as is shown by TDAmeritrade.
Once Allow is clicked and authorization completed, a message is displayed. Clicking OK will automatically close the windows. xlq will now connect automatically and return data based on the permissions granted.
By default xlq is configured to work with TDAmeritrade with multiple users, but it is possible to request your own consumer key providing extra advantages including added security (only managed by you, working only with your account) and control (any limits apply to you and not as a group). A TDAmeritrade authorization will only return data to 1 computer at a time.
If you have not already done so you would need to register at
Click Register, and enter your user details, i.e.
first name, last name, user name (best use an 8 character name as it refuses if it contains spaces, is too long or too short),
your email address (if using with your TDAmeritrade account it needs to be the same email as
associated with your account. If you plan to open an account later, or if it is for delayed data, another email may be used).
Accept the API Developer License agreement, and enter the characters shown in the image to confirm that you are not a robot,
then click Create new account.
Once your developer account is setup you may add an application by selecting 'my apps' then 'Add a new App'.
Give your App a name (no more than 15 characters). This is the name that will be referenced when you sign into TDAmeritrade to authorize its use. Then complete the other fields.
Once added, approval is usually immediate, but it will indicate 'approved' once active.
You will then need to select your app and choose edit, and specify the callback URL which needs to be https://www.qmatix.com/OAuth2.php. Once completed, selecting 'Details' you would see
something similar to
Then select 'Keys' and note your consumer key, which you will need to enter into xlq preferences
From the xlq menu, choose preferences, then select data source specific, TDAmeritrade and enter the consumer key, or copy / paste it as it needs to be identical. Once entered the value is encrypted and only the first 5 characters are displayed. If you change it, you would need to re-enter it entirely. Once entered click Apply which will remove any prior authentication
You may then signin to authorize by clicking the ... button in
secure login, or clicking 'open signin windows, or pressing Alt-Ctrl-Shift-T
Once allowed, all connections will be via your personal consumer keys authorization.
xlq uses built in windows Internet Explorer / Edge web browsing to login and authorize with TDAmeritrade. A version compatibility setting is required to be set in the windows registry and is done automatically.
If this setting is not present TDA login will fail with a script error as below, and is likely due to your security
software blocking the registry update and you would need to enter it manually.
To do so, run regedit and browse to
Add a new DWORD 32 bit value called xlqeng1.exe,then modify the value, setting it to decimal 11001
You may then restart xlq and signin.
29 June 2020
XLQ 6.7 released
- Updated workbook initialization
- Supports New TDAmeritrade interface.
- New TDAmeritrade
- using personal consumer key.
- around 40 new formulae.
- support for real-time futures and currency.
- change streaming speeds.
- also snapshot data. .
- XLQ2 Source
- optimized processing.
- Yearly earnings data now also available in addition to quarterly.
- Historic data included for
- United Kingdom
- Norgate Data - partial day snapshots during the current market day for Australia.
- Updated Yahoo processing.
- More. >>
Pleased with the service and support
or feel extra has been earned?
Your acknowledgement is appreciated.
It is so uncommon in this day and age to receive top-level, human support and I appreciate that immensely. The quality, breadth and utility of your product is incredible, but even more impressive is the level of support you provided to me, just one individual customer. You may quote me on that. Thank you.
Wow, you did a lot of work on this version. New interface and other things as well. I must give you credit for being the most responsive software engineer that I've ever encountered. Every question that I've sent you over the many years (since 2003!!!) has been answered quickly and professionally. I just wanted to let you know that it is appreciated.
I have to say Leo that the last two versions have made some tremendous improvements to what has been for years an outstanding application. Thank you for your continued efforts.
Just to let you know that, the new version works much better & faster than the older one. I like it a lot, fantastic job you did!!!
Many thanks indeed for your clear and very rapid reply. I am not used to this type of quality service - I thought it went out of fashion years ago !!
In only 40 some days XLQ has helped me with a number of research projects I couldn't possibly have done without it and I'm now using it to help manage and track current trades and to alert me to potential new trades.
I just wanted to take a moment and thank you for creating XLQ. I use it regularly for scanning/monitoring securities in Excel 2007. I have programmed in trailing stops for securities I own and numerous techniques using indicators for securities on my watch list. The combination of Excel 2007 and XLQ has opened up nearly an unlimited capability that is only constrained by my imagination.
Thank you for the amazing package -- I use it daily and it's ridiculously useful! Others (.....) have added some of the features you have, but none of them even comes close to matching what you've built.
Your product is fantastic, amazing, and really strong. It has real enabling capability. Thank you for putting this into the market!
You have an exceptional customer service, you have always answered my questions, I thank you for that, made it really easy to use this software, will be your long term customer. Thanks.
I was halfway resigned to have to program something like this myself. Only it would have taken me forever, and I couldn't have done it half as well. Thanks!
I also want to thank you for making the XLQ program. It is something that is very useful and incredible helpful. Like it was made for my needs.
I have already modified your demo sheet to fit my needs. Your program allows me to turn my excel spreadsheet into a total information center that updates automatically. It's elegant.
First, I want to say that your program is probably the finest piece of work I have ever seen. The depth is simply amazing. Congratulations and thanks.
Thanx, Leo. You're a great sport. By the way, partially because of the application of xlq in my screen, I have passed 30% up in the market this year!!!!
This is a wonderful product -- simple to use and just plain useful!
I want to say you have created THE ULTIMATE data interface software for traders like me who prefer to use Excel for everything. Thanks a bunch.
I just wanted to say, that I very much like your xlq package. I have tried many similar products and this is by far the best I have come across. Simple, fuss-free setup, integrates well with Excel, and has its own stand alone interface to track your portfolio throughout the day. Since I am from Europe, and trade US, European and Japanese securities, the ability to use a variety of feeds simultaneously and transparently is particularly valuable to me.
I really appreciate your quick responses. And your program is terrific. The Plus version adds a lot with it‘s AAII interface. I’ll definitely register it since in the last week it has become an indispensable part of my stock analysis.
I found XLQ yesterday afternoon – and I am blown away by how useful it is. You really need to market this thing because it is AWESOME!!!
Your explanation was very good. I understand now and find it very useful. If you always reply so quickly to questions, I will have to believe that you supply the best and fastest support of any software company.
I have “dabbled” for several years creating many of the things you present in this great program. I first began using the “*.iqy” external query (update times horrendous), then Excel VBA and lately attempting to learn “C” or “C++” in order to have smoother, faster updates as well as a great appearing “front end”. Your program certainly is, by far, the leader and has the greater edge over any I have seen, or tried to accomplish. Thank you for such a great program.
You are a very special person to reply so quickly and I want to thank you again. I enjoy your program. It gives me everything I need, and I know there is so much more functionality that I'm not even exploiting.
I love your program. XLQ combined with the power of Excel brings limitless possibilities to manipulate data for better trading. I recommend it to everyone I know interested in trading.
Thanks for such a great program. I have no programming experience and was trying to find a way to do just what you have done. Only you did much more. It’s fantastic and reasonably priced too!
Thank you so much for your help and your phenomenal programming. XLQ is awesome.
I use your XLQ product all the time. Some of the best money I've ever spent on software.
First, a thank you for the excellent and useful adjunct to EXCEL. I seem to discover a new use every day – and I’m sure I haven’t even scratched the surface to utilize XLQ’s full potential. The new version is really great.
First let me say that I feel XLQ is terrific. I really appreciate the versatility you have made possible with this package. I have set up a few worksheets and find it easy to learn and use with the aid of the included demo sheets. This application has the potential in my opinion to be unmatched in power, efficiency and productivity.
Your software is on its way to becoming the only window that I need to the market’s numbers. With the ability to arrange thing EXACTLY the way I want them, and the use of conditional formatting to trigger alarms and display changes to suit my needs, I am gradually replacing all of the other market tools I’ve been using. I can’t be a more enthusiastic supporter of what you are doing. Thanks.
I'm wowed by your software!! I used to enter data in my spreadsheet for two hours for each update, and therefore only did it once or twice a week. Now I do it with the close each day - in about 30 seconds!!! And I've added some data points to help with my analysis that I just could not manage to maintain before. Thanks again for a great program, a great deal, and great support!!!!!
Your software is great. I'm hooked on the info I can generate for stock purchasing and selling using your program. In two weeks I've become an XLQ junkie.
Please let me tell you how much I have come to depend on XLQ in a short period. This is a great product!! You have made my job significantly more streamlined, and my tasks simpler and more elegant. Many, many thanks!
I have been evaluating XLQ for the past few weeks and am thoroughly impressed with the product. It is versatile, easy to use, accurate and very intuitive. It is a real bargain compared to competitive products plus it runs right from within Excel. Based on this I just entered my purchase order.
I ADORE your program. It has really helped me to learn about how the markets work, and building my own system indicator by indicator is the best way to learn.
Leo: count me as a satisfied customer. I gave it a good workout for a month, decided to buy it when it saved me 5 hours of administration the first week, and helped me do some studies I had been postponing for months due to slow data retrieval. Your product is smooth, fast and elegant with a very clean presentation. Well done!
The more I work with XLQ, the more I like it. It is fast! And so rich... I like it so much I have decided to adopt it as my #1 tool for the long term.
Thanks very much for writing XLQ - I like it very much as it gives me the opportunity to manipulate data as I want without a very steep learning curve.
I just downloaded a trial of XLQ and have been "playing" with it for hours. I am so impressed. I wish I would have known about your program years ago.
I just purchased your software and think it is the next best thing since the spreadsheet.
Thanks for the best (and least complicated) investing software out there!!
Your software is simply brilliant, for the last week that I have been trying it, I have been impressed no end.
Thanks, Xlq is a great piece of software, its actually saving me a heap of time and time is the precious commodity in these hectic days.
The XLQ interface with Excel is excellent. I have been waiting for this capability for years.
Please accept my thanks for your wonderful product - it is a pleasure to use.
Your software is just what I have needed. It provides me with the capability to customize data and construct charts which give me the views I like - not just what someone thinks I would like.
Firstly, let me say that the philosophy and idea behind XLQ is exactly what I am looking for.
The more I use XLQ the more I appreciate what can be done with it.
Just like to say, excellent work. A potentially good bit of software for me.
I love your product so far. ... Thank you for making such product available.
Thanks for the Tip. You know, your program is really super.
Great software! Simple, elegant, well-thought-out and fast.
I am always finding new ways to use your program in my investment / speculative Market endeavors.
Thanks for such a wonderful product. It certainly does handle my most precious need which is to monitor the market realtime..
It is a pleasure doing business with such a responsive person who obviously understands the value of good customer service. I have just registered and intend to make good use of this program.
Your fast and thorough answer is more than what I expected. Your service is awesome and your product is very stable. Keep up with your good work. Sincerely appreciated :)
Just a note to let you know that I really like you software. It's a wonderful interface that has been of great utility to me.