Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.93 KB

File metadata and controls

44 lines (29 loc) · 1.93 KB

Unofficial Tradestation API SDK for Python 3.10

BY CLONING THIS REPO YOU AGREE TO THESE TERMS.

Description

This module provides functionality for interfacing with the Tradestation API (V3) to access account information, market data, and trading functionalities. It is intended to be used for testing purposes and is not complete. No copyright infringement was intended; please contact the repository owner for any inquiries and/or complaints regarding this.

Using this module requires an account with Tradestation and with an active API key.

Dependencies

For auto login functionality:

Usage

Read the Official API documentaion for more information about authentication, response structures.. etc.

To use as a Jupyter Notebook:

  • Run all cells under 'Setup' and 'Authentication'
  • Call open_session and save the returned session info to a variable (you will need this often)
  • Complete authentication
  • Pass session info you saved to the desired API functions
    • Returns or streams response json

To use as a Python Script:

import ts.py
sesh = open_session()
get_bars(sesh, 'MSFT')

See main.py for an example script

For more detailed descriptions of how to use the module, see the notes included in TradestationAPI.ipynb

License

GNU GPLv3. Here.