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

# Info Requests

Use JSON-RPC `post` with `params.type: "info"` to call all Info endpoints from the REST API reference over WebSocket.

## Example Request

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "post",
  "params": {
    "type": "info",
    "payload": {
      "method": "instruments",
      "params": {
        "type": "all"
      }
    }
  }
}
```


## AsyncAPI

````yaml asyncapi/ws-subscriptions.json rpc-post-info
id: rpc-post-info
title: Rpc-post-info
description: ''
servers:
  - id: production
    protocol: wss
    host: api.hotstuff.trade/ws
    bindings: []
    variables: []
  - id: testnet
    protocol: wss
    host: testnet-api.hotstuff.trade/ws
    bindings: []
    variables: []
address: /
parameters: []
bindings: []
operations:
  - &ref_3
    id: rpc-post-info_receiveRequest
    title: Rpc-post-info_receive request
    type: receive
    messages:
      - &ref_5
        id: request
        contentType: application/json
        payload:
          - name: JSON-RPC post info request
            description: Request-response call over WebSocket for Info REST methods.
            type: object
            properties:
              - name: jsonrpc
                type: string
                examples: &ref_0
                  - '2.0'
                required: true
              - name: id
                type: integer
                description: Client request identifier.
                required: true
              - name: method
                type: string
                enumValues:
                  - post
                required: true
              - name: params
                type: object
                required: true
                properties:
                  - name: type
                    type: string
                    enumValues:
                      - info
                    required: true
                  - name: payload
                    type: object
                    required: true
                    properties:
                      - name: method
                        type: string
                        description: Any supported Info method from REST API reference.
                        required: true
                      - name: params
                        type: object
                        description: >-
                          Method-specific parameters for the selected Info
                          method.
                        required: true
        headers: []
        jsonPayloadSchema:
          type: object
          properties:
            jsonrpc:
              type: string
              default: '2.0'
              examples: *ref_0
              x-parser-schema-id: <anonymous-schema-329>
            id:
              type: integer
              description: Client request identifier.
              x-parser-schema-id: <anonymous-schema-330>
            method:
              type: string
              enum:
                - post
              default: post
              x-parser-schema-id: <anonymous-schema-331>
            params:
              type: object
              properties:
                type:
                  type: string
                  enum:
                    - info
                  x-parser-schema-id: <anonymous-schema-333>
                payload:
                  type: object
                  properties:
                    method:
                      type: string
                      description: Any supported Info method from REST API reference.
                      x-parser-schema-id: <anonymous-schema-335>
                    params:
                      type: object
                      description: Method-specific parameters for the selected Info method.
                      x-parser-schema-id: <anonymous-schema-336>
                  required:
                    - method
                    - params
                  x-parser-schema-id: <anonymous-schema-334>
              required:
                - type
                - payload
              x-parser-schema-id: <anonymous-schema-332>
          required:
            - jsonrpc
            - id
            - method
            - params
          x-parser-schema-id: <anonymous-schema-328>
        title: JSON-RPC post info request
        description: Request-response call over WebSocket for Info REST methods.
        example: |-
          {
            "jsonrpc": "2.0",
            "id": 1,
            "method": "post",
            "params": {
              "type": "info",
              "payload": {
                "method": "instruments",
                "params": {
                  "type": "all"
                }
              }
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: request
    bindings: []
    extensions: &ref_2
      - id: x-parser-unique-object-id
        value: rpc-post-info
  - &ref_4
    id: rpc-post-info_sendResponse
    title: Rpc-post-info_send response
    type: send
    messages:
      - &ref_6
        id: response
        contentType: application/json
        payload:
          - name: JSON-RPC post response
            description: Success or error response for post requests.
            type: object
            properties:
              - name: jsonrpc
                type: string
                examples: &ref_1
                  - '2.0'
                required: true
              - name: id
                type: integer
                required: true
              - name: description
                type: string
                description: Method-specific success payload for Info or Exchange request.
                required: false
              - name: error
                type: object
                required: false
                properties:
                  - name: code
                    type: integer
                    required: true
                  - name: message
                    type: string
                    required: true
        headers: []
        jsonPayloadSchema:
          type: object
          properties:
            jsonrpc:
              type: string
              examples: *ref_1
              x-parser-schema-id: <anonymous-schema-338>
            id:
              type: integer
              x-parser-schema-id: <anonymous-schema-339>
            result:
              description: Method-specific success payload for Info or Exchange request.
              x-parser-schema-id: <anonymous-schema-340>
            error:
              type: object
              properties:
                code:
                  type: integer
                  x-parser-schema-id: <anonymous-schema-342>
                message:
                  type: string
                  x-parser-schema-id: <anonymous-schema-343>
                data:
                  x-parser-schema-id: <anonymous-schema-344>
              required:
                - code
                - message
              x-parser-schema-id: <anonymous-schema-341>
          required:
            - jsonrpc
            - id
          x-parser-schema-id: <anonymous-schema-337>
        title: JSON-RPC post response
        description: Success or error response for post requests.
        example: |-
          {
            "jsonrpc": "2.0",
            "id": 1,
            "result": {
              "instruments": []
            }
          }
        bindings: []
        extensions:
          - id: x-parser-unique-object-id
            value: response
    bindings: []
    extensions: *ref_2
sendOperations:
  - *ref_3
receiveOperations:
  - *ref_4
sendMessages:
  - *ref_5
receiveMessages:
  - *ref_6
extensions:
  - id: x-parser-unique-object-id
    value: rpc-post-info
securitySchemes: []

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.