pull down to refresh

Odd that Coinbase's API doesn't support ZAR, the first google result for "sats to zar" is Coinbase's converter: https://www.coinbase.com/converter/sats/zar

Yes, they have a converter but their API only exposes the ones they support trading for.

I tried to find out where their converter gets the data but it was too messy so I kept looking elsewhere.

reply

Oh, turns out the Coinbase API does indeed support it:

See https://api.coinbase.com/v2/currencies (search for ZAR)

So we can just use https://api.coinbase.com/v2/prices/BTC-ZAR/spot as for the other currencies!

So this is the place where one should look up such info:

https://docs.cloud.coinbase.com/sign-in-with-coinbase/docs/api-currencies