project-serum / serum-dex-ui

Example implementation of a UI for the Serum DEX
Other
355 stars 538 forks source link

Tradingview chart loading issue in DEX #132

Open pointersolana opened 2 years ago

pointersolana commented 2 years ago
Screenshot 2021-10-23 at 17 15 51

Getting the API data from bonfida is giving CORS errors on the live open project serum DEX but also local development versions.

https://openserum.ch/dex/#/market/ByRys5tuUWDgL73G8JBAEfkdFf8JWBzPBDHsBVQ5vbQA

exonchain commented 2 years ago

The same issue here, seems blocked by cloudflare?

Access to fetch at 'https://serum-api.bonfida.com/tv/config' from origin 'MY_DOMAIN/localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
akdavidsson commented 2 years ago

Same issue here any news on this?

s-bilic commented 2 years ago

@akdavidsson @exonchain any solutions yet?

utx0 commented 2 years ago

Same issue here. Anyone got a fix? Is the backend API code posted anywhere? Might need to run our own API server?

exonchain commented 2 years ago

@akdavidsson @exonchain any solutions yet?

I asked in Discord. The data service of TradingView is a charged service, you need to contact Bonfida to apply(and pay), then they will add you to their whitelist. Please correct me if anything wrong.

exonchain commented 2 years ago

Same issue here. Anyone got a fix? Is the backend API code posted anywhere? Might need to run our own API server?

I also tend to set up my own server, if there is a TradingView data stream setting method. Please share. :)

interbiznw commented 2 years ago

Lol wow. Should probably be stated in this repo your time and efforts are worthless as Bonfida has changed their API and you need PAID access of over $1000 USD Monthly for access to the Tradingview data stream. Makes trying to set this up pointless.

This repo changes to make OHLCV candles built from on chain data using Bonfida's API A REQUIREMENT

Now makes setting up serum-dex-ui a PAID ONLY option. What a waste of time setting this up to get all the way to that point