Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 350 Bytes

File metadata and controls

19 lines (15 loc) · 350 Bytes

Amount

For the sake of easier handling of Assets on the blockchain

from bitshares.amount import Amount
from bitshares.asset import Asset
a = Amount("1 USD")
b = Amount(1, "USD")
c = Amount("20", Asset("USD"))
a + b
a * 2
a += b
a /= 2.0
.. autoclass:: bitshares.amount.Amount
   :members: