Skip to main content
Every amount in the API and in the webhooks is a string of digits in base units, next to a decimals field that says where the decimal point goes:
Parse amounts with a decimal or big-integer type. A token amount can exceed what a 64-bit float holds exactly; never convert one to a JavaScript number or a Python float.

Cash and tokens

currencyId 1 is the US dollar, with decimals 2. A deposit and the tokens issued for it are in different units, and the conversion between them is the fund’s price at issuance, which the API does not carry. Reconcile the cash against your bank and the deposits, the tokens against your wallets and the transactions, and the two against each other with the price your fund agreement sets.

Holdings

GET /assets returns totalTokens for each token: the sum of what your account holds across every wallet and custody arrangement Securitize knows of, in the token’s base units. Compare it with the sum of your transactions only after every pending transaction has a closedTimestamp.