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

Price number processing leading to number corruption #8

Open
stealzy opened this issue Apr 11, 2020 · 3 comments
Open

Price number processing leading to number corruption #8

stealzy opened this issue Apr 11, 2020 · 3 comments

Comments

@stealzy
Copy link

stealzy commented Apr 11, 2020

For example let's take a look on VTBR M5 data for first hour of 2016.01.04 day:

library site UI
0.07833999999999999 0.0783400
0.07841000000000001 0.0784100
@ffeast
Copy link
Owner

ffeast commented May 10, 2020

Hmm good point, this definitely needs to be fixed.
@stealzy do you have a pull request for that? I don't know what I'd have time for that

@stealzy
Copy link
Author

stealzy commented May 11, 2020

Попытаю питон на этой неделе.
If API will still open.

@Ta-nu-ki
Copy link

Ta-nu-ki commented Aug 22, 2020

To reproduce and test

from finam.export import Exporter, Market, Timeframe
from datetime import datetime
ticker = "VTBR"
exporter = Exporter()
data = exporter.download(id_=exporter.lookup(code=ticker).index[0],
                         market=Market.SHARES,
                         timeframe=Timeframe.MINUTES5,
                         start_date=datetime(2016, 1, 4),
                         end_date=datetime(2016, 1, 4))
print(data.iloc[:,0].to_list())
print(data.info())

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

3 participants