Skip to main content

A utility for crawling historical and Real-time Quotes of dse

Project description

#Bdshare

Documentation Status PyPI StyleCI

A utility for crawling historical and Real-time data from stock exchanges of Bangladesh. At present this utility can collect data from Dhaka stock exchange.

Contents

Quickstart

Installation

$ pip install bdshare

or upgrade

$ pip install -U bdshare

Example Use

Get DSE last or current trading data

from bdshare import get_current_trade_data

df = get_current_trade_data()
print(df.to_string())
from bdshare import get_current_trade_data

df = get_current_trade_data('GP') # get specific instrument data
print(df.to_string())

Get historical data

from bdshare import get_hist_data

df = get_hist_data('2022-03-01','2022-03-02') # get all instrument data
print(df.to_string())

or

from bdshare import get_hist_data

df = get_hist_data('2022-03-01','2022-03-02','ACI') # get specific instrument data
print(df.to_string())

Get OHLCV historical data

from bdshare import get_basic_hist_data

df = get_basic_hist_data('2022-03-01','2022-03-02') # get all instrument data
print(df.to_string())

or

from bdshare import get_basic_hist_data

df = get_basic_hist_data('2022-03-01','2022-03-02','GP') # get specific instrument data
print(df.to_string())

Get DSE Index data

from bdshare import get_market_inf

df = get_market_inf() # get last 30 days market data
print(df.to_string())
from bdshare import get_market_inf_more_data

df = get_market_inf_more_data('2022-03-01','2022-03-02') # get historical market data
print(df.to_string())

Get CSE last or current trading data

from bdshare import get_cse_current_trade_data

df = get_cse_current_trade_data() # get all instrument data
print(df.to_string())
from bdshare import get_cse_current_trade_data

df = get_cse_current_trade_data('GP') # get specific instrument data
print(df.to_string())

List of functions

Trading data

Function Params Description
get_current_trade_data()
get_dsex_data()
get_current_trading_code()
get_hist_data()
get_basic_hist_data()
get_close_price_data()
get_last_trade_price_data()
get_cse_current_trade_data()

Trading news

Function Params Description
get_agm_news()
get_all_news()

Market data

Function Params Description
get_market_inf()
get_latest_pe()
get_market_inf_more_data()
get_market_depth_data() str get_market_depth_data('aci')

TODO's and Road Map:

  • refine logic for parameters
  • examples;
  • DSE daily data and historical data crawling
  • DSE news,p/e crawling
  • Add CSE support for last trading price
  • Add DSE Index data support
  • Add DSEX Index data support

Documentation

Complete documentation can be found at Readthedocs .

Contributing to this project

Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.

Change log

[0.5.0] - 2023-12-31

Added

  • n/a

Changed

  • n/a

[0.4.0] - 2023-03-12

Added

  • n/a

Changed

  • changed package manager

[0.3.2] - 2022-10-10

Added

  • n/a

Changed

  • n/a

[0.3.1] - 2022-06-15

Added

  • n/a

Changed

  • n/a

[0.2.1] - 2021-08-01

Added

Changed

  • get_current_trading_code()

[0.2.0] - 2021-06-01

Added

  • added get_market_depth_data
  • added get_dsex_data
  • added 'dse.com.bd' as redundant

Changed

  • Changed documentation
  • changed get_agm_news
  • changed get_all_news

[0.1.4] - 2020-08-22

Added

  • added get_market_inf_more_data

Changed

  • Changed documentation

[0.1.3] - 2020-08-20

Added

  • html5lib
  • added get params

Changed

  • post request to get

[0.1.2] - 2020-05-21

Added

  • modified index declaration

[0.1.1] - 2020-05-20

Added

  • modified index declaration

[0.1.0] - 2020-04-08

Added

  • added git tag
  • VERSION.txt

Changed

  • setup.py
  • HISTORY.md to CHANGELOG.md

[0.0.1] - 2020-04-06

Added

  • get_hist_data(), get_current_trade_data()
  • HISTORY.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bdshare-0.6.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bdshare-0.6.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file bdshare-0.6.0.tar.gz.

File metadata

  • Download URL: bdshare-0.6.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for bdshare-0.6.0.tar.gz
Algorithm Hash digest
SHA256 a2f3dfd042c2dedbab069701e9e8216bb14ce5abfff879764154431c18c32002
MD5 ea9ff8cab836760b18549be9bef13fd5
BLAKE2b-256 a8839fc51b08eb1ad5d9bf0730354e3c8065c380e17ae5a0b025bd43aa5f90e1

See more details on using hashes here.

File details

Details for the file bdshare-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: bdshare-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for bdshare-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90341d2a273dcba4cff4f52d1beae678efd82e5ccb17919ae378ab9a6f590502
MD5 0e69f2a913c6128cffdf960d4b28d05e
BLAKE2b-256 6388ab89621da204a8a28671182ebc11c214a7642e9b771e85703ffce1d42046

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page