> This page is for WebSocket.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://okx-demo.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://okx-demo.ferndocs.com/_mcp/server.

# Account Greeks

GET /ws/v5/private

Reference: https://okx-demo.ferndocs.com/ws/web-socket-api/account-greeks/account-greeks

## AsyncAPI Specification

```yaml
asyncapi: 2.6.0
info:
  title: Account Greeks
  version: subpackage_account-greeks.account-greeks
channels:
  /ws/v5/private:
    publish:
      operationId: subpackage_account-greeks.account-greeks-publish
      summary: Server message
      message:
        name: subscribe
        payload:
          $ref: '#/components/schemas/accountGreeks_AccountGreeksPush'
    subscribe:
      operationId: subpackage_account-greeks.account-greeks-subscribe
      summary: Client message
      message:
        name: publish
        payload:
          $ref: '#/components/schemas/accountGreeks_AccountGreeksRequest'
servers:
  Production:
    url: wss://ws.okx.com:8443/
    protocol: wss
    x-default: true
components:
  schemas:
    accountGreeks_AccountGreeksArg:
      type: object
      properties:
        channel:
          type: string
          description: Channel name.
        uid:
          type: string
          description: Subscription filter, echoed back.
      required:
        - channel
      title: AccountGreeksArg
    accountGreeks_AccountGreeksData:
      type: object
      properties:
        ccy:
          type: string
          description: Currency.
        deltaBS:
          type: string
          description: Delta in dollars (Black-Scholes).
        deltaPA:
          type: string
          description: Delta in coins (PA).
        gammaBS:
          type: string
          description: Gamma in dollars (Black-Scholes).
        gammaPA:
          type: string
          description: Gamma in coins (PA).
        thetaBS:
          type: string
          description: Theta in dollars (Black-Scholes).
        thetaPA:
          type: string
          description: Theta in coins (PA).
        vegaBS:
          type: string
          description: Vega in dollars (Black-Scholes).
        vegaPA:
          type: string
          description: Vega in coins (PA).
        ts:
          type: string
          description: Timestamp, Unix timestamp in milliseconds.
      description: One account-greeks data element.
      title: AccountGreeksData
    accountGreeks_AccountGreeksPush:
      type: object
      properties:
        arg:
          $ref: '#/components/schemas/accountGreeks_AccountGreeksArg'
          description: Subscribed channel, echoed back.
        data:
          type: array
          items:
            $ref: '#/components/schemas/accountGreeks_AccountGreeksData'
          description: >-
            Subscribed data, pushed on update. For candlesticks each element is
            a string array [ts, o, h, l, c, ...].
        event:
          type: string
          description: >-
            On subscription acknowledgments and errors: `subscribe`,
            `unsubscribe`, or `error`.
        id:
          type: string
          description: Request ID, echoed on acknowledgments and errors.
        code:
          type: string
          description: Error code (error events only).
        msg:
          type: string
          description: Error message (error events only).
        connId:
          type: string
          description: WebSocket connection ID.
      description: >-
        Account-level option greeks per currency. Pushes a snapshot on
        subscription and then on change. The display type (dollars/coins)
        follows the account greeks setting. Requires login.
      title: AccountGreeksPush
    accountGreeks_AccountGreeksSubArg:
      type: object
      properties:
        channel:
          type: string
          description: Channel name.
        ccy:
          type: string
          description: >-
            Currency to filter by, e.g. BTC. If omitted, all currencies are
            pushed.
      required:
        - channel
      title: AccountGreeksSubArg
    accountGreeks_AccountGreeksRequest:
      type: object
      properties:
        op:
          type: string
          description: Operation. `subscribe` or `unsubscribe`.
        args:
          type: array
          items:
            $ref: '#/components/schemas/accountGreeks_AccountGreeksSubArg'
          description: Channels to subscribe to.
      required:
        - op
        - args
      description: Subscribe to the account-greeks channel.
      title: AccountGreeksRequest

```