dblock / iex-ruby-client

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

Why do the prices change at every call? #81

Closed chanp-ark closed 3 years ago

chanp-ark commented 3 years ago

Why do the prices change at every call?

when I call,

client.ohlc(ticker_symbol).close.price for the closing price

or

client.quote(ticker_symbol).latest_price for the current price,

it changes every time. Anyone know what?

dblock commented 3 years ago

Maybe a question to IEX?

chanp-ark commented 3 years ago

In case anyone has the same question in the future, data returned from the Sandbox API calls is scrambled

dblock commented 3 years ago

Oh so this is a feature of the sandbox environment?

dblock commented 3 years ago

Care to PR a small update to https://github.com/dblock/iex-ruby-client#sandbox-environment that says something like "and results, such as closing market prices, vary on every call" ?

dblock commented 3 years ago

https://github.com/dblock/iex-ruby-client/pull/83