public inbox for gwml@vger.gnuweeb.org
 help / color / mirror / Atom feed
From: Ammar Faizi <ammarfaizi2@gnuweeb.org>
To: "Vignesh Kumar Nadar (731 Lexington Avenue)"
	<vnadar4@bloomberg.net>, Emma Demers <edemers8@bloomberg.net>,
	Srishti Sharma <ssharma1074@bloomberg.net>
Cc: Tanya Kureishi <tkureishi@bloomberg.net>,
	Serena Chang <schang394@bloomberg.net>,
	Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>,
	gwml@vger.gnuweeb.org
Subject: Follow up on Heatmap Bug with Multi-Currency Watchlist
Date: Tue, 19 Aug 2025 00:08:17 +0700	[thread overview]
Message-ID: <20250818170817.GA288084-ammarfaizi2@gnuweeb.org> (raw)

Hi Vignesh, Emma, Srishti,

It was nice to meet you guys. Thanks for the Zoom meeting.

This is the follow up on the heatmap bug.

The bug occurs when a watchlist includes assets priced in different
currencies. Below is a step-by-step reproduction of the bug:

1) Create a new watchlist with USD as the base currency.

2) Add the following trades:

  - Buy 1 Ethereum (XETUSD:CUR) at price 4,000 USD.
  - Buy 1 Bitcoin (XBTUSD:CUR) at price 116,000 USD.
  - Buy 100 USD (USDIDR:CUR) at price 16,000 IDR (Indonesian Rupiah).

In this scenario, Bitcoin should be my largest holding in USD terms.
However, the heatmap incorrectly displays USDIDR as the largest holding,
despite its value being only 100 USD.

I think a heatmap tile is now calculated by multiplying the number
of shares with the current price without caring about the currency
difference. That's probably the problematic part.

For now, the heatmap feature in the watchlist section completely messes
my visual up and not much useful because of this bug.

To be more specific for the Engineering team, I've included a JSON
payload for the watchlist creation endpoint:

HTTP POST
https://login.bloomberg.com/watchlist-service/create/36DBC7EAF256426ABFB0F8F8D21B2A98

{
    "portMeta": {
        "name": "ABC",
        "currency": "USD",
        "isDefault": false
    },
    "holdings": [
        {
            "security": "XETUSD:CUR",
            "buydate": 1755534614182,
            "shares": 1,
            "buyprice": 4000,
            "torder": 0
        },
        {
            "security": "XBTUSD:CUR",
            "buydate": 1755534575189,
            "shares": 1,
            "buyprice": 116000,
            "torder": 1
        },
        {
            "security": "USDIDR:CUR",
            "buydate": 1755534551554,
            "shares": 100,
            "buyprice": 16000,
            "torder": 2
        }
    ]
}

Let me know if you need further details to resolve this issue.

Thank you!

Best regards,
-- 
Ammar Faizi


             reply	other threads:[~2025-08-18 17:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-18 17:08 Ammar Faizi [this message]
2025-08-19 14:18 ` Re:Follow up on Heatmap Bug with Multi-Currency Watchlist Vignesh Kumar Nadar (BLOOMBERG/ 731 LEX)
2025-08-20 21:34 ` Follow " Alviro Iskandar Setiawan
2025-08-20 21:45   ` Ammar Faizi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250818170817.GA288084-ammarfaizi2@gnuweeb.org \
    --to=ammarfaizi2@gnuweeb.org \
    --cc=alviro.iskandar@gnuweeb.org \
    --cc=edemers8@bloomberg.net \
    --cc=gwml@vger.gnuweeb.org \
    --cc=schang394@bloomberg.net \
    --cc=ssharma1074@bloomberg.net \
    --cc=tkureishi@bloomberg.net \
    --cc=vnadar4@bloomberg.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox