Skip to main content
A lot is one configured unit of position size, a tick is one configured unit of price, and a quote atom is one unit of the quote asset’s smallest configured accounting scale. Their sizes depend on the market; 2n lots does not necessarily mean two tokens, and 100n quote atoms does not mean $100. Market metadata supplies the market and quote units and their exact rational conversion: signed fill value = lots × ticks × numerator / denominator The conversion must satisfy the market’s exactness rules. Do not infer display decimals from the precision version.

Conversion example

For an illustrative market with numerator = 1n and denominator = 1n, 2 lots at 100 ticks have a signed entry value of 2 × 100 = 200 quote atoms. A sell of 2 lots has a signed value of −200 atoms. This is position notional, not the margin deposited or cash paid to purchase an asset. For a real integration, obtain the IDs and conversion rules from market metadata, and the display labels and decimal scales from your integration configuration. The metadata response alone does not provide human-readable asset labels or token decimals. Remaining basis is signed entry value, not a displayed average price. Settled cash excludes unsettled funding; accounting equity, risk equity and withdrawable funds are distinct. See the account example. Wire integers are big-endian and range-checked. Use bigint for SDK amounts rather than JavaScript Number or JSON numbers. Reference examples illustrate units and encoding, not current market prices or account limits.