feat: saxo price

This commit is contained in:
OpenSquared
2026-07-23 10:07:51 +02:00
parent 502ef6bf17
commit 1ac2270271
4 changed files with 114 additions and 4 deletions

View File

@@ -438,7 +438,10 @@ export default function Dashboard() {
<div className="mt-1.5 pt-1.5 border-t border-slate-700/30 space-y-1">
{((watchlistQuotesData as any)?.items ?? []).map((it: any) => (
<div key={it.ticker} className="flex items-center justify-between gap-1.5 text-[10px] whitespace-nowrap">
<span className="text-slate-300 font-mono shrink-0">{it.ticker}</span>
<span className="text-slate-300 font-mono shrink-0 flex items-center gap-1">
{it.ticker}
{it.quote_source === 'saxo' && <span className="text-emerald-500" title="Priced from Saxo, not yfinance"></span>}
</span>
<div className="flex items-center gap-1.5 shrink-0">
<span className="text-slate-400 font-mono">{fmtPrice(it.price)}</span>
<span className={clsx('font-mono font-bold w-11 text-right shrink-0', (it.change_pct ?? 0) >= 0 ? 'text-emerald-400' : 'text-red-400')}>