BitShares Forum

Main => Technical Support => Topic started by: monsterer on October 08, 2014, 08:47:18 am

Title: Market containing assets with different precisions? [solved]
Post by: monsterer on October 08, 2014, 08:47:18 am
What happens if you have a market containing two assets which each have different precisions?
Title: Re: Market containing assets with different precisions?
Post by: xeroc on October 08, 2014, 09:51:12 am
What happens if you have a market containing two assets which each have different precisions?
I don't see the issue?
- It's allowed
- on the blockchain all numbers are integers ...
- precision is more a tradeoff between price and max amount of shares
Title: Re: Market containing assets with different precisions?
Post by: monsterer on October 08, 2014, 09:54:17 am
I don't see the issue?
- It's allowed
- on the blockchain all numbers are integers ...
- precision is more a tradeoff between price and max amount of shares

I think I was getting confused with how the volume traded and lasts price numbers are represented - obviously the volume/prices traded are in the quote currency, so should obey the quote precision rules.
Title: Re: Market containing assets with different precisions? [solved]
Post by: monsterer on October 08, 2014, 10:06:13 am
Actually, I suppose this means I can't buy less than USD's precision worth of USD with BTSX?

Eg. buying 1.00001 quantity of USD with BTSX ought to fail?
Title: Re: Market containing assets with different precisions? [solved]
Post by: xeroc on October 08, 2014, 12:26:35 pm
Actually, I suppose this means I can't buy less than USD's precision worth of USD with BTSX?

Eg. buying 1.00001 quantity of USD with BTSX ought to fail?
*confirmed*