Skip to content
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

update the real-time fil price API used; https://api.binance.com/api/v3/avgPrice?symbol=FILUSDT now fails #171

Open
gruns opened this issue Dec 19, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@gruns
Copy link
Contributor

gruns commented Dec 19, 2022

% curl -i 'https://api.binance.com/api/v3/avgPrice?symbol=FILUSDT'
HTTP/1.1 451 
Server: CloudFront
Date: Mon, 19 Dec 2022 08:29:19 GMT
Content-Length: 224
Connection: keep-alive
Content-Type: application/json
X-Cache: Error from cloudfront
Via: 1.1 bfad77da64cd65a36fcbbe44acb655e8.cloudfront.net (CloudFront)
X-Amz-Cf-Pop: SFO53-P2
X-Amz-Cf-Id: 7AS3azuV_3DrDwUIPXvdUNCdutZ65rxfP4cl5BUsXXsYRxBf1ByevQ==

{
  "code": 0,
  "msg": "Service unavailable from a restricted location according to 'b. Eligibility' in https://www.binance.com/en/terms. Please contact customer service if you believe you received this message in error."
}

this results in

  1. errors in the console
    image
  2. an old, default FIL price of $5 to be used instead of the most up-to-date price, which is $3 as i type this
@gruns gruns added the bug Something isn't working label Dec 19, 2022
@gruns
Copy link
Contributor Author

gruns commented Feb 7, 2023

i just found https://tldr.filecoin.io/, which also loads fil's price dynamically

the api https://tldr.filecoin.io/ uses? coingecko's:

is this endpoint a suitable replacement for binance's?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant