-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmkdocs.yml
More file actions
281 lines (264 loc) · 9.4 KB
/
mkdocs.yml
File metadata and controls
281 lines (264 loc) · 9.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
# MkDocs 配置文件
# https://www.mkdocs.org/user-guide/configuration/
site_name: bt_api_py
site_description: 统一多交易所交易 API 框架 — 一套代码对接 Binance、OKX、HTX、CTP、Interactive Brokers
site_author: cloudQuant
site_url: https://cloudquant.github.io/bt_api_py/
# 仓库配置
repo_name: cloudQuant/bt_api_py
repo_url: https://github.com/cloudQuant/bt_api_py
edit_uri: edit/master/docs/
# 版权信息
copyright: Copyright © 2024 cloudQuant. MIT License.
# 主题配置
theme:
name: material
language: zh
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/weather-night
name: 切换深色模式
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: indigo
accent: indigo
toggle:
icon: material/weather-sunny
name: 切换浅色模式
features:
- navigation.instant
- navigation.instant.progress
- navigation.tracking
- navigation.tabs
- navigation.tabs.sticky
- navigation.sections
- navigation.indexes
- navigation.top
- navigation.footer
- search.suggest
- search.highlight
- search.share
- content.code.copy
- content.code.annotate
- content.tabs.link
- content.tooltips
- toc.follow
icon:
repo: fontawesome/brands/github
logo: material/chart-line
# 插件配置
plugins:
- search:
lang:
- zh
- en
separator: '[\s\-\.]+'
- minify:
minify_html: true
- mkdocstrings:
default_handler: python
handlers:
python:
paths: [src]
options:
docstring_style: google
show_root_heading: true
show_source: false
show_symbol_type_heading: true
show_symbol_type_toc: true
members_order: source
separate_signature: true
show_signature_annotations: true
unwrap_annotated: true
merge_init_into_class: true
docstring_section_style: table
# 额外配置
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/cloudQuant/bt_api_py
name: GitHub
- icon: fontawesome/brands/python
link: https://pypi.org/project/bt_api_py/
name: PyPI
analytics:
feedback:
title: 这篇文档对您有帮助吗?
ratings:
- icon: material/thumb-up-outline
name: 有帮助
data: 1
note: 感谢您的反馈!
- icon: material/thumb-down-outline
name: 需要改进
data: 0
note: 感谢您的反馈,我们将持续改进。
# Markdown 扩展
markdown_extensions:
- abbr
- admonition
- attr_list
- def_list
- footnotes
- md_in_html
- toc:
permalink: true
toc_depth: 3
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.tabbed:
alternate_style: true
combine_header_slug: true
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde
# 额外 CSS/JS
extra_javascript:
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
extra_css:
- stylesheets/extra.css
# 导航结构 — 遵循 Diátaxis 框架
# https://diataxis.fr/ (Tutorials | How-to Guides | Reference | Explanation)
nav:
- 首页: index.md
# ── 入门 (Tutorials) ──────────────────────────────────────────
- 入门:
- 安装: getting-started/installation.md
- 快速入门: getting-started/quickstart.md
- 常见问题: getting-started/faq.md
- 交互式示例: examples/gallery.md
- 更新日志: getting-started/change_log.md
# ── 使用指南 (How-to Guides) ──────────────────────────────────
- 使用指南:
- 基础用法: guides/usage_guide.md
- API模式: guides/api-patterns.md
- WebSocket流式传输: guides/websocket-streaming.md
- 参数说明: guides/params.md
- 错误处理: guides/error_handling.md
- 最佳实践: guides/best_practices.md
- 安全实践: guides/security_best_practices.md
- 性能优化: guides/performance.md
- 代码示例: guides/examples/api_examples.md
# ── API 参考 (Reference) — 自动生成自源代码 ───────────────────
- API 参考:
- 概览: reference/index.md
- 核心API: reference/core-api.md
- BtApi: reference/bt_api.md
- 认证配置: reference/auth_config.md
- 异常体系: reference/exceptions.md
- 注册表: reference/registry.md
- 事件总线: reference/event_bus.md
- 数据容器: reference/data_containers.md
- WebSocket 订阅: reference/websocket.md
# ── 交易所原生 API 文档 ────────────────────────────────────────
- 交易所:
- 交易所状态: exchanges/EXCHANGE_STATUS.md
- Binance:
- 集成指南: exchanges/binance.md
- 概览: exchanges/binance/index.md
- 现货 (SPOT):
- 快速参考: exchanges/binance/spot/README.md
- REST API: exchanges/binance/spot/rest-api.md
- WebSocket 流: exchanges/binance/spot/websocket-streams.md
- WebSocket API: exchanges/binance/spot/websocket-api.md
- 用户数据流: exchanges/binance/spot/user-data-stream.md
- 枚举类型: exchanges/binance/spot/enums.md
- 错误码: exchanges/binance/spot/errors.md
- 交易规则: exchanges/binance/spot/filters.md
- 合约 (DERIVATIVES):
- 概览: exchanges/binance/derivatives/index.md
- 快速开始: exchanges/binance/derivatives/quick-start.md
- 杠杆 (MARGIN):
- 接口索引: exchanges/binance/margin_trading/README.md
- 算法交易 (ALGO):
- 接口索引: exchanges/binance/algo/README.md
- 快速开始: exchanges/binance/algo/quick-start.md
- OKX:
- 概览: exchanges/okx/index.md
- 交易账户: exchanges/okx/trading_account.md
- 订单交易: exchanges/okx/order_book_trading_trade.md
- 行情数据: exchanges/okx/market_data.md
- 公共数据: exchanges/okx/public_data.md
- 资金账户: exchanges/okx/funding_account.md
- 算法交易: exchanges/okx/order_book_trading_algo.md
- 网格交易: exchanges/okx/order_book_trading_grid.md
- 价差交易: exchanges/okx/spread_trading.md
- 大宗交易: exchanges/okx/block_trading.md
- 状态与错误: exchanges/okx/status_announcement_error.md
- HTX (Huobi):
- 概览: exchanges/htx/index.md
- CTP (中国期货):
- 快速入门: exchanges/ctp/quickstart.md
- Interactive Brokers:
- 快速入门: exchanges/ib/quickstart.md
- 概览: exchanges/ib/index.md
- API 快速参考: exchanges/ib/api_reference_quick.md
- 实现指南: exchanges/ib/implementation_guide.md
- 交易 API: exchanges/ib/trading.md
- 账户管理: exchanges/ib/account_management.md
# ── 深度解读 (Explanation) ────────────────────────────────────
- 深度解读:
- 架构设计: explanation/architecture.md
- 多策略架构: explanation/multi_strategy_architecture.md
- 交易所集成模式: explanation/exchange_integration_patterns.md
- 开发者指南: explanation/developer_guide.md
# ── 支持与帮助 ───────────────────────────────────────────────
- 支持与帮助:
- 常见问题: support/faq.md
# 排除不在导航中的残留文件
exclude_docs: |
exchanges/htx/api_reference.md
exchanges/okx/trading_statistics.md
exchanges/okx/order_book_trading_others.md
exchanges/okx/sub_account.md
exchanges/binance/spot/sbe-market-data-streams.md
exchanges/binance/derivatives/change-log.md
# Archive files (not part of main docs)
archive/
# Root level docs not in nav
AGENTS.md
CODE_QUALITY.md
MIGRATION_GUIDE.md
SECURITY_COMPLIANCE.md
development-guide.md
project-overview.md
project-structure-optimization.md
release-checklist.md
source-tree-analysis.md
test-markers-guide.md
# Architecture docs
architecture/
# Reference docs not in nav
reference/installation.md
# Security docs
security/
# Exchange docs not in nav
exchanges/EXCHANGE_CAPABILITY_MATRIX.md
exchanges/binance/algo/future-algo/twap-new-order.md
exchanges/binance/algo/spot-algo/fee-structure.md
# Plans
plans/