How do I install TD Ameritrade API to computer?

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

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.
Thanks for the recommendation. I picked up a couple of books to better understand the software environment. I’ll also reach out to the contributors. Take care.
I think you did not add the mtools folder to your path.

Sign in to comment.

Answers (1)

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

Products

Release

R2021b

Asked:

on 2 Dec 2022

Commented:

on 10 Mar 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!