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

Change symbol programatically in react native (or react) #362

Open
jalaliyev opened this issue Nov 3, 2023 · 1 comment
Open

Change symbol programatically in react native (or react) #362

jalaliyev opened this issue Nov 3, 2023 · 1 comment

Comments

@jalaliyev
Copy link

jalaliyev commented Nov 3, 2023

I am creating stock app with using React Native. I want to send some customization value to change chart. For instance, If user clicks Bitcoin or some other coin, I have to display appropriate coin info. Do we have acceptable coin list to validate? Another example should be, I want to display in 1 hour changes as default. If I select 1 week, I should be able to send this value to the TradingView widget.

Screenshot 2023-11-03 at 11 05 49

My real question is how can I send selected value from my source code to the lib?

Thanks!

@romfrancois romfrancois changed the title Change symbol pragramatically in react native (or react) Change symbol programatically in react native (or react) Nov 3, 2023
@romfrancois
Copy link
Contributor

I would suggest having a read at the documentation website to have a better understand on how the library and the datafeed work.

Do we have acceptable coin list to validate?

That's up to your datafeed. You cold have a function that would target a specific endpoint to return that list. But that's not something TradingView supports.

I want to display in 1 hour changes as default

If you want to set that resolution at the instantiation level that would be a Widget Constructor parameter to set. If that's at a later stage, you could use the setResolution API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants