10 * 10^8 = 1000000000.
payableAmountis your margin if submitting an ETH based trade. Enter the amount in wei (18 decimals). For ERC20 based trades, leave this blank and enter the amount in the margin field.
isLong. Enter true to go long, false to go short.
margin. In base units.
size. In base units. Size / margin determines your position's leverage.
productId. Your order's productId.
currency. Your order's currency.
isLong. Your order's direction (true for long, false for short).
payableAmountis the fee to pay if submitting an ETH based trade. Enter the amount in wei (18 decimals), usually 0.1% * your trade size. Otherwise leave blank.
productId. Your position's productId.
currency. Your position's currency.
isLong. Your position's direction.
size. In base units. The amount you want to close.