BitShares Forum

Main => Technical Support => Topic started by: monsterer on October 08, 2014, 10:20:25 AM

Title: blockchain_market_price_history returns price from quote but volume from base
Post by: monsterer on October 08, 2014, 10:20:25 AM
When calling

blockchain_market_price_hostory ["USD","BTSX","20141003T000000",86400,"each_day"]

we get:

{"timestamp":"20141004T000000","highest_bid":0.032679738562091512,"lowest_ask":0.030519999755840001,"opening_price":0.032880567913168998,"closing_price":0.032880567913168998,"volume":99851850031,"recent_average_price":null}

which has price in USD (quote price) but volume in BTSX (base volume).

Is this by design?

Cheers, Paul.
Title: Re: blockchain_market_price_history returns price from quote but volume from base
Post by: modprobe on October 13, 2014, 01:24:22 PM
Yes. Volume measurements are always given in the base asset.
Title: Re: blockchain_market_price_history returns price from quote but volume from base
Post by: monsterer on October 13, 2014, 02:43:50 PM
Quote from: modprobe on October 13, 2014, 01:24:22 PM
Yes. Volume measurements are always given in the base asset.

You're right - I was confused.