dblock / iex-ruby-client

IEX Finance API Ruby Client
MIT License
118 stars 60 forks source link

Website url #74

Closed deveshp530 closed 4 years ago

deveshp530 commented 4 years ago

I am trying to show the website url on my application, but it is not showing the correct link. Screen Shot 2020-05-19 at 2 42 08 PM

Not sure why this is happening

dblock commented 4 years ago

This looks similar to https://github.com/dblock/iex-ruby-client/issues/73. Can you please post a repro of this?

deveshp530 commented 4 years ago

This looks similar to #73. Can you please post a repro of this?

https://github.com/deveshp530/stock-app

dblock commented 4 years ago

@deveshp530 I failed to run your app, after bundle install, yarn and rails assets:precompile for me it fails at

Compiling...
Compilation failed:
/Users/dblock/source/stock-app/node_modules/webpack-cli/bin/cli.js:93
                throw err;
                ^

Please provide detailed instructions on how to reproduce this problem, hopefully not an entire rails app.

dblock commented 4 years ago

I managed to make it work.

This happens because you're running against IEX sandbox.

Test data randomization

Data returned from sandbox API calls is scrambled and should not be used for purposes outside of testing. However, test calls return the same properties and data types as they will in production, which allows for full functionality testing.

Many endpoints that return a date — such as Historical Prices — will have the date accurately returned in the sandbox environment, so as to allow users to test out charting functionality within their application or project. "

deveshp530 commented 4 years ago

So just turn sandbox off and update publish token?

dblock commented 4 years ago

So just turn sandbox off and update publish token?

Yes.

dblock commented 4 years ago

I'm going to stop recommending the sandbox environment as the default in the README, it confuses new users, https://github.com/dblock/iex-ruby-client/pull/75.