Code Monkey home page Code Monkey logo

portfolio's Introduction

  • Get all nifty 250 stocks from official nifty website

Use this library to get to know which all days is the stock market open https://pandas-market-calendars.readthedocs.io/en/latest/calendars.html

  • stock market is open for 250 days / year

  • assuming 1000 companies, we have 250 * 1000 = 250k records / year

  • if I scrape past 10 years, then it becomes 2.5 mil records, with a rate of increase of 250k per year postgres should be able to handle this

  • Database schema

  • ticker_day_trade

    • id not null primary key varchar

    • exchange_symbol not null varchar

    • ticker_symbol varchar not null

    • ticker_symbol_yahoo not null

    • trading_date (dd-mm-yyyy) not null date

    • currency not null varchar

    • country_code not null varchar

    • type varchar not null

    • name varchar not null

    • listed_on timestampz not null

    • open numeric not null

    • high numeric not null

    • low numeric not null

    • close numeric not null

    • volume numeric not null

    • dividends numeric not null

    • stock_splits numeric not null

    • share_price numeric not null

    • float_shares int

    • total_shares int

    • market_cap numeric

    • other_data jsonb not null

    • created_on timestampz not null

    • updated_on timestampz not null UNIQUE(exchange, symbol, trading_date) UNIQUE(exchange, yahoo_symbol, trading_date)

portfolio's People

Contributors

rahulbadenkal avatar

Watchers

 avatar

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.