CPZ Lab Actions API

The actions API from CPZ Lab — 4 operation(s) for actions.

GitHub OpenAPI

Operations 4

POST /portfolio-sync Trigger portfolio sync #
POST /market-data Fetch live quotes #
POST /risk-compute Compute a fresh risk snapshot #
POST /execute Execute a strategy on compute #

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/cpz-lab-com:cpz-lab-com-actions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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

cpz-lab-com-actions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CPZAI Actions API
  version: 2.0.0
  description: Programmatic access to CPZAI for agents, scripts, and integrations. Manage strategies, execute backtests, place orders, monitor risk, and subscribe to real-time events — all via API key or OAuth2 access token.
  contact:
    name: CPZAI Support
    url: https://cpz-lab.com
  license:
    name: Proprietary
servers:
- url: https://api.cpz-lab.com/rest/v1
  description: Production REST v1
- url: https://api.cpz-lab.com/cpz/v1
  description: Production CPZ gateway v1
security:
- ApiKeyHeader: []
- ApiKeyBearer: []
- OAuth2: []
tags:
- name: Actions
paths:
  /portfolio-sync:
    post:
      summary: Trigger portfolio sync
      tags:
      - Actions
      responses:
        '200':
          description: Sync triggered
      operationId: postPortfolioSync
      x-operation-id-source: derived
  /market-data:
    post:
      summary: Fetch live quotes
      tags:
      - Actions
      parameters:
      - name: symbols
        in: query
        required: true
        schema:
          type: string
        description: Comma-separated symbols
      responses:
        '200':
          description: Quotes
      operationId: postMarketData
      x-operation-id-source: derived
  /risk-compute:
    post:
      summary: Compute a fresh risk snapshot
      tags:
      - Actions
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                account_id:
                  type: string
      responses:
        '200':
          description: Risk snapshot
      operationId: postRiskCompute
      x-operation-id-source: derived
  /execute:
    post:
      summary: Execute a strategy on compute
      tags:
      - Actions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - strategy_id
              properties:
                strategy_id:
                  type: string
                  format: uuid
                code:
                  type: string
      responses:
        '200':
          description: Execution started
      operationId: postExecute
      x-operation-id-source: derived
components:
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-CPZ-Key
      description: Paired with X-CPZ-Secret. Recommended for SDK and server-to-server use.
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: cpz_key
      description: 'Single-header API key: Authorization: Bearer cpz_key_PREFIX.SECRET'
    OAuth2:
      type: oauth2
      description: OAuth 2.0 + PKCE issued by the CPZAI authorization server.
      flows:
        authorizationCode:
          authorizationUrl: https://api.cpz-lab.com/oauth/authorize
          tokenUrl: https://api.cpz-lab.com/oauth/token
          refreshUrl: https://api.cpz-lab.com/oauth/token
          scopes:
            openid: openid
            profile: profile
            email: email
            offline_access: offline_access
            strategies: strategies
            data: data
            orders: orders
            orders_paper: orders_paper
            confirm_orders: confirm_orders
            data_connections: data_connections
            trading_credentials: trading_credentials
            storage: storage
        clientCredentials:
          tokenUrl: https://api.cpz-lab.com/oauth/token
          scopes:
            strategies: strategies
            data: data
            orders: orders
            orders_paper: orders_paper
            confirm_orders: confirm_orders
            data_connections: data_connections
            trading_credentials: trading_credentials
            storage: storage