牛熊證街貨概覽
GET/api/v1.0/quote/{symbol}/cbbc/basic-info獲取港股正股對應的牛熊證街貨概覽。 返回最近若干交易日的收市價、牛證/熊證總街貨量,以及可用回收價粒度列表。 價格已還原;粒度單位與正股報價貨幣一致(港股為港元)。 街貨分佈圖請用 quote.cbbc_distribution。
請求參數
| 參數 | 類型 | 位置 | 必填 | 說明 |
|---|---|---|---|---|
symbol | string | 路徑 | 是 | 正股代碼(路徑參數),例: HK.00700 |
請求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/cbbc/basic-info' \
-H 'Authorization: Bearer <AccessToken>' | jq響應參數
| 參數 | 類型 | 說明 |
|---|---|---|
data.items | object[] | |
data.currency | string | 報價貨幣,例: HKD |
data.items[].timestamp | integer | 交易日 0 點(Unix 秒) |
data.items[].close_price | string | 收市價 |
data.items[].prev_close_price | string | 前一交易日收市價 |
data.items[].bull_outstanding | integer | 牛證總街貨量 |
data.items[].bear_outstanding | integer | 熊證總街貨量 |
data.items[].intervals | integer | 可用回收價粒度列表(已還原) |
data.items[].default_interval | string | 默認粒度 |
錯誤碼
| ret_code | error.code | 說明 |
|---|---|---|
| 0 | — | 成功 |
| -3 | invalid_parameter | 參數缺失或不在允許範圍內 |
| -7 | invalid_symbol | 標的不存在 |
| -8 | unsupported | 市場或品類不支持 |
| -9 | permission_denied | 沒有對應權限 |
| -10 | no_data | 沒有可返回的數據 |
| -11 | rate_limited | 調用過於頻繁 |
響應示例
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"currency": "example",
"items": [
{
"timestamp": 0,
"close_price": "example",
"prev_close_price": "example",
"bull_outstanding": 0,
"bear_outstanding": 0,
"intervals": 0
}
]
}
}