---
agentTools:
  projectIndex: https://itick.readme.io/llms.txt
---

# Real-time Quotation

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "REST API",
    "description": "Stock API, Foreign Exchange API, Index API. \nSupport real-time and historical data for stocks in major markets (such as the United States, Hong Kong, China, Singapore, Japan, etc.), global foreign exchange, indices, and cryptocurrencies. The interface style is standard and easy to use, with concise documentation and a rich variety of examples to help developers quickly integrate. Provide long-term free real-time quote data and historical candlestick charts and other financial data for Stock API, Foreign Exchange API, Index API, and Cryptocurrency API.",
    "version": "1.0.0"
  },
  "tags": [
    {
      "name": "Crypto"
    }
  ],
  "paths": {
    "/crypto/quote": {
      "get": {
        "summary": "Real-time Quotation",
        "deprecated": false,
        "description": "",
        "tags": [
          "Crypto",
          "Crypto"
        ],
        "parameters": [
          {
            "name": "region",
            "in": "query",
            "description": "Market Code",
            "required": true,
            "schema": {
              "type": "string",
              "default": "ba"
            }
          },
          {
            "name": "code",
            "in": "query",
            "description": "Product Code",
            "required": true,
            "schema": {
              "type": "string",
              "default": "BTCUSDT"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "description": "Response Code, 0: Success"
                    },
                    "msg": {
                      "type": "string",
                      "description": "Exception Information, exists when not equal to 0"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "s": {
                          "type": "string",
                          "description": "Symbol Code"
                        },
                        "ld": {
                          "type": "integer",
                          "description": "Latest Price"
                        },
                        "t": {
                          "type": "integer",
                          "description": "Timestamp of the Latest Transaction"
                        },
                        "v": {
                          "type": "number",
                          "description": "Transaction Volume"
                        },
                        "tu": {
                          "type": "number",
                          "description": "Transaction Amount"
                        },
                        "ts": {
                          "type": "integer",
                          "description": "Trading Status of the Asset"
                        }
                      },
                      "required": [
                        "s",
                        "ld",
                        "t",
                        "v",
                        "tu",
                        "ts"
                      ],
                      "description": "Response Data"
                    }
                  },
                  "required": [
                    "code",
                    "msg",
                    "data"
                  ],
                  "description": "Return Result"
                },
                "examples": {
                  "1": {
                    "summary": "Successful Example",
                    "description": "",
                    "value": {
                      "code": 0,
                      "msg": null,
                      "data": {
                        "s": "BTCUSDT",
                        "ld": 67600,
                        "t": 1729087440311,
                        "v": 0.02989,
                        "tu": 2020.564,
                        "ts": 0
                      }
                    }
                  }
                }
              }
            },
            "headers": {}
          }
        },
        "security": []
      }
    }
  },
  "servers": [
    {
      "url": "https://api.itick.org",
      "description": "正式环境"
    }
  ],
  "security": [],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 103,
      "1": 37,
      "2": 4,
      "3": 141,
      "4": 49,
      "5": 151,
      "6": 116,
      "7": 0,
      "8": 31,
      "9": 215,
      "10": 251,
      "11": 8
    }
  }
}
```