remove symbol friendlyname translation; implemented
on DB.
This commit is contained in:
@@ -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;
|
||||
if (symbolDisplayName==="$XSP.X") {
|
||||
/* if (symbolDisplayName==="$XSP.X") {
|
||||
symbolDisplayName="XSP";
|
||||
}
|
||||
} */
|
||||
return(symbolDisplayName);
|
||||
}
|
||||
|
||||
me.toBrokerName=(symbol)=>{
|
||||
me.toBrokerName=(symbol)=>{ // not really required anymore because I replace the name on DB now.
|
||||
let symbolBrokerName=symbol;
|
||||
if (symbolBrokerName==="XSP") {
|
||||
/*if (symbolBrokerName==="XSP") {
|
||||
symbolBrokerName="$XSP.X";
|
||||
}
|
||||
} */
|
||||
return(symbolBrokerName);
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ ls quoteStore_202*.sqlite3.gz | while read db; do
|
||||
echo unpacking $db
|
||||
gzip -dc $db >/tmp/xx.sqlite3
|
||||
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 'alter table tmp rename to OptionQuotes;'
|
||||
sqlite3 /tmp/xx.sqlite3 '.dump OptionQuotes' | sqlite3 consolidated.sqlite3
|
||||
|
||||
@@ -13,7 +13,8 @@ find . -maxdepth 1 -name 'quoteStore_202*.sqlite3.gz' | while read db; do
|
||||
echo unpacking $db
|
||||
gzip -dc $db >/tmp/xx.sqlite3
|
||||
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 'alter table tmp rename to OptionQuotes;'
|
||||
sqlite3 /tmp/xx.sqlite3 '.dump OptionQuotes' | sqlite3 consolidated.sqlite3
|
||||
|
||||
Reference in New Issue
Block a user