v1

latestOpenAPI 3.1.02026-07-1411015.4 KB

Margin Calculator

Calculate the required margin for a new order.

get/v1/new-order-margin

Query parameters

isBuyboolean required

Whether the account is buying or selling.

pricestring required

The price for the trade in 1e18 (Wei) format.

productIdinteger required

The ID of the product to trade.

quantitystring required

The quantity for the trade in 1e18 (Wei) format.

Response

200