pull down to refresh
20 sats \ 8 replies \ @k00b 20 Oct 2022 \ on: πΏπ¦ I made a site for my fellow South Africans to check the sats/Rand rate bitcoin
I wonder if we should add the rand to the currencies we support.
@ekzyis did coinbase's API support the Rand?
Would be much appreciated!
reply
Doesn't seem like it. It's not listed in https://api.exchange.coinbase.com/products.
Got that link from
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getproducts-1.
But I'll check again later.
reply
Okay, I checked again and I noticed the ticker for the South African Rand is ZAR.
But this one also does not show up in their products.
Kraken also does not support it:
https://support.kraken.com/hc/en-us/articles/201893658-Currency-pairs-available-for-trading-on-Kraken
However, Binance supports it:
https://api.binance.com/api/v3/ticker/price?symbol=BTCZAR
I can create a PR later
reply
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
reply
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:
reply
reply
Thanks a lot!
reply