Most marking errors are not wrong prices but wrong timestamps. In a single day, the domestic night session, Singapore trades and exchange settlement prices land at different moments. Pairing a 23:00 crude quote with a warehouse receipt valued at the close produces a collateral ratio that means nothing.
Align the clocks first. Convert every external feed to one time zone on arrival and label it clearly as live, settlement or closing price; callers should not have to guess. A quote without a timestamp is better flagged for confirmation than treated as current.
Then fix the selection rule. Margin calls use the live price, valuation uses the settlement price, and the two legs stay separate. When a market is missing, fall back in a predefined order and log the substitution. A rule written into the system is steadier than a judgement made on the spot each time.
Add a degraded mode. If a feed is offline beyond a set interval, freeze the ratio at the last valid price, mark it stale, and recompute once data returns. A late margin call is cheaper than acting on an old price as though it were current. SHA-256 can prove data was not altered; it cannot prove the price belongs to this instant.