Bitcoin Forum
December 15, 2024, 05:22:54 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Calculating volumes from ticker data  (Read 586 times)
ishnigarrab (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0



View Profile
August 03, 2015, 01:13:36 AM
 #1

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! Wink
bounst
Full Member
***
Offline Offline

Activity: 228
Merit: 100


View Profile
August 03, 2015, 06:06:42 AM
 #2

f(x)=sum (x0,xn)
ishnigarrab (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0



View Profile
August 03, 2015, 05:05:08 PM
 #3

@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?
ishnigarrab (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0



View Profile
August 05, 2015, 01:56:29 AM
 #4

 Undecided
IBlTS
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
August 08, 2015, 08:25:38 PM
 #5

Looking for some Auditors for our coin please
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!