-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Why is volume an []int64 and not []float64 ? #126
Comments
Hi @larscom, when I started building this project, the data source that I used for the data had the volume as int64, so I followed that convention. However, it is a good point. What data source you are seeing volume as float64? I can certainly make it a float64 moving forward too? |
hi @cinar, my data source is binance or bitvavo (crypto). Their volume is always a floating point number. Besides that i think it makes sense to make volume a float64 anyhow. |
It is a good point. I can see that it does make sense for crypto data. Let me see if I can change this. |
Hi @larscom, please check the |
Looking good to me! |
Fixes #126 by changing the Volume from int64 to float64. This is going to be a breaking change for the projects depending to this module, so I will be incrementing the minor version number.
Awesome, please try it with release v1.3.0. |
Hi,
Im exploring this lib and kinda new to this stuff, and one thing i don't understand is why the func
VolumeWeightedAveragePrice
for example and many other funcs expects a volume of type []int64?Inside that func the []int64 gets converted to []float64 anyway.
indicator/volume_indicators.go
Line 154 in 3959988
If any one has an answer for me, im pleased ;-)
Thanks!
The text was updated successfully, but these errors were encountered: