FOrmatting and bugfix in loader script

This commit is contained in:
Joe Tretter
2020-04-24 16:27:06 -05:00
parent a1a43f416a
commit b8b830f154
2 changed files with 3 additions and 2 deletions

View File

@@ -42,10 +42,11 @@ let addToOrder=(openType,optionData)=>{
console.log("AddToOrder",openType,optionData); console.log("AddToOrder",openType,optionData);
let price=(openType.substr(0,1)==="b")?optionData.ask:optionData.bid; let price=(openType.substr(0,1)==="b")?optionData.ask:optionData.bid;
price=Number(price*100).toLocaleString('en',{minimumFractionDigits: 2, maximumFractionDigits: 2})
costAmount+=(price*100) * ((openType.substr(0,1)==="b")?-1:1); costAmount+=(price*100) * ((openType.substr(0,1)==="b")?-1:1);
showCostAmount(); showCostAmount();
$("#listOrderItems").append(`<li>${openType} | ${optionData.symbol} | ${price*100}</li>`); $("#listOrderItems").append(`<li><a onclick='alert("TODO - not yet implemented.");'>[X]</a> ${openType} | ${optionData.symbol} | ${price*100}</li>`);
} }
let showCostAmount=_=>{ let showCostAmount=_=>{

View File

@@ -9,7 +9,7 @@ while getopts "d" opt; do
esac esac
done done
find . -name 'quoteStore_202*.sqlite3.gz' | while read db; do 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...