v3

latestOpenAPI 3.0.02026-07-311784111.3 MB
Trading
Private

Retrieves the initial margin requirements for one or more orders identified by their order IDs. Initial margin is the amount of funds required to open a position with these orders.

This method is useful for calculating margin requirements before placing orders, helping to ensure sufficient funds are available.

Scope: trade:read

Try in API console

get/private/get_order_margin_by_ids

Query parameters

idsstring[] required

Ids of orders

[
  "ETH-349280",
  "ETH-349279",
  "ETH-349278"
]

Response

Success response

jsonrpc'2.0' required

The JSON-RPC version (2.0)

idinteger

The id that was sent in the request

Example response

{
  "result": [
    {
      "order_id": "ETH-100234"
    }
  ]
}