---
title: "Margin Calculator"
method: GET
path: "/v1/new-order-margin"
---

# Margin Calculator

`GET /v1/new-order-margin`

Calculate the required margin for a new order.

## Query parameters

- `isBuy` boolean, required
- `price` string, required
- `productId` integer, required
- `quantity` string, required

## Response `200`

200

## Other responses

- `400` — 400
- `404` — 404
- `500` — 500

---

[API](https://skmtc.net/citrex/apis/citrex-rest.md) · [All operations](https://skmtc.net/citrex/apis/citrex-rest/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/citrex/citrex-rest/revisions/dc679443a47d/schema)
