Skip to content

tradestation/sample-webapi-matlab

Repository files navigation

sample-webapi-matlab

This is a sample MATLAB script that follows the Authorization Code grant type. Here are some key features:

  • Automatically open TradeStation login screen in the MATLAB browser
  • Listen for authorization code to generate access token
  • Make a simple request to the TradeStation WebAPI
  • Deserialize data from JSON into MATLAB objects

Configuration

Modify your Key/Secret/BaseUrl:

APIKEY = '';
APISECRET = '';
BASEURL = 'https://sim.api.tradestation.com/v2/';

Supported BASEURL environments include:

How To Run

  • Copy tradestationwebapi.m and associated dependencies to your MATLAB Path
  • Execute tradestationwebapi in MATLAB

Contributing & Troubleshooting

If you can make this sample code easier to understand, please fork the repository and send a pull request. We will review the changes and merge as appropriate.

HTTPS in MATLAB

If you get a message about SSL problems, you will need to add the TradeStation WebAPI SSL certificates to your MATLAB approved certificate store. Take a look at these two resources:

If there are any problems, open an issue and we'll take a look! You can also give us feedback by e-mailing webapi@tradestation.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published