Skip to content

Discord bot created with D++/DPP. Can fetch equity data and visualize it.

Notifications You must be signed in to change notification settings

EtoileScintillante/equity-bot-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

equity-bot-discord

macOS Build Status
Discord bot written in C++ with the D++/DPP library.
It can fetch equity (stock/future/index/crypto) data and visualize it.
All data is fetched from Yahoo Finance.
Important to note is that data may be delayed.

Slash Commands (so far)

/latestprice

  • Fetches latest price data
  • Input: equity symbol

latest price example

/metrics

  • Fetches equity metrics
  • Input: equity symbol

metrics example

/movements

  • Fetches price data and lists the top 5 biggest gains and losses in terms of percentage change
  • Input: equity symbol, period (e.g. 6 months, 2 weeks, etc.)

movements example

/majorindices

  • Fetches latest price data for certain major indices based on the given region
    and optionally adds a short description (one sentence) about the indices
  • Input: region (US/EU/Asia), description (yes/no)

indices US example

/industries

  • Fetches latest price info for major companies of a certain industry
  • Input: industry (e.g. Automotive, Technology, Oil and Gas, etc.)

industries example

/commodities

  • Fetches latest price data for different commodities, such as Crude Oil and Gold

commodities example

/currencies

  • Fetches latest currency rates and US Dollar index

currencies example

/crypto

  • Fetches latest price data for the 5 biggest cryptocurrencies (based on market capitalization)

crypto example

/pricegraph

  • Fetches price data and plots the open and/or close prices
  • Input: equity symbol, period (e.g. 6 months, 2 weeks, etc.), mode (only open/only close/both)

price graph example

/candlestick

  • Fetches OHLC data and creates a candlestick chart, optionally with volumes
  • Input: equity symbol, period (e.g. 6 months, 2 weeks, etc.), volume (yes/no)

candlestick example

Building and Running the Bot (macOS)

Prerequisites

  • CMake (version 3.5 or higher)
  • C++ Compiler with C++17 support
  • Git
  • Discord Bot Token (add this to a .config file)

Instructions

  1. Clone this Repository

    git clone https://github.com/EtoileScintillante/equity-bot-discord.git
    cd equity-bot-discord
  2. Build the Bot

    mkdir build
    cd build
    cmake ..
    cmake --build .
  3. Run the Bot

    ./equity-bot

About

Discord bot created with D++/DPP. Can fetch equity data and visualize it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published