Skip to content

feature: stock command to pull stock ticker info #1757

Description

@tismailw

Description

Add a new .stock command to the utilities category that lets users look up basic stock information for a given ticker symbol (like MSFT, etc) directly in Discord. The command should then return an embed in discord showing the current price, daily % change, market cap, 52-week high/low, and a brief company description (maybe).

Reasoning

Members may want to check the latest price of a given stock and could use the discord bot to find the relevent information for them. It also add's a cool util to the discord bot.

Proposed Implementation

To pull the data, we could use yfinance as it's one of the most familiar finance library in the Python ecosystem and requires no API key. The tradeoff with this, is that it reverse engineers Yahoo Finance's internal endpoints rather than using an official API. If this is not preffered by the maintainers, we could use an official source of data, we can swap to Finnhub (free tier, 60 req/min, clean REST) or Polygon.io (free tier, delayed 15 min).

Even if we have to change this in the future, it would not impact the rest of the architecture since this only affects the source of data.

Additional Details

May require an api key, specifically the free tier

Would you like to implement this yourself?

  • I'd like to implement this feature myself
  • Anyone can implement this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: planningDiscussing detailstype: featureRelating to the functionality of the application.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions