> For the complete documentation index, see [llms.txt](https://apis.alltick.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apis.alltick.co/websocket-api/stock-websocket-interface-api.md).

# Websocket接口API

[English ](https://en.apis.alltick.co/websocket-api/stock-websocket-interface-api)/ 中文

{% content-ref url="/pages/dKvmcv8laZmOcCCR2pUH" %}
[心跳](/websocket-api/stock-websocket-interface-api/ping-pong.md)
{% endcontent-ref %}

{% content-ref url="/pages/GFWQMttc5hcqPRIZJK2p" %}
[最新盘口(实时逐笔深度、Order Book)订阅](/websocket-api/stock-websocket-interface-api/handicap-quote-subscription.md)
{% endcontent-ref %}

{% content-ref url="/pages/8AjgVh4UO2uHZDxUzKK7" %}
[最新成交价(实时逐笔Tick数据、当前价、最新价)批量订阅](/websocket-api/stock-websocket-interface-api/transaction-quote-subscription.md)
{% endcontent-ref %}

{% content-ref url="/pages/xnMC91iEWzpIhWX0vnRu" %}
[取消报价订阅](/websocket-api/stock-websocket-interface-api/cancel-quote-subscription.md)
{% endcontent-ref %}

#### AllTick网站

{% hint style="info" %}
官方网站：<https://alltick.co/>
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apis.alltick.co/websocket-api/stock-websocket-interface-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
