Code Monkey home page Code Monkey logo

Comments (3)

boboman-1 avatar boboman-1 commented on August 30, 2024

Started some work on this at boboman-1#1

from reddit-stock-trends.

boboman-1 avatar boboman-1 commented on August 30, 2024

Generate nice markdown output based on portfolios and yfinance data?

Pandas to the rescue

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_markdown.html

I rolled these handmade for github but you get idea

Scraper Latest

_ _ _
- - -

MyPennies

_ _ _
- - -

InterestingKeepWatch

_ _ _
- - -

Top3

Ticker # Mentions Full Name Industry Previous Close 5d Low 5d High 1d Change (%) 5d Change (%) 1mo Change (%)
1 ARBKF 2 Argo Blockchain plc Capital Markets 2.720000 1.490000 2.740000 36.68 61.90 70.00
2 TAKOF 2 Drone Delivery Canada Corp. Computer Hardware 1.650000 1.380000 2.010000 -2.08 13.79 133.71
3 GTLL 1 Global Technologies, Ltd. Conglomerates 0.022950 0.012500 0.035900 -12.07 20.79 2450.00

from reddit-stock-trends.

JakeCirino avatar JakeCirino commented on August 30, 2024

Portfolio Support

Users may want to do some due diligence and select a symbols to research. Give user a convenient way to incorporate and track tickers they are interested in within stocktrend utility. Tell the user when tickers they are tracking are added or removed from scrape_latest.

Implementation

In progress

Utilizing similar config pattern as main_utils, allow users to track specific tickers in groupings called portfolios. Persist in an .ini file. Use latest scraper data to update a system-level Portfolio.

note Try to make Portfolios optional, do not couple with current scraping if possible.

Minimum-Viable-Product Acceptance Criteria:

  • Able to CRUD Portfolios
  • Portfolio comparison logic ("diffs"/"deltas")
  • Print to Console when scrape_latest adds or removes tickers that were previously in the scrape_latest portfolio
  • Print to Console when scrape_latest adds or removes tickers that existed in user's portfolios, including scrape_latest

Any specific reason for an INI? Something like YAML or JSON might be more applicable to this data type.

from reddit-stock-trends.

Related Issues (20)

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.