coffincw / Discord-Stock-Exchange

Virtual stock exchange bot to use virtual currency in the real world market

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Stock Exchange (DSE)

Virtual stock exchange bot to use virtual currency in the real world market

Bot Prefix: Start a command with % to use the bot (ex. %stock AAPL)

Add to your server

Invite DSE to server

Commands

  • stock [ticker]
    • Display stock price, price change, percent change
  • rs [ticker]
    • Displays the stock price, price change, percent change in real time (updates every minute for 5 minutes)
  • gainers
    • Displays the top 10 stock gainers of the day
  • losers
    • Displays the top 10 stock losers of the day
  • secp
    • Displays today's sector performance (updated daily)
  • stockcandle [ticker timeframe]
    • Displays the stock's candle data over specified timeframe.
      • Possible timeframes (multiples can be specified ex. 5D): D, W, M, Y, MAX
  • stockline [ticker timeframe]
    • Displays the stock's data in a line graph over specified timeframe.
      • Possible timeframes (multiples can be specified ex. 5D): D, W, M, Y, MAX

How to contribute

  1. Fork repo
  2. Install required dependencies
  3. Write additional implementations
  4. Create a bot on the Discord Developer Portal
  5. Add your bot's token to your computer's environmental variables
    • key: 'DSE_BOT_TOKEN'
    • value: 'YOUR BOT TOKEN'
  6. Invite your bot to a private test server
  7. Test added bot commands
  8. Once working, create a pull request

Dependencies

To install the dependencies, in the root folder, run: pip install -r requirements.txt

About

Virtual stock exchange bot to use virtual currency in the real world market

License:MIT License


Languages

Language:Python 100.0%