Skip to content

Commit 9f7faff

Browse files
committed
Initial Commit
0 parents  commit 9f7faff

File tree

169 files changed

+175323
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+175323
-0
lines changed

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# MMI - Risk o Meter
2+
> Inspired by [Ticker Tape](https://www.tickertape.in/market-mood-index)
3+
4+
## Steps to Use
5+
- Install the requirements.txt file
6+
- Uncomment the get_fii_activity() function in the code
7+
- Run the code
8+
9+
## Features
10+
11+
## Roadmap
12+
- [ ] Gauge Charts Setup
13+
- [x] FII Activity
14+
- [ ] Volatility and Skew
15+
- [x] Momentum
16+
- [ ] Market Breadth
17+
- [ ] Price Strength
18+
- [ ] Demand for Gold

__init__.py

Whitespace-only changes.

__pycache__/nsepyData.cpython-310.pyc

648 Bytes
Binary file not shown.

data/ad_ratio/ad_ratio_monthly.csv

+265
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,265 @@
1+
Month,Advances,Declines,Advance/Decline Ratio
2+
Mar-2022,1042,1088,0.96
3+
Feb-2022,921,1208,0.76
4+
Jan-2022,1064,1069,0.99
5+
Dec-2021,1125,964,1.17
6+
Nov-2021,982,1069,0.92
7+
Oct-2021,958,1091,0.88
8+
Sep-2021,989,1022,0.97
9+
Aug-2021,911,1097,0.83
10+
Jul-2021,996,996,1.00
11+
Jun-2021,1021,976,1.05
12+
May-2021,1082,879,1.23
13+
Apr-2021,1031,899,1.15
14+
Mar-2021,881,1072,0.82
15+
Feb-2021,978,950,1.03
16+
Jan-2021,886,1068,0.83
17+
Dec-2020,1080,866,1.25
18+
Nov-2020,1057,816,1.30
19+
Oct-2020,878,1001,0.88
20+
Sep-2020,867,1008,0.86
21+
Aug-2020,1494,852,1.75
22+
Jul-2020,879,1010,0.87
23+
Jun-2020,1102,781,1.41
24+
May-2020,848,950,0.89
25+
Apr-2020,1096,748,1.46
26+
Mar-2020,697,1181,0.59
27+
Feb-2020,742,1098,0.68
28+
Jan-2020,924,913,1.01
29+
Dec-2019,867,968,0.90
30+
Nov-2019,864,979,0.88
31+
Oct-2019,892,933,0.96
32+
Sep-2019,919,916,1.00
33+
Aug-2019,854,972,0.88
34+
Jul-2019,716,1099,0.65
35+
Jun-2019,759,1066,0.71
36+
May-2019,828,983,0.84
37+
Apr-2019,803,1006,0.80
38+
Mar-2019,961,879,1.09
39+
Feb-2019,824,979,0.84
40+
Jan-2019,737,1039,0.71
41+
Dec-2018,872,924,0.94
42+
Nov-2018,869,918,0.95
43+
Oct-2018,853,977,0.87
44+
Sep-2018,661,1179,0.56
45+
Aug-2018,884,924,0.96
46+
Jul-2018,884,912,0.97
47+
Jun-2018,734,1066,0.69
48+
May-2018,733,1066,0.69
49+
Apr-2018,941,860,1.09
50+
Mar-2018,701,1102,0.64
51+
Feb-2018,788,1011,0.78
52+
Jan-2018,761,1017,0.75
53+
Dec-2017,893,871,1.02
54+
Nov-2017,840,901,0.93
55+
Oct-2017,907,808,1.12
56+
Sep-2017,794,898,0.88
57+
Aug-2017,770,921,0.84
58+
Jul-2017,834,851,0.98
59+
Jun-2017,780,894,0.87
60+
May-2017,735,935,0.79
61+
Apr-2017,866,820,1.06
62+
Mar-2017,793,863,0.92
63+
Feb-2017,820,828,0.99
64+
Jan-2017,860,767,1.12
65+
Dec-2016,729,877,0.83
66+
Nov-2016,734,899,0.82
67+
Oct-2016,876,757,1.16
68+
Sep-2016,803,816,0.98
69+
Aug-2016,746,856,0.87
70+
Jul-2016,798,810,0.99
71+
Jun-2016,814,749,1.09
72+
May-2016,715,835,0.86
73+
Apr-2016,815,738,1.00
74+
Mar-2016,840,718,1.17
75+
Feb-2016,598,953,0.63
76+
Jan-2016,698,877,0.80
77+
Dec-2015,773,771,1.00
78+
Nov-2015,760,753,1.01
79+
Oct-2015,759,754,1.01
80+
Sep-2015,741,764,0.97
81+
Aug-2015,686,833,0.82
82+
Jul-2015,803,703,1.14
83+
Jun-2015,690,796,0.87
84+
May-2015,732,759,0.97
85+
Apr-2015,728,788,0.92
86+
Mar-2015,627,881,0.71
87+
Feb-2015,683,813,0.84
88+
Jan-2015,748,786,0.95
89+
Dec-2014,706,822,0.86
90+
Nov-2014,736,808,0.91
91+
Oct-2014,770,759,1.01
92+
Sep-2014,778,782,1.00
93+
Aug-2014,752,790,0.95
94+
Jul-2014,730,816,0.90
95+
Jun-2014,876,685,1.28
96+
May-2014,851,681,1.25
97+
Apr-2014,783,712,1.10
98+
Mar-2014,772,689,1.12
99+
Feb-2014,680,735,0.93
100+
Jan-2014,621,792,0.78
101+
Dec-2013,686,668,1.03
102+
Nov-2013,672,672,1.00
103+
Oct-2013,706,627,1.13
104+
Sep-2013,677,641,1.06
105+
Aug-2013,602,703,0.86
106+
Jul-2013,572,747,0.77
107+
Jun-2013,572,786,0.73
108+
May-2013,619,759,0.82
109+
Apr-2013,713,678,1.05
110+
Mar-2013,625,875,0.71
111+
Feb-2013,576,926,0.62
112+
Jan-2013,663,849,0.78
113+
Dec-2012,723,790,0.91
114+
Nov-2012,730,773,0.94
115+
Oct-2012,691,818,0.84
116+
Sep-2012,814,664,1.23
117+
Aug-2012,671,805,0.83
118+
Jul-2012,667,816,0.82
119+
Jun-2012,753,703,1.07
120+
May-2012,616,843,0.73
121+
Apr-2012,706,762,0.93
122+
Mar-2012,639,849,0.75
123+
Feb-2012,781,719,1.09
124+
Jan-2012,870,605,1.44
125+
Dec-2011,560,909,0.62
126+
Nov-2011,581,895,0.65
127+
Oct-2011,738,719,1.03
128+
Sep-2011,693,774,0.89
129+
Aug-2011,580,889,0.65
130+
Jul-2011,689,756,0.91
131+
Jun-2011,648,1131,0.57
132+
May-2011,610,819,0.74
133+
Apr-2011,729,720,1.01
134+
Mar-2011,715,739,0.97
135+
Feb-2011,611,820,0.74
136+
Jan-2011,526,901,0.58
137+
Dec-2010,727,695,1.05
138+
Nov-2010,604,823,0.73
139+
Oct-2010,642,765,0.84
140+
Sep-2010,693,697,1.00
141+
Aug-2010,624,755,0.83
142+
Jul-2010,645,710,0.91
143+
Jun-2010,693,648,1.07
144+
May-2010,559,779,0.72
145+
Apr-2010,698,640,1.09
146+
Mar-2010,646,680,0.95
147+
Feb-2010,591,715,0.83
148+
Jan-2010,598,725,0.83
149+
Dec-2009,673,614,1.10
150+
Nov-2009,671,607,1.10
151+
Oct-2009,518,751,0.69
152+
Sep-2009,632,630,1.00
153+
Aug-2009,667,582,1.15
154+
Jul-2009,650,588,1.11
155+
Jun-2009,576,675,0.85
156+
May-2009,775,431,1.80
157+
Apr-2009,732,495,1.48
158+
Mar-2009,604,588,1.03
159+
Feb-2009,502,676,0.74
160+
Jan-2009,533,663,0.80
161+
Dec-2008,656,541,1.21
162+
Nov-2008,483,726,0.66
163+
Oct-2008,436,795,0.55
164+
Sep-2008,435,790,0.55
165+
Aug-2008,572,644,0.89
166+
Jul-2008,607,605,1.00
167+
Jun-2008,440,769,0.57
168+
May-2008,495,708,0.70
169+
Apr-2008,675,525,1.29
170+
Mar-2008,467,737,0.63
171+
Feb-2008,550,639,0.86
172+
Jan-2008,433,756,0.57
173+
Dec-2007,720,460,1.57
174+
Nov-2007,576,576,1.00
175+
Oct-2007,533,607,0.88
176+
Sep-2007,585,549,1.07
177+
Aug-2007,544,573,0.95
178+
Jul-2007,508,592,0.86
179+
Jun-2007,507,569,0.89
180+
May-2007,507,557,0.91
181+
Apr-2007,556,493,1.13
182+
Mar-2007,478,552,0.87
183+
Feb-2007,397,622,0.64
184+
Jan-2007,499,499,1.00
185+
Dec-2006,456,502,0.91
186+
Nov-2006,422,517,0.81
187+
Oct-2006,452,479,0.94
188+
Sep-2006,462,455,1.02
189+
Aug-2006,496,412,1.20
190+
Jul-2006,403,500,0.81
191+
Jun-2006,402,510,0.79
192+
May-2006,387,533,0.73
193+
Apr-2006,464,440,1.06
194+
Mar-2006,416,467,0.89
195+
Feb-2006,381,485,0.79
196+
Jan-2006,407,457,0.89
197+
Dec-2005,416,430,0.97
198+
Nov-2005,467,376,1.24
199+
Oct-2005,317,533,0.60
200+
Sep-2005,388,470,0.83
201+
Aug-2005,458,389,1.18
202+
Jul-2005,449,384,1.17
203+
Jun-2005,373,439,0.85
204+
May-2005,439,364,1.21
205+
Apr-2005,368,430,0.86
206+
Mar-2005,344,462,0.74
207+
Feb-2005,380,419,0.91
208+
Jan-2005,375,427,0.88
209+
Dec-2004,400,391,1.02
210+
Nov-2004,441,344,1.28
211+
Oct-2004,354,415,0.85
212+
Sep-2004,398,369,1.08
213+
Aug-2004,390,356,1.10
214+
Jul-2004,402,331,1.22
215+
Jun-2004,349,370,0.94
216+
May-2004,329,403,0.82
217+
Apr-2004,399,324,1.23
218+
Mar-2004,319,399,0.80
219+
Feb-2004,310,407,0.76
220+
Jan-2004,290,446,0.65
221+
Dec-2003,409,316,1.30
222+
Nov-2003,382,304,1.26
223+
Oct-2003,321,344,0.93
224+
Sep-2003,286,364,0.78
225+
Aug-2003,374,349,1.07
226+
Jul-2003,351,360,0.97
227+
Jun-2003,381,313,1.22
228+
May-2003,397,280,1.42
229+
Apr-2003,347,289,1.20
230+
Mar-2003,247,413,0.60
231+
Feb-2003,303,361,0.84
232+
Jan-2003,296,378,0.78
233+
Dec-2002,323,357,0.91
234+
Nov-2002,374,297,1.26
235+
Oct-2002,301,369,0.82
236+
Sep-2002,302,419,0.72
237+
Aug-2002,355,376,0.94
238+
Jul-2002,304,464,0.66
239+
Jun-2002,420,345,1.22
240+
May-2002,329,412,0.80
241+
Apr-2002,381,354,1.08
242+
Mar-2002,342,374,0.91
243+
Feb-2002,361,361,1.00
244+
Jan-2002,342,372,0.92
245+
Dec-2001,481,551,0.87
246+
Nov-2001,597,458,1.30
247+
Oct-2001,527,446,1.18
248+
Sep-2001,432,541,0.80
249+
Aug-2001,480,488,0.98
250+
Jul-2001,395,525,0.75
251+
Jun-2001,328,474,0.69
252+
May-2001,426,401,1.06
253+
Apr-2001,372,421,0.88
254+
Mar-2001,318,499,0.64
255+
Feb-2001,405,478,0.85
256+
Jan-2001,399,451,0.89
257+
Dec-2000,424,431,0.99
258+
Nov-2000,455,382,1.19
259+
Oct-2000,352,425,0.83
260+
Sep-2000,365,486,0.75
261+
Aug-2000,419,427,0.98
262+
Jul-2000,413,491,0.84
263+
Jun-2000,448,485,0.92
264+
May-2000,447,485,0.92
265+
Apr-2000,394,583,0.68

data/fii/fii_stats_01-Apr-2022.csv

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
,FII DERIVATIVES STATISTICS FOR 01-Apr-2022,Unnamed: 1,Unnamed: 2,Unnamed: 3,Unnamed: 4,Unnamed: 5,Unnamed: 6
2+
0,,BUY,BUY,SELL,SELL,OPEN INTEREST AT THE END OF THE DAY,
3+
1,,No. of contracts,Amt in Crores,No. of contracts,Amt in Crores,No. of contracts,Amt in Crores
4+
2,INDEX FUTURES,44022,3964.34,47294,4242.67,145722,13073.21
5+
3,INDEX OPTIONS,3527359,321399.50,3556536,324248.96,829373,74268.77
6+
4,STOCK FUTURES,176054,12694.88,177128,12739.15,1894823,134487.66
7+
5,STOCK OPTIONS,72710,5907.50,78312,6310.69,81999,6362.99
8+
6,,,,,,,
9+
7,,,,,,,
10+
8,,,,,,,
11+
9,,,,,,,
12+
10,Notes:,,,,,,
13+
11,,,,,,,
14+
12,Both buy and sell positions have been considered,,,,,,
15+
13,Options Value (Buy/Sell) = Strike price * Qty,,,,,,
16+
14,Futures Value (Buy/Sell) = Traded Price * Qty,,,,,,
17+
15,,,,,,,
18+
16,Value & Open Interest at the end of day:,,,,,,
19+
17,Options Value (End of day) = Underlying Close Price * Qty,,,,,,
20+
18,Futures Value (End of day) = Closing Futures Price * Qty (closing price is the daily settlement price of futures contracts),,,,,,

data/fii/fii_stats_01-Feb-2022.csv

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
,FII DERIVATIVES STATISTICS FOR 01-Feb-2022,Unnamed: 1,Unnamed: 2,Unnamed: 3,Unnamed: 4,Unnamed: 5,Unnamed: 6
2+
0,,BUY,BUY,SELL,SELL,OPEN INTEREST AT THE END OF THE DAY,
3+
1,,No. of contracts,Amt in Crores,No. of contracts,Amt in Crores,No. of contracts,Amt in Crores
4+
2,INDEX FUTURES,104855,9609.84,109640,10024.54,146248,13183.16
5+
3,INDEX OPTIONS,8043769,755033.22,8008578,751695.68,1356796,122598.03
6+
4,STOCK FUTURES,325520,24474.71,293676,22368.08,1859227,131332.62
7+
5,STOCK OPTIONS,262860,20337.66,263895,20469.31,204334,15335.95
8+
6,,,,,,,
9+
7,,,,,,,
10+
8,,,,,,,
11+
9,,,,,,,
12+
10,Notes:,,,,,,
13+
11,,,,,,,
14+
12,Both buy and sell positions have been considered,,,,,,
15+
13,Options Value (Buy/Sell) = Strike price * Qty,,,,,,
16+
14,Futures Value (Buy/Sell) = Traded Price * Qty,,,,,,
17+
15,,,,,,,
18+
16,Value & Open Interest at the end of day:,,,,,,
19+
17,Options Value (End of day) = Underlying Close Price * Qty,,,,,,
20+
18,Futures Value (End of day) = Closing Futures Price * Qty (closing price is the daily settlement price of futures contracts),,,,,,

data/fii/fii_stats_02-Feb-2022.csv

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
,FII DERIVATIVES STATISTICS FOR 02-Feb-2022,Unnamed: 1,Unnamed: 2,Unnamed: 3,Unnamed: 4,Unnamed: 5,Unnamed: 6
2+
0,,BUY,BUY,SELL,SELL,OPEN INTEREST AT THE END OF THE DAY,
3+
1,,No. of contracts,Amt in Crores,No. of contracts,Amt in Crores,No. of contracts,Amt in Crores
4+
2,INDEX FUTURES,63875,5910.24,45092,4212.85,149475,13677.89
5+
3,INDEX OPTIONS,7052730,676439.70,7050019,676316.41,1379281,126639.06
6+
4,STOCK FUTURES,202574,14762.69,198765,14545.42,1859546,132764.27
7+
5,STOCK OPTIONS,201167,15803.47,200351,15752.86,218396,16603.30
8+
6,,,,,,,
9+
7,,,,,,,
10+
8,,,,,,,
11+
9,,,,,,,
12+
10,Notes:,,,,,,
13+
11,,,,,,,
14+
12,Both buy and sell positions have been considered,,,,,,
15+
13,Options Value (Buy/Sell) = Strike price * Qty,,,,,,
16+
14,Futures Value (Buy/Sell) = Traded Price * Qty,,,,,,
17+
15,,,,,,,
18+
16,Value & Open Interest at the end of day:,,,,,,
19+
17,Options Value (End of day) = Underlying Close Price * Qty,,,,,,
20+
18,Futures Value (End of day) = Closing Futures Price * Qty (closing price is the daily settlement price of futures contracts),,,,,,

data/fii/fii_stats_02-Mar-2022.csv

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
,FII DERIVATIVES STATISTICS FOR 02-Mar-2022,Unnamed: 1,Unnamed: 2,Unnamed: 3,Unnamed: 4,Unnamed: 5,Unnamed: 6
2+
0,,BUY,BUY,SELL,SELL,OPEN INTEREST AT THE END OF THE DAY,
3+
1,,No. of contracts,Amt in Crores,No. of contracts,Amt in Crores,No. of contracts,Amt in Crores
4+
2,INDEX FUTURES,61709,5288.24,100597,8532.85,192999,16261.71
5+
3,INDEX OPTIONS,6515433,563993.41,6520588,564518.88,1595399,134438.66
6+
4,STOCK FUTURES,250187,16904.61,257658,18158.93,2109258,138884.27
7+
5,STOCK OPTIONS,160746,11494.24,162518,11667.01,170354,11762.46
8+
6,,,,,,,
9+
7,,,,,,,
10+
8,,,,,,,
11+
9,,,,,,,
12+
10,Notes:,,,,,,
13+
11,,,,,,,
14+
12,Both buy and sell positions have been considered,,,,,,
15+
13,Options Value (Buy/Sell) = Strike price * Qty,,,,,,
16+
14,Futures Value (Buy/Sell) = Traded Price * Qty,,,,,,
17+
15,,,,,,,
18+
16,Value & Open Interest at the end of day:,,,,,,
19+
17,Options Value (End of day) = Underlying Close Price * Qty,,,,,,
20+
18,Futures Value (End of day) = Closing Futures Price * Qty (closing price is the daily settlement price of futures contracts),,,,,,

data/fii/fii_stats_03-Feb-2022.csv

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
,FII DERIVATIVES STATISTICS FOR 03-Feb-2022,Unnamed: 1,Unnamed: 2,Unnamed: 3,Unnamed: 4,Unnamed: 5,Unnamed: 6
2+
0,,BUY,BUY,SELL,SELL,OPEN INTEREST AT THE END OF THE DAY,
3+
1,,No. of contracts,Amt in Crores,No. of contracts,Amt in Crores,No. of contracts,Amt in Crores
4+
2,INDEX FUTURES,43355,3990.00,56279,5175.00,161191,14542.00
5+
3,INDEX OPTIONS,15610449,1506211.25,15501483,1495725.82,1016824,91461.31
6+
4,STOCK FUTURES,176628,12956.99,198191,14244.02,1865237,131233.18
7+
5,STOCK OPTIONS,149891,11399.91,152523,11566.57,237928,17938.20
8+
6,,,,,,,
9+
7,,,,,,,
10+
8,,,,,,,
11+
9,,,,,,,
12+
10,Notes:,,,,,,
13+
11,,,,,,,
14+
12,Both buy and sell positions have been considered,,,,,,
15+
13,Options Value (Buy/Sell) = Strike price * Qty,,,,,,
16+
14,Futures Value (Buy/Sell) = Traded Price * Qty,,,,,,
17+
15,,,,,,,
18+
16,Value & Open Interest at the end of day:,,,,,,
19+
17,Options Value (End of day) = Underlying Close Price * Qty,,,,,,
20+
18,Futures Value (End of day) = Closing Futures Price * Qty (closing price is the daily settlement price of futures contracts),,,,,,

0 commit comments

Comments
 (0)