Skip to content

dongfeiwww/ec2-tda-autobot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDA-Autobot

TDA-Autobot is an automated fire and forget trading mechanism utilizing Alex Golec's(Author) tda-api wrapper, Tradingview webhook alerts, and AWS EC2 for cloud hosting.

NEW!!! Automate creating your EC2 Instance to host TDA-Autobot in the cloud with Market Maker Lite's AutoEC2 @ https://github.com/MarketMakerLite/AWS

The code itself is universal in the fact that it has no idea what ticker, time frame of chart, or strategy is being used in Tradingview to issue the alert. Rather, its purpose is to take any incoming alert and place an order to TD-Ameritrade. All this via a serverless (cloud) configuration.

To perform this operation, the code runs the following processes:

  • Authenticates with TD-Ameritrade API.
  • Establishes routes and listens for an incoming POST request (Tradingview Webhook).
  • Runs functions and filtering based on details of webhook.
  • Creates order builder spec.
  • Places order through API.

Requires:

Test Webhook with Insomnia Rest API Client https://insomnia.rest/download

The webhook message format can be found in the trade.py file for a simple copy and paste to your Tradingview alert body.

I utilized help from several places and only feel it fair to give reference to the information i consumed. So here is a list of useful references:

Mr. Baker @ MarketMakerLite :

https://marketmakerlite.com (coming soon!)

https://docs.marketmakerlite.com

https://github.com/MarketMakerLite

https://discord.com/channels/837528551028817930/851679862350544926

To Baker and Psslonaki Thank you very much for the help and support!!

Alex Golec tda-api wrapper :

https://github.com/alexgolec/tda-api.git

https://tda-api.readthedocs.io/en/latest/index.html

https://discord.com/invite/Ddha8cm6dx

Parttimelarry :

https://www.github.com/hackingthemarkets

YouTube Tutorial Video for this repo: https://www.youtube.com/watch?v=-wT9h9Nc9sk

YouTube Channel (for TD Ameritrade API): https://youtube.com/parttimelarry

LICENSE :

"""-------------------------------------------------------------------------------------------------------------------- Copyright 2022 Kyle Jorgensen

Licensed under the Apache License, Version 2.0

THIS CODE IS PROVIDED AS IS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND

This file is part of the Open Source Library (www.github.com/KJJorgensen) --------------------------------------------------------------------------------------------------------------------"""

About

TDA-Autobot is a universal Options Bot for the TD Ameritrade API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%