ashareapi 0.1.0__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ashareapi
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A股数据 API 官方 Python SDK —— 行情 / K线 / 财务 / 资金 / 龙虎榜 / 板块 / 因子选股(含 MCP)
5
5
  Author: ashareapi
6
6
  License-Expression: MIT
@@ -13,6 +13,6 @@ from .client import AShareAPI
13
13
  from .errors import (AShareError, APIError, AuthError, EmptyResultError, RateLimitError,
14
14
  UpstreamError)
15
15
 
16
- __version__ = "0.1.0"
16
+ __version__ = "0.1.2"
17
17
  __all__ = ["AShareAPI", "AShareError", "AuthError", "RateLimitError", "EmptyResultError",
18
18
  "UpstreamError", "APIError", "__version__"]
@@ -162,6 +162,16 @@ class AShareAPI:
162
162
  """筹码分布 / 成本"""
163
163
  return self._get("/v1/chip", code=normalize_code(code))
164
164
 
165
+ def orderbook(self, code: str):
166
+ """五档盘口 order book(买一~买五 / 卖一~卖五)
167
+
168
+ **秒级快照,盘中才有意义**(收盘后为当日最后快照);量单位 = **手**(×100 = 股)。
169
+ 字段对齐 Tushare 惯例:``b1_p``/``b1_v`` ~ ``b5_p``/``b5_v``(买档价格/量)、
170
+ ``a1_p``/``a1_v`` ~ ``a5_p``/``a5_v``(卖档)→ 装了 pandas 时可直接 ``df["b1_p"]``。
171
+ 跌停时买档全 0 / 涨停时卖档全 0(正常现象)。
172
+ """
173
+ return self._get("/v1/orderbook", code=normalize_code(code))
174
+
165
175
  def events(self, code: str):
166
176
  """个股事件标签(42 类)"""
167
177
  return self._get("/v1/events", code=normalize_code(code))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ashareapi
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A股数据 API 官方 Python SDK —— 行情 / K线 / 财务 / 资金 / 龙虎榜 / 板块 / 因子选股(含 MCP)
5
5
  Author: ashareapi
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ashareapi"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "A股数据 API 官方 Python SDK —— 行情 / K线 / 财务 / 资金 / 龙虎榜 / 板块 / 因子选股(含 MCP)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
File without changes
File without changes
File without changes
File without changes
File without changes