GithubHelp home page GithubHelp logo

siryno / stock Goto Github PK

View Code? Open in Web Editor NEW

This project forked from behnamhatami/stock

0.0 0.0 0.0 237 KB

Tehran Stock Market Crawler and Analyzer

License: GNU General Public License v3.0

Python 98.94% HTML 1.06%

stock's Introduction

Tehran Stock Market Crawler and analyzer

made-with-python

A django web app that helps you to crawl TSETMC share lists, share groups, historical data and live data of the day

Features

  • Download list of shares
  • Download list of share groups
  • Download history of share prices
  • Download last day data of the shares including transaction board, prices and transaction datas
  • Store historical data in database
  • Efficient indexing and analyzing using PANDAS dataframe
  • Normalizing Data of share prices due to events in share data
  • Nice admin page for searching and editing data by using Django web framework
  • Compatible with linux cron job system for crawling new historical data every day
  • Compatible with Django
  • Compatible with PANDAS
  • Compatible with sqlite or every other production database supported by Django

0 - Install

git clone https://github.com/behnamhatami/stock
cd stock
sudo pip3 install -r requirements.txt 

1- Initialization

For first use you need initialize the database

python3 manage.py migrate

then you should crawl the data of the stock lists

python3 manage.py update_share_list

also you can deep crawl tse site for shares (the closed shares in last active day of bazaar) by searching

python3 manage.py update_share_list_by_search

2- Downloading Historical Data

For downloading historical data you can use this command

python3 manage.py update_share_history

if tooks couple of minute depends on your internet quality and TSETMC site speed to download all historical data of listed shares. It will give stat of the process during crawling TSETMC site.

3- Access Data

To access data you can use Django model Share object, which helps you to find your share, accessing its history and analyzing it. You can also find your data in Django admin.

stock's People

Contributors

behnamhatami 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.