CA BTC is shutting down soon (tomorrow?) and we need to switch to someone else. Bull has a JSON-RPC API at https://www.bullbitcoin.com/api/price to power their client-side-only rates page. It seems unauthenticated, so we can just use that instead of scraping some HTML or shudder running a headless browser to execute the JS to grab the prices.
$ curl -s 'https://www.bullbitcoin.com/api/price' \
-X POST \
-H 'Content-type: application/json' \
-H 'Referer: https://www.bullbitcoin.com/rates' \
--data-raw '{"id":"test-cad","jsonrpc":"2.0","method":"getUserRate","params":{"element":{"fromCurrency":"BTC","toCurrency":"CAD"}}}'
{
"jsonrpc": "2.0",
"id": "test-cad",
"result": {
"element": {
"userPrice": 9073149,
"userGroupMarkup": 0,
"fromCurrency": "BTC",
"toCurrency": "CAD",
"precision": 2,
"price": 9073149,
"priceCurrency": "CAD",
"indexPrice": 9289118,
"createdAt": "2026-03-30T17:55:38.678Z"
}
}
}
For BCH pricing, instead of finding another source for now, use conversion rates from SimpleSwap with the BTC price from Bull.