CPZ Lab Transactions API

The transactions API from CPZ Lab — 1 operation(s) for transactions.

GitHub OpenAPI

Operations 1

GET /transactions List transactions #

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-transactions-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-transactions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CPZAI Transactions 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: Transactions
paths:
  /transactions:
    get:
      summary: List transactions
      tags:
      - Transactions
      parameters:
      - name: year
        in: query
        schema:
          type: integer
        description: Calendar year in UTC; from and to win over it
      - name: from
        in: query
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        schema:
          type: string
          format: date-time
        description: Exclusive
      - name: account_id
        in: query
        schema:
          type: string
      - name: symbol
        in: query
        schema:
          type: string
      - name: side
        in: query
        schema:
          type: string
          enum:
          - buy
          - sell
      - name: environment
        in: query
        schema:
          type: string
          enum:
          - live
          - paper
      - name: broker
        in: query
        schema:
          type: string
      - name: strategy_id
        in: query
        schema:
          type: string
      - name: format
        in: query
        schema:
          type: string
          enum:
          - json
          - csv
        description: 'csv returns text/csv; without limit it stops at 10,000 rows and sets X-Truncated: true'
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 50
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
      - name: sort_by
        in: query
        required: false
        schema:
          type: string
      - name: sort_order
        in: query
        required: false
        schema:
          type: string
          enum:
          - asc
          - desc
          default: desc
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Transaction'
                  count:
                    type: integer
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
      operationId: getTransactions
      x-operation-id-source: derived
components:
  schemas:
    Transaction:
      type: object
      description: One fill. quantity is the filled quantity; gross_amount is quantity times price, null when the price is not on record.
      properties:
        id:
          type: string
          format: uuid
        executed_at:
          type: string
          format: date-time
          nullable: true
        symbol:
          type: string
        side:
          type: string
          enum:
          - buy
          - sell
        quantity:
          type: number
          nullable: true
        price:
          type: number
          nullable: true
        gross_amount:
          type: number
          nullable: true
        commission:
          type: number
          nullable: true
        broker:
          type: string
          nullable: true
        environment:
          type: string
          nullable: true
        account_id:
          type: string
          nullable: true
        order_id:
          type: string
          nullable: true
        client_order_id:
          type: string
          nullable: true
        strategy_id:
          type: string
          nullable: true
        status:
          type: string
          description: The order status. Any order with a fill is a transaction, including one that partly filled and then expired or was canceled.
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
      required:
      - error
  responses:
    Unauthorized:
      description: Missing or invalid credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Rate limit exceeded
      headers:
        Retry-After:
          schema:
            type: integer
        X-RateLimit-Limit:
          schema:
            type: integer
        X-RateLimit-Remaining:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  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