Giter Site home page Giter Site logo

qpanfinance / ex_ai-algo_trading Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danishjeetsingh/algo_trading

0.0 0.0 0.0 27 KB

Algorithmic Trading using GPT and Alpaca based on the Inverse Cramer Strategy

Python 50.54% Jupyter Notebook 49.46%

ex_ai-algo_trading's Introduction

Algorithmic Trading using GPT and Alpaca

Stock trading bot built on Inverse Cramer Strategy

How does it work?

  • Get last 50 tweets from jim cramer's Twitter handle
  • Feed it to a GPT model and ask for stock tickers to sell
  • Buy the first stock with 90% of your buying power through Alpaca

How to use this bot?

Setup a cron job to run trading.py

crontab -e

the below command ensures the code runs at 9 AM from M-F (remember to change the time incase your machine is not in EST)

0 9 * * 1-5 python3 trading.py

stuff to do

  • the twitter endpoint doesn't work anymore, switch to scraping
  • send the log messages to a discord server as well.

helpful tips

  • you can modify the logging in trading.py to be a QueueHandler and create a thread worker to capture those
  • which later on can be captured by the discord bot in bot.py to send the messages to your channel.

Helpful resources

ex_ai-algo_trading's People

Contributors

danishjeetsingh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.