Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
rochi88 committed Mar 4, 2024
1 parent 87015ea commit 670a3bb
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 18 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change log

## [1.0.0] - 2024-03-09

### Added
- Updated docs

### Changed
- n/a

## [0.7.2] - 2024-03-04

### Added
Expand Down
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,20 @@ df = get_market_inf_more_data('2022-03-01','2022-03-02') # get historical market
print(df.to_string())
```

#### Get CSE last or current trading data
#### Get DSE Market Depth data
```python
from bdshare import get_cse_current_trade_data
from bdshare import get_market_depth_data

df = get_cse_current_trade_data() # get all instrument data
df = get_market_depth_data('ACI') # get current buy and sell data
print(df.to_string())
```

#### Save data to csv file
```python
from bdshare import get_cse_current_trade_data
from bdshare import get_basic_hist_data, Store

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

### <a name="functions"></a> [List of functions](#contents)
Expand Down Expand Up @@ -133,12 +135,14 @@ print(df.to_string())

### <a name="roadmap"></a> [TODO's and Road Map:](#contents)
- [x] refine logic for parameters
- [x] examples;
- [x] Demo example;
- [x] DSE daily data and historical data crawling
- [x] DSE news,p/e crawling
- [x] Add CSE support for last trading price
- [x] Add DSE Index data support
- [x] Add DSEX Index data support
- [x] Create tests
- [x] Store dat to csv
- [x] DSE market depth data
- [x] Add docker support in demo example


### Documentation
Expand Down
2 changes: 1 addition & 1 deletion bdshare/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version_info = (0, 7, 2)
version_info = (1, 0, 0)
__version__ = '.'.join(map(str, version_info))
8 changes: 7 additions & 1 deletion bdshare/util/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
import os

class Store(object):

"""
Store dataframe
:param data: dataframe,
:param name: str,
:param path: str,
:return: none
"""
def __init__(self, data=None, name=None, path=None):
if isinstance(data, pd.DataFrame):
self.data = data
Expand Down
5 changes: 1 addition & 4 deletions bdshare/util/vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,4 @@
DSE_MARKET_DEPTH_URL = "ajax/load-instrument.php"
DSE_MARKET_DEPTH_REFERER_URL="mkt_depth_3.php"

DSEX_INDEX_VALUE = "dseX_share.php"

CSE_URL = "https://www.cse.com.bd/"
CSE_LSP_URL = "market/current_price"
DSEX_INDEX_VALUE = "dseX_share.php"
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[metadata]
name = bdshare
version = 0.7.2
version = 1.0.0
author= Raisul Islam
author_email= [email protected]
description = A utility for crawling historical and Real-time Quotes of dse
description = A utility for crawling historical and Real-time Quotes of DSE(Dhaka Stock Exchange)
long_description_content_type = text/markdown
long_description = file: README.md, CHANGELOG.md
keywords= Crawling, DSE, CSE, Financial Data
keywords= Crawling, DSE, Financial Data
license= MIT
classifiers =
Programming Language :: Python :: 3
Expand Down

0 comments on commit 670a3bb

Please sign in to comment.