Bitcoin Forum

Economy => Trading Discussion => Topic started by: ishnigarrab on August 03, 2015, 01:13:36 AM



Title: Calculating volumes from ticker data
Post by: ishnigarrab on August 03, 2015, 01:13:36 AM
Hello people!

I have an simple app on Google Play that allow you to see value charts of all major USD exchanges. I want to revamp it now, add some new features and turn it into a better app.

One of these improvements is displaying volume data. I have around one year worth of ticker data, it displays volume numbers in huge amounts, so I don't know how to use these numbers to display on an bar chart over a specific amount of time. I have values collected every minute...

Any help will be appreciated, sorry if I posted on the wrong board! ;)


Title: Re: Calculating volumes from ticker data
Post by: bounst on August 03, 2015, 06:06:42 AM
f(x)=sum (x0,xn)


Title: Re: Calculating volumes from ticker data
Post by: ishnigarrab on August 03, 2015, 05:05:08 PM
@bounst: Thanks for the quick reply! So, my problem is that sometimes there is a decrease in volume, here is a sample from BTC-e ticker:

Code:
[
{"high":281.992,"low":277,"avg":279.496,"vol":988497.19413,"vol_cur":3540.14838,"last":280,"buy":280,"sell":279.999,"updated":1438606406,"server_time":1438606407},
{"high":281.992,"low":277,"avg":279.496,"vol":989922.60862,"vol_cur":3545.21788,"last":280,"buy":279.967,"sell":279.9,"updated":1438606480,"server_time":1438606481},
{"high":281.992,"low":277,"avg":279.496,"vol":985727.04418,"vol_cur":3530.19198,"last":280,"buy":280,"sell":279.889,"updated":1438606558,"server_time":1438606559},
{"high":281.992,"low":277,"avg":279.496,"vol":989423.12397,"vol_cur":3543.3898,"last":279.889,"buy":280,"sell":279.889,"updated":1438606628,"server_time":1438606628},
{"high":281.992,"low":277,"avg":279.496,"vol":991124.31278,"vol_cur":3549.46729,"last":280,"buy":280,"sell":279.76,"updated":1438606698,"server_time":1438606699},
{"high":281.992,"low":277,"avg":279.496,"vol":991514.1889,"vol_cur":3550.85955,"last":280,"buy":280,"sell":279.841,"updated":1438606766,"server_time":1438606768},
{"high":281.992,"low":277,"avg":279.496,"vol":991612.16701,"vol_cur":3551.20926,"last":279.999,"buy":279.999,"sell":279.841,"updated":1438606810,"server_time":1438606811},
{"high":281.992,"low":277,"avg":279.496,"vol":991612.16701,"vol_cur":3551.20926,"last":279.714,"buy":279.999,"sell":279.842,"updated":1438606843,"server_time":1438606843},
{"high":281.992,"low":277,"avg":279.496,"vol":991528.9032,"vol_cur":3550.90993,"last":279.999,"buy":279.999,"sell":279.842,"updated":1438606881,"server_time":1438606882},
]

You can see that from the 2nd set to the 3rd, the volume lowered from ~989922 to ~985727, and I don't know how to represent it...

Sorry if I'm being a little dumb, but i could no understand your post very well... In the case above (2nd to 3rd line volumes) how could I display the correct volume between them, as they are a little above 1 minute from each other?


Title: Re: Calculating volumes from ticker data
Post by: ishnigarrab on August 05, 2015, 01:56:29 AM
 :-\


Title: Re: Calculating volumes from ticker data
Post by: IBlTS on August 08, 2015, 08:25:38 PM
Looking for some Auditors for our coin please