> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kraken.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Exposure

> Authenticated channel for streaming real-time credit utilization and exposure limit information.

<Note>Authenticated channel. Connect to: `wss://wss.prime.kraken.com/ws/v1`</Note>

Request for stream of Exposure updates. Provides real-time credit utilization and exposure limit information.

## Subscribe Request

<Tabs>
  <Tab title="Subscribe Schema">
    <ParamField path="reqid" type="number" required>
      Request ID - will be echoed back in the response structure.
    </ParamField>

    <ParamField path="type" type="string" required>
      Request type. Value: `subscribe`
    </ParamField>

    <ParamField path="streams" type="array" required>
      Array containing the Exposure stream configuration.

      <Expandable title="properties">
        <ParamField path="name" type="string" required>
          Subscription name. Value: `Exposure`
        </ParamField>
      </Expandable>
    </ParamField>
  </Tab>

  <Tab title="Example">
    ```json theme={null}
    {
      "reqid": 11,
      "type": "subscribe",
      "streams": [
        {
          "name": "Exposure"
        }
      ]
    }
    ```
  </Tab>
</Tabs>

## Response

<Tabs>
  <Tab title="Response Schema">
    <ParamField path="reqid" type="number" required>
      A number that relates this response to a request.
    </ParamField>

    <ParamField path="type" type="string" required>
      The type of message sent.
    </ParamField>

    <ParamField path="ts" type="string" required>
      An ISO-8601 UTC string of the form `2019-02-13T05:17:32.000000Z`.
    </ParamField>

    <ParamField path="initial" type="boolean">
      If this is initial data for a request, the initial flag will be set.
    </ParamField>

    <ParamField path="seqNum" type="number" required>
      The sequence number for this response per request.
    </ParamField>

    <ParamField path="action" type="string">
      "Update" or "Remove" - tells the client if the given entity should be removed or added/updated.
    </ParamField>

    <ParamField path="data" type="array" required>
      Array of Exposure data.

      <Expandable title="properties">
        <ParamField path="ExposureCurrency" type="string" required>
          The currency all exposure values are expressed in.
        </ParamField>

        <ParamField path="Exposure" type="string" required>
          Current credit utilization expressed in the ExposureCurrency.
        </ParamField>

        <ParamField path="ExposureLimit" type="string" required>
          Credit limit expressed in the ExposureCurrency.
        </ParamField>

        <ParamField path="Status" type="string" required>
          Status of the exposure information. Possible values: `Online`, `Offline`
        </ParamField>

        <ParamField path="Timestamp" type="string" required>
          The last time the credit was updated.
        </ParamField>
      </Expandable>
    </ParamField>
  </Tab>

  <Tab title="Example">
    ```json theme={null}
    {
      "reqid": 11,
      "type": "Exposure",
      "ts": "2021-09-16T16:17:06.892914Z",
      "initial": true,
      "seqNum": 1,
      "data": [
        {
          "ExposureCurrency": "USD",
          "Exposure": "1000000",
          "ExposureLimit": "5000000",
          "Status": "Online",
          "Timestamp": "2021-09-16T16:17:06.892914Z"
        }
      ]
    }
    ```
  </Tab>
</Tabs>
