Skip to content

Commit

Permalink
Update to Version 4.3
Browse files Browse the repository at this point in the history
Changelog:
- Fix issue with Futures volume
- Change 0.0 to 0 in Open Interest Column in Equity and Indices
  • Loading branch information
virresh committed Jul 23, 2020
1 parent f00b7c1 commit 9b99cdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions python_client/app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def process_eq(weblink, saveloc, d):
}
df = df.rename(columns=cname_map)
df['DATE'] = [parse(d, '{0:%Y}{0:%m}{0:%d}')] * len(df)
df['OI'] = ['0.0'] * len(df)
df['OI'] = ['0'] * len(df)
df = df[['SYMBOL', 'DATE', 'OPEN', 'HIGH', 'LOW', 'CLOSE', 'VOLUME', 'OI']]
df.to_csv(saveloc, header=None, index=None)
return df
Expand Down Expand Up @@ -120,7 +120,7 @@ def process_fu(weblink, saveloc, d, asPrefix=False):

def process_in(weblink, saveloc, d, index_mapping={}, keeplist=set(), keepall='false'):
df = get_csv(weblink)
df = df.replace('-', '0.0')
df = df.replace('-', '0')

cname_map = {
'Index Name': 'SYMBOL',
Expand All @@ -132,7 +132,7 @@ def process_in(weblink, saveloc, d, index_mapping={}, keeplist=set(), keepall='f
}
df = df.rename(columns=cname_map)
df['DATE'] = [parse(d, '{0:%Y}{0:%m}{0:%d}')] * len(df)
df['OI'] = ['0.0'] * len(df)
df['OI'] = ['0'] * len(df)
df = df[['SYMBOL', 'DATE', 'OPEN', 'HIGH', 'LOW', 'CLOSE', 'VOLUME', 'OI']]
df['SYMBOL'] = df['SYMBOL'].apply(lambda x: x.upper())
def _rename(item):
Expand Down Expand Up @@ -293,7 +293,7 @@ def index():

@app.route('/version')
def version():
return "4.2"
return "4.3"

@app.route('/test', methods=['POST'])
def test():
Expand Down
3 changes: 2 additions & 1 deletion python_client/app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ <h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-4">StockD v<span id="versionTxt">4.0</span></h1>
<p class="lead">Latest Release can be found at <a target="_blank" href="https://github.com/virresh/StockD/releases/latest">https://github.com/virresh/StockD/releases/latest</a>.</p>
<p class="lead">Details on Index Mapping can be found at <a target="_blank" href="https://github.com/virresh/StockD/wiki/Index-Mapping">https://github.com/virresh/StockD/wiki/Index-Mapping</a>.</p>
<p class="lead">Detailed user guide can be found at <a target="_blank" href="https://github.com/virresh/StockD/wiki/User-Guide">https://github.com/virresh/StockD/wiki/User-Guide</a>.</p>
<p class="lead">You can also ask for help via <a target="_blank" href="https://gitter.im/virresh/StockD">gitter chatroom</a>.</p>
Expand Down Expand Up @@ -312,7 +313,7 @@ <h1 class="display-4">StockD v<span id="versionTxt">4.0</span></h1>
};
async function setnews() {
await $.get("/news").done(function(data) {
$('#news').text(data);
$('#news').html(data);
}).fail(function (err){
swal('Internet Problem!', "Could not connect to internet. Download may not work!", "error");
});
Expand Down

0 comments on commit 9b99cdf

Please sign in to comment.