---
title: "/trade/leverage"
method: PUT
path: "/api/v1/trade/leverage"
tags: ["Trade"]
---

# /trade/leverage

`PUT /api/v1/trade/leverage`

Updates leverage for positions of a given market and closes all open orders for that market.

## Request body

- AccountPositionLeverageUpdateRequest
  - `signedFields` object, required
    - `accountAddress` string, required — The Account Address from which to update leverage
    - `symbol` string, required — Symbol of the perpetual of the positions for which to update the leverage
    - `leverageE9` string, required — The leverage to set for the account positions (Must be a number in base e9)
    - `salt` string, required — The random generated SALT. Should always be a number
    - `idsId` string, required — the ID of the internal datastore for the target network
    - `signedAtMillis` integer, required — The timestamp in millis at which the request was signed
  - `signature` string, required — The signature of the request, encoded from the signedFields

## Response `202`

Leverage update request sent successfully.

## Other responses

- `400` — Bad Request. The request was invalid or malformed.
- `401` — Unauthorized. Authentication is required or invalid. Signature is invalid
- `403` — Forbidden.
- `404` — Not Found. The requested account was not found.
- `500` — Internal Server Error. An unexpected error occurred on the server.
- `503` — Service Unavailable. The service is currently unavailable.

---

[API](https://skmtc.net/bluefin/apis/bluefin-trade-api.md) · [All operations](https://skmtc.net/bluefin/apis/bluefin-trade-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bluefin/bluefin-trade-api/versions/de8d6d7f39d7/schema)
