Git Product home page Git Product logo

ta-stock-system-bot's Introduction

TA-Stock-System-Bot

Visits Badge

A open source discord bot for finance.

Set Up

First of all you need to download the main file, then you have to enter the following API tokens in the beginning of the main file directly after the dependencies:

IMGUR_CLIENT_ID = 'ENTER ID HERE' # Get the Imgur client_id here: https://apidocs.imgur.com/#intro
ALPHA_VANTAGE_KEY = 'ENTER KEY HERE' # Get the API key here: https://www.alphavantage.co/support/#api-key
NYT_KEY = 'ENTER KEY HERE' # Get your New York Times API key here: https://developer.nytimes.com/get-started
FMP_API_KEY = 'ENTER KEY HERE' # Get the Financial Modeling Prep API key here: https://financialmodelingprep.com/developer/docs
MBOUM_KEY = 'ENTER KEY HERE' # Get your MBOUM API key here: https://mboum.com/api/welcome
DISCORD_BOT_TOKEN = 'ENTER TOKEN HERE' # Get your Discord Bot token here: https://discord.com/developers

NOTE: You don't need to pay for any of those keys if you choose the free plan

Commands

The bot has the following discord commands:

  • ?help
  • ? + Ticker -> Stock Chart going back to 2010.01.10, ex. ?aapl
  • ? + Ticker + fr + date -> Stock Chart going back to the selected date, ex. ?aapl fr 2021.03.05
  • ? + Ticker + backtest + sma/ema + Number (+ +s) -> Backtest the price crossing the sma/ema (+s adds shorting), ex. ?aapl backtest sma 10 +s
  • ?market -> Shows an overview of the Global Markets
  • ? + Ticker + senator -> Transactions by senators on the stock, ex. ?aapl senator
  • ? + Ticker + insider -> Insider activity on the stock, ex. ?aapl insider
  • ?news -> Delivers news from the business section of the NYT
  • ?insider -> Shows insider trades over 1 mil USD sorted by value
  • ?insider recent -> Shows insider trades over 1 mil USD sorted by filling date
  • ?etf sectors -> Show ETF sector data
  • ?option + Contract -> Gets information of the option contract, ex. ?option PYPL210820P00280000

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.