Skip to content

The bot is ideal for traders looking to reduce the amount of time spent on researching and analyzing the markets, as it can quickly scan for and identify the most profitable trades.

Notifications You must be signed in to change notification settings

dearvn/bot_options

Repository files navigation

History

06/20/2023

Alt text

bot_options

The bot is ideal for traders looking to reduce the amount of time spent on researching and analyzing the markets, as it can quickly scan for and identify the most profitable trades.

Cost

It is cheap to get a bot trading options automatically

A VPS and a domain

Features

  1. Monitoring OPTIONS price of SPY, QQQ
  2. View History to analysys new logci trading
  3. Auto or manually trading
  4. Send SMS to notice entry order

Technologies

  1. Python
  2. Docker
  3. Laravel
  4. Mongodb
  5. Pusher
  6. Twillio
  7. TD Ameritrade

UI frontend

  1. Setting logic

Alt text

  1. SPY price

Alt text

  1. Orders

Alt text

Everyday, can entry 2 orders and gain profit at leat 40%.

Cost to set up an options bot: a vps

My logic is simple and easy to auto trading on TDA.

Buy to Open Call Strike $404 Expiration 3/7   ...... + $500

to lock

Sell to Open Call Strike $405 Expiration 3/7


==============================================================

Buy to Open Put Strike $400 Expiration 3/7 ..... $300

to Lock

Sell to Open Put Strike $399 Expiration 3/7


==============================================================

Buy to Open Put Strike $402 Expiration 3/8 (Market) @ 1.00
Set Stop Loss 0.80

Lock when Option $ = 1.80

Sell to Open Put Strike $401 Expiration 3/8 (Market)

Install

Backend

  1. Get refresh token from TD Ameritrade ref https://www.youtube.com/watch?v=aT1nB-vMqdE
  2. Update params in env.env file:
  TDAMERITRADE_ACCOUNT_ID=
  
  TDAMERITRADE_CLIENT_ID=
  
  TDAMERITRADE_REFRESH_TOKEN=
  1. Update refresh_token in /app/worker/token.pickle too:
{"creation_timestamp": 1684423154, "token": {"access_token": "xxxxx", "refresh_token": "", "scope": "PlaceTrades AccountAccess MoveMoney", "expires_in": 1800, "refresh_token_expires_in": 7776000, "token_type": "Bearer", "expires_at": 1684424954}}
  1. Go to backend folder run docker
docker-compose build

docker-compose up -d

docker exec -i -t stock_app_1  /bin/bash

nohup python manage.py runserver 0.0.0.0:8000

Frontend

Contact donald.nguyen.it@gmail.com if you want to get one

About

The bot is ideal for traders looking to reduce the amount of time spent on researching and analyzing the markets, as it can quickly scan for and identify the most profitable trades.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages