This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div.page-content.positions { | |
background-color: #000000; | |
color: #ffffff; | |
} | |
h3.page-title.small { | |
color: #ffffff; | |
} | |
span.text-label.small.aqua.indigo { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |