remove symbol friendlyname translation; implemented

on DB.
This commit is contained in:
Joe Tretter
2020-06-10 14:29:15 -05:00
parent 9b40f3d281
commit 05a55f6434
3 changed files with 9 additions and 8 deletions

View File

@@ -197,19 +197,19 @@ let createMasterFilterFrame=()=>{
}); });
} }
me.toFriendlyName=(symbol)=>{ me.toFriendlyName=(symbol)=>{ // not really required anymore because I replace the name on DB now.
let symbolDisplayName=symbol; let symbolDisplayName=symbol;
if (symbolDisplayName==="$XSP.X") { /* if (symbolDisplayName==="$XSP.X") {
symbolDisplayName="XSP"; symbolDisplayName="XSP";
} } */
return(symbolDisplayName); return(symbolDisplayName);
} }
me.toBrokerName=(symbol)=>{ me.toBrokerName=(symbol)=>{ // not really required anymore because I replace the name on DB now.
let symbolBrokerName=symbol; let symbolBrokerName=symbol;
if (symbolBrokerName==="XSP") { /*if (symbolBrokerName==="XSP") {
symbolBrokerName="$XSP.X"; symbolBrokerName="$XSP.X";
} } */
return(symbolBrokerName); return(symbolBrokerName);
} }

View File

@@ -9,7 +9,7 @@ ls quoteStore_202*.sqlite3.gz | while read db; do
echo unpacking $db echo unpacking $db
gzip -dc $db >/tmp/xx.sqlite3 gzip -dc $db >/tmp/xx.sqlite3
echo processing... echo processing...
sqlite3 /tmp/xx.sqlite3 'create table tmp as select timestamp,symbol,data from OptionQuotes;' sqlite3 /tmp/xx.sqlite3 "create table tmp as select timestamp,replace(replace(symbol,'$',''),'.X','') symbol,data from OptionQuotes;"
sqlite3 /tmp/xx.sqlite3 'drop table OptionQuotes;' sqlite3 /tmp/xx.sqlite3 'drop table OptionQuotes;'
sqlite3 /tmp/xx.sqlite3 'alter table tmp rename to OptionQuotes;' sqlite3 /tmp/xx.sqlite3 'alter table tmp rename to OptionQuotes;'
sqlite3 /tmp/xx.sqlite3 '.dump OptionQuotes' | sqlite3 consolidated.sqlite3 sqlite3 /tmp/xx.sqlite3 '.dump OptionQuotes' | sqlite3 consolidated.sqlite3

View File

@@ -13,7 +13,8 @@ find . -maxdepth 1 -name 'quoteStore_202*.sqlite3.gz' | while read db; do
echo unpacking $db echo unpacking $db
gzip -dc $db >/tmp/xx.sqlite3 gzip -dc $db >/tmp/xx.sqlite3
echo processing... echo processing...
sqlite3 /tmp/xx.sqlite3 'create table tmp as select timestamp,symbol,data from OptionQuotes;' sqlite3 /tmp/xx.sqlite3 "create table tmp as select timestamp,replace(replace(symbol,'$',''),'.X','') symbol,data from OptionQuotes;"
sqlite3 /tmp/xx.sqlite3 'drop table OptionQuotes;' sqlite3 /tmp/xx.sqlite3 'drop table OptionQuotes;'
sqlite3 /tmp/xx.sqlite3 'alter table tmp rename to OptionQuotes;' sqlite3 /tmp/xx.sqlite3 'alter table tmp rename to OptionQuotes;'
sqlite3 /tmp/xx.sqlite3 '.dump OptionQuotes' | sqlite3 consolidated.sqlite3 sqlite3 /tmp/xx.sqlite3 '.dump OptionQuotes' | sqlite3 consolidated.sqlite3