Skip to content

Commit 4d5c65e

Browse files
committed
added bse script
1 parent 7102cd2 commit 4d5c65e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

BSE_data/bombay.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
from bsedata.bse import BSE
2+
3+
b = BSE(update_codes = True)
4+
tg = b.topGainers()
5+
print("Top Gainers - Now")
6+
for i in tg:
7+
print(i)
8+
9+
print('\n-------------------------\n')
10+
11+
tl = b.topLosers()
12+
print("Top Losers - Now")
13+
for j in tl:
14+
print(j)
15+
16+
# indices catagory parameter
17+
'''
18+
market_cap/broad, sector_and_industry, thematics, strategy
19+
sustainability, volatility, composite, government, corporate, money_market
20+
'''
21+
indices = b.getIndices(category='government')
22+
print(indices)
23+
24+
# Updates scrip code and updates library cache
25+
b.updateScripCodes()
26+
27+
# print(b.verifyScripCode(code))
28+
# print(b.getScripCodes)

0 commit comments

Comments
 (0)