Deribit Portfolio Management API

Endpoints that operate on the authenticated portfolio.

Operations 3

GET /api/v2/private/cancel_all Mass Cancel #
GET /api/v2/private/lock_portfolio Lock Portfolio #
GET /api/v2/private/unlock_portfolio Unlock Portfolio #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/deribit-portfolio-management-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

deribit-portfolio-management-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Starbase REST Portfolio Management API
  version: '2.0'
  description: Portfolio-scoped REST API for the Starbase direct-access trading platform.
servers:
- url: https://195.138.37.5:4410
  description: Production — Gateway A (rest-order)
- url: https://195.138.37.6:4410
  description: Production — Gateway B (rest-order)
- url: https://195.138.37.137:4410
  description: Test — Gateway A (rest-order)
- url: https://195.138.37.138:4410
  description: Test — Gateway B (rest-order)
tags:
- name: Portfolio Management
  description: Endpoints that operate on the authenticated portfolio.
paths:
  /api/v2/private/cancel_all:
    get:
      operationId: cancel_all
      summary: Mass Cancel
      description: Cancels all open orders and quotes belonging to the authenticated portfolio. No filter parameters are accepted — the cancel applies to every instrument and every side.
      tags:
      - Portfolio Management
      security:
      - BearerAuth: []
      responses:
        '200':
          description: All open orders and quotes cancelled successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelAllResponse'
              example:
                jsonrpc: '2.0'
                id: 1
                result: 42
  /api/v2/private/lock_portfolio:
    get:
      operationId: lock_portfolio
      summary: Lock Portfolio
      description: '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.'
      tags:
      - Portfolio Management
      security:
      - BearerAuth: []
      responses:
        '200':
          description: Portfolio locked successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OkResponse'
              example:
                jsonrpc: '2.0'
                id: 1
                result: ok
  /api/v2/private/unlock_portfolio:
    get:
      operationId: unlock_portfolio
      summary: Unlock Portfolio
      description: 'Unlocks the authenticated portfolio, resuming normal acceptance of `DIRECT_ACCESS` orders and quotes.


        Unlocking the portfolio does **not** restore any previously cancelled orders.'
      tags:
      - Portfolio Management
      security:
      - BearerAuth: []
      responses:
        '200':
          description: Portfolio unlocked successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OkResponse'
              example:
                jsonrpc: '2.0'
                id: 1
                result: ok
components:
  schemas:
    CancelAllResponse:
      type: object
      required:
      - jsonrpc
      - result
      properties:
        jsonrpc:
          type: string
          enum:
          - '2.0'
          description: The JSON-RPC version (2.0)
        id:
          type: integer
          description: The id that was sent in the request
        result:
          type: number
          example: 7
          description: Total number of successfully cancelled orders
    OkResponse:
      type: object
      required:
      - jsonrpc
      - result
      properties:
        jsonrpc:
          type: string
          enum:
          - '2.0'
          description: The JSON-RPC version (2.0)
        id:
          type: integer
          description: The id that was sent in the request
        result:
          type: string
          enum:
          - ok
          description: Result of method execution. `ok` in case of success
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key passed as a Bearer token. The authenticated session determines the portfolio that operations are applied to.