Skip to content

al-gladkow/Unofficial-Tradestation-API-SDK-for-Python-3.10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The Unofficial Tradestation API V3 SDK for Python 3.10

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published