FOrmatting and bugfix in loader script
This commit is contained in:
@@ -42,10 +42,11 @@ let addToOrder=(openType,optionData)=>{
|
||||
console.log("AddToOrder",openType,optionData);
|
||||
|
||||
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);
|
||||
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=_=>{
|
||||
|
||||
@@ -9,7 +9,7 @@ while getopts "d" opt; do
|
||||
esac
|
||||
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
|
||||
gzip -dc $db >/tmp/xx.sqlite3
|
||||
echo processing...
|
||||
|
||||
Reference in New Issue
Block a user