This commit is contained in:
MuslemRahimi 2025-01-02 00:15:27 +01:00
parent 84ff95b832
commit 1b3bbd1da1
3 changed files with 4 additions and 2 deletions

View File

@ -159,6 +159,7 @@
type: "percentSign",
},
{ name: "Change OI", rule: "changeOI", type: "decimal" },
{ name: "Total OI", rule: "totalOI", type: "int" },
];
allRows = [...allRows, ...specificRows];

View File

@ -1,4 +1,4 @@
export const load = async ({ locals, setHeaders }) => {
export const load = async ({ locals }) => {
const getStocks = async () => {
const { apiKey, apiURL } = locals;
@ -14,7 +14,6 @@ export const load = async ({ locals, setHeaders }) => {
});
const output = await response.json();
setHeaders({ "cache-control": "public, max-age=60*5" });
return output;
};

View File

@ -5,6 +5,7 @@
export let data;
const defaultList = [
{ name: "Total OI", rule: "totalOI" },
{ name: "Change OI", rule: "changeOI" },
{ name: "Price", rule: "price" },
{ name: "% Change", rule: "changesPercentage" },
@ -19,6 +20,7 @@
"eps",
"marketCap",
"changeOI",
"totalOI",
]);
</script>