Skip to content

Instantly share code, notes, and snippets.

View aeron7's full-sized avatar
🐧
As Dave once said, "Dea Deusa Serum!"

Aeron7 Inc aeron7

🐧
As Dave once said, "Dea Deusa Serum!"
View GitHub Profile
@aeron7
aeron7 / style.css
Created March 17, 2023 14:32
Barcelona Theme Main Menu CSS Deprecated
/* Barcelona Theme Main Menu CSS Deprecated*/
.navbar-nav > li > a, .sub-menu a {
font-size: 15px !important;
text-transform: capitalize !important;
font-weight: normal !important;
}
.navbar-nav > li > .sub-menu {
border: 1px solid #CC3232 !important;
@aeron7
aeron7 / getting-nse-holidays-data-using-python.ipynb
Created April 21, 2021 19:26
Getting NSE Holidays Data Using Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aeron7
aeron7 / stockmock-dict-parser.py
Created May 25, 2020 16:11
Stockmock Dict Parser
theta3 = "p=BN::0_S_PE_20,BN::0_S_CE_20&et=10:42:00,14:48:00&s=intraday&ed=1,0&sfm=false&sfd=1550188800000&std=1581910710191&slp=-21&so=leg"
dict = {x[0] : x[1] for x in [x.split("=") for x in theta3.split("&") ]}
#Working on OrderFire
dict['p'] = dict['p'].split(',')
dict['et'] = dict['et'].split(',')
#24 Hour Conversion with zero Padded
if(len(dict['et'][0].split(':')[0])==1):dict['et'][0]="0"+dict['et'][0]
@aeron7
aeron7 / how-to-get-f-o-companies-list-from-kite-connect-api.ipynb
Last active April 10, 2021 09:42
How to get F & O Companies List from Kite Connect API
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aeron7
aeron7 / style.css
Last active January 24, 2022 07:41
Zerodha Kite Dark Mode
div.page-content.positions {
background-color: #000000;
color: #ffffff;
}
h3.page-title.small {
color: #ffffff;
}
span.text-label.small.aqua.indigo {
@aeron7
aeron7 / dynamic-heatmap-loop.py
Created February 17, 2019 21:24
Code for Dynamic Heatmap as described in Unofficed
f.write("<table><tbody><tr>")
i,j,k=0,0,0
for x in range(i, endp):
symbol = positions['data'][x]['symbol']
value = float(positions['data'][x]['per'])
if (i!=0 and i%13 == 0) : f.write("</tr><tr>")
if value >= 0 : f.write('<td style="background: '+str(positive_colors[j])+'; ">'+symbol+'<div class="per">'+str(value)+'%<div></td>')
j = j+1
else :
f.write('<td style="background: '+str(negative_colors[k])+'; ">'+symbol+'<div class="per">'+str(value)+'%<div></td>')
"""
Simple Moving Average implemented using KiteConnect Python library. -- [https://kite.trade](kite.trade)
Rainmatter (c) 2016
License
-------
This GIST is licensed under the MIT License
"""
from kiteconnect import KiteConnect