-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binance is returning wonky USDC prices; use BUSD or USDT #12
Comments
Oh, it's probably because Binance stopped supporting USDC: https://techcrunch.com/2022/09/05/binance-issuer-of-stablecoin-busd-to-discontinue-support-for-usdc-usdp-and-tusd/ So, we probably want to use |
That URL doesn't work for me, at least at this moment:
The old URL gives the same error. Does this work for you? Maybe there's something wrong in my setup? |
It works for me when I request it from Canada. However when I turn on a VPN to the USA, I get the same error. 😞 I get the same error when I request the URL that's currently in lightwalletd, too, so it might still be worth changing it. |
|
Yes, replacing Should we include both the When should we actually merge zcash#354, by the way? |
I noticed in lightwalletd's logs that it was excluding the price from binance because it was 55.8 whereas the actual price of ZEC was around 42.7. Their APIs for USDC prices seem to be broken, not returning the correct price for all the coins I tried.
I was able to get the correct price using any of
https://api.binance.com/api/v3/ticker/price?symbol=ZECBUSD
orhttps://api.binance.com/api/v3/ticker/price?symbol=ZECUSDT
,https://api.binance.com/api/v3/avgPrice?symbol=ZECBUSD
,https://api.binance.com/api/v3/avgPrice?symbol=ZECUSDT
.I'm not sure what's going on with the USDC prices over at binance, but you might want to change the Binance URL in lightwalletd to one of the above.
The text was updated successfully, but these errors were encountered: