-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Release 0.9.2e
http://download.nxtcrypto.org/nxt-client-0.9.2e.zipsha256: 5050e51728384d9b903377b5a4415cfada04fb207ab894a00abaeebcb70f0a2e
Change log:
Fractional asset quantities. Enjoy another reset of testnet.
When issuing an asset, the maximum allowed number of digits after the asset
quantity decimal point can be specified as "decimals" parameter (allowed
values 0 to
. For example, this would be 2 for a currency like EUR, 8 for
Bitcoin.
Similar to prices, asset quantities can be specified either as quantityQNT,
expressed in the smallest possible quantity unit ("quant") for the specific
asset, or as quantityINT, expressed in whole asset units (which may however
contain a fractional part despite its name).
For example, 9.97 USD can be expressed as either quantityINT="9.97", or
quantityQNT="997", assuming decimals=2 for USD.
JSON responses containing quantities or asset balances are again returned in
both quantityINT and quantityQNT, as strings.
When placing an ask or bid order, if quantityQNT is specified, the price is
interpreted to apply to QNT quantity units (regardless of whether the price
itself was specified in NXT or in NQT). If quantityINT is specified, the
price is interpreted to apply to INT quantity units.
For example, a bid order for quantityQNT="300", priceNXT="2", for asset USD
will be interpreted as $3.00 at 1 cent = 2 NXT, i.e. 200 NXT for one dollar,
600 NXT total.
If parameters are submitted as quantityINT="7", priceNXT="50", the order will
be for $7.00 at 50 NXT for one dollar, 350 NXT total.
Internally order matching and tracking of account asset balances is always
done in quantityQNT. An unfortunate side effect for now is that when placing
an order using quantityINT, the calculated price in NQT for one QNT unit must
be an integer.
So you cannot place an order for quantityINT="1", priceNXT="10.12345678"
(or equivalently priceNQT="1012345678"), because then the price of one
quantityQNT will be 10123456.78 NQT. The priceNXT will have to be either
10.12345600 or 10.12345700. If this is confusing, specify the order as
quantityQNT="100", priceNQT="10123456".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIcBAEBAgAGBQJTQUIYAAoJEFOhyXc7+e2ApP4P/jlU2rAtKJqw4Ej7wrWrd35f
UP2pe8P7ZADuP3IToz/lTdpLVxxpigq4mn6u16POYwQ9e9OumfcmoZQv/bELdW/u
e0MkzxcFDCUgMf0EKOXB26ZXMxf+k8JfimncqmFlst1123/AlBj5+xgg14EQwTxw
DE2hcGf80Q12lQLXLEOPn3ijgCkTp3sgAl1lEUw3Y5bQppVU7k4N9POBc41exG5c
AKc2W4tjNw0FlRxGZ5O8s4qD+Y9XqDga7g5WtbPrpglOOGyTnZy5c4nHHSTq7qXW
oGgz/g8aE1qqHzrERU3J8XMzf9UhRcs9/1vkwuFmUgh873wOXbyQRu2LWgcqG0Sh
OuYeMDy4SHIIRPkNR1QwX+enJgi1bZ/d7/DWi89U09ZVxLjXZwhuuUySF7mMEQkq
tplj/ZdLo1AeKpkuckp81j/5MkYISfYI/2XUWI7hTtsPTh4Vq/4eIQqQYC1TqSmK
sXmN8TBZnO1Eub+WyhQW02/QwyOAXBb4Btkkpg+EefUAAXUgIaePbyV3NCKvcs3q
9IhCbH3cQQ7m4zqv1dDaNBi1HxEafZlhoPylID8dAv8AxLSDEvjuRudWMVYuENPa
RHrT0pNbauGZDg9GPDzVn8IjfLVG9BNi7V95dzlse/PxCTe4nKuZ3TqMXOB7avpP
vSgPXOScLPUoV7Z6pbS7
=rd3Z
-----END PGP SIGNATURE-----
Fractional asset quantities are coming.