update table in watchlist
This commit is contained in:
parent
bfea65aa3b
commit
0bc2ec9bb7
@ -880,7 +880,7 @@
|
|||||||
class:text-right={column.align === "right"}
|
class:text-right={column.align === "right"}
|
||||||
>
|
>
|
||||||
{#if item[column.key] === null || item[column.key] === undefined}
|
{#if item[column.key] === null || item[column.key] === undefined}
|
||||||
-
|
n/a
|
||||||
{:else if column.key === "symbol"}
|
{:else if column.key === "symbol"}
|
||||||
<HoverStockChart symbol={item[column.key]} />
|
<HoverStockChart symbol={item[column.key]} />
|
||||||
{:else if column.key === "name"}
|
{:else if column.key === "name"}
|
||||||
@ -923,7 +923,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{item[column.key] !== null
|
{item[column.key] !== null
|
||||||
? item[column.key]?.toFixed(2)
|
? item[column.key]?.toFixed(2)
|
||||||
: "-"}
|
: "n/a"}
|
||||||
</div>
|
</div>
|
||||||
{:else if column.type === "percent"}
|
{:else if column.type === "percent"}
|
||||||
{item[column.key] > 0.01
|
{item[column.key] > 0.01
|
||||||
@ -951,7 +951,7 @@
|
|||||||
{:else if item[column.key] === "Hold"}
|
{:else if item[column.key] === "Hold"}
|
||||||
<span class="text-[#FFA838]">{item[column.key]}</span>
|
<span class="text-[#FFA838]">{item[column.key]}</span>
|
||||||
{:else}
|
{:else}
|
||||||
-
|
n/a
|
||||||
{/if}
|
{/if}
|
||||||
{:else if column.type === "sentiment"}
|
{:else if column.type === "sentiment"}
|
||||||
<div
|
<div
|
||||||
|
|||||||
@ -136,6 +136,18 @@
|
|||||||
rule: "institutionalOwnership",
|
rule: "institutionalOwnership",
|
||||||
type: "percent",
|
type: "percent",
|
||||||
},
|
},
|
||||||
|
{ name: "Top Analyst Rating", rule: "topAnalystRating", type: "rating" },
|
||||||
|
{ name: "Top Analyst Count", rule: "topAnalystCounter", type: "int" },
|
||||||
|
{
|
||||||
|
name: "Top Analyst Price Target",
|
||||||
|
rule: "topAnalystPriceTarget",
|
||||||
|
type: "float",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Top Analyst PT Upside",
|
||||||
|
rule: "topAnalystUpside",
|
||||||
|
type: "percentSign",
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
let ruleOfList = [
|
let ruleOfList = [
|
||||||
@ -1553,7 +1565,7 @@
|
|||||||
{:else if row?.type === "str"}
|
{:else if row?.type === "str"}
|
||||||
{item[row?.rule] !== null
|
{item[row?.rule] !== null
|
||||||
? item[row?.rule]
|
? item[row?.rule]
|
||||||
: "-"}
|
: "n/a"}
|
||||||
{:else if row?.type === "float"}
|
{:else if row?.type === "float"}
|
||||||
<div
|
<div
|
||||||
class="relative flex items-center justify-end"
|
class="relative flex items-center justify-end"
|
||||||
@ -1579,12 +1591,12 @@
|
|||||||
|
|
||||||
{item[row?.rule] !== null
|
{item[row?.rule] !== null
|
||||||
? item[row?.rule]?.toFixed(2)
|
? item[row?.rule]?.toFixed(2)
|
||||||
: "-"}
|
: "n/a"}
|
||||||
</div>
|
</div>
|
||||||
{:else if row?.type === "percent"}
|
{:else if row?.type === "percent"}
|
||||||
{item[row?.rule] !== null
|
{item[row?.rule] !== null
|
||||||
? item[row?.rule]?.toFixed(2) + "%"
|
? item[row?.rule]?.toFixed(2) + "%"
|
||||||
: "-"}
|
: "n/a"}
|
||||||
{:else if row?.type === "percentSign"}
|
{:else if row?.type === "percentSign"}
|
||||||
{#if item[row?.rule] >= 0}
|
{#if item[row?.rule] >= 0}
|
||||||
<span class="text-[#00FC50]"
|
<span class="text-[#00FC50]"
|
||||||
@ -1611,7 +1623,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{:else}
|
{:else}
|
||||||
-
|
n/a
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user