---
title: "Lock Portfolio"
method: GET
path: "/api/v2/private/lock_portfolio"
tags: ["Portfolio Management"]
---

# Lock Portfolio

`GET /api/v2/private/lock_portfolio`

Locks the authenticated portfolio. All currently open `DIRECT_ACCESS` orders and quotes for this portfolio are cancelled immediately. New `DIRECT_ACCESS` orders and quotes are rejected until the portfolio is unlocked.

REST-submitted orders are not affected by the lock state.

## Response `200`

Portfolio locked successfully.

- OkResponse
  - `jsonrpc` '2.0', required — The JSON-RPC version (2.0)
  - `id` integer — The id that was sent in the request
  - `result` 'ok', required — Result of method execution. `ok` in case of success

---

[API](https://skmtc.dev/deribit/apis/starbase-rest-api.md) · [All operations](https://skmtc.dev/deribit/apis/starbase-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/deribit/starbase-rest-api/revisions/2e8e1b6fb09d/schema)
