How do I install TD Ameritrade API to computer?
Show older comments
I don't understand the following code. I downloaded the functions to the Matlab path. I have an API key from TD ameritrade. Nothing works. I was able to set up an API in R for quandl. That seemed more straight-forward. Everything on Youtube is for Python, not Matlab. Thanks for any help.
## Installation
Download this repo and a dependency, and add them to your MATLAB path:
```bash
git clone https://github.com/sg-s/srinivas.gs_mtools/
When I run the following code, I get the following error:
T = TDAmeritrade;
T.set('APIKey','XXXNotForPublicXXX');
The specified superclass 'Unhashable' contains a parse error, cannot be found on MATLAB's search
path, or is shadowed by another file with the same name. .....
3 Comments
James
on 10 Dec 2022
You should probably reach out for help from the contributors on the GitHub page since they’ll probably have a better idea of how to fix this.
Steven Kroll
on 13 Dec 2022
Andy Doller
on 10 Mar 2023
I think you did not add the mtools folder to your path.
Answers (1)
Image Analyst
on 13 Dec 2022
0 votes
I didn't look at the github but there should be a collection of files, possibly some might go into subfolders. It seems to be looking for a class file called Unhashable.m and that is nowhere to be found in the current folder or anywhere on the search path. Search your file system for it. Do you have it? If not, you need to get it. If you have it, you need to click the "Set Path" button on the Home tab of the tool ribbon and click Add with subfolders to add your projects files to the search path.
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!