日股日证金借贷数据
GET/api/v1.0/quote/{symbol}/short/jp-deposit获取日股日证金(Japan Securities Finance)每日借贷交易与持仓数据(仅支持 JP 市场)。 返回包含:报告类型(QUICK_REPORT=速报 / CONFIRM_REPORT=确报)、日期、收盘价、回补天数(cover_days)、借贷费率(lend_rate)、信用倍率(financing_short_ratio), 以及融券卖空(short_position)、融资买入(margin_buy_position)、买卖差(diff_position)的新增开仓、平仓、余额与前日比。 周度信用交易数据请用 quote.jp_short_credit。
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
symbol | string | 路径 | 是 | 日股代码(仅支持 JP.*),例: JP.7203 / JP.6758 |
count | int | 查询 | 否 | 返回条数,默认 30,范围 1~90 |
请求示例
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/short/jp-deposit?count=1' \
-H 'Authorization: Bearer <AccessToken>' | jq响应参数
| 参数 | 类型 | 说明 |
|---|---|---|
data.items | object[] | |
data.items[].report_type | integer | 报告类型:QUICK_REPORT=速报 / CONFIRM_REPORT=确报 |
data.items[].timestamp | integer | 数据时间戳(毫秒) |
data.items[].date | integer | 数据日期 YYYY-MM-DD(东京时区) |
data.items[].close_price | number | 收盘价 |
data.items[].short_ratio | number | 融券持仓占总股本比例(百分数) |
data.items[].margin_buy_ratio | number | 融资持仓占总股本比例(百分数) |
data.items[].cover_days | number | 回补天数 |
data.items[].lend_rate | number | 逆日步/借贷费率 |
data.items[].financing_short_ratio | number | 日证金融资融券倍率(原始值放大 10^3) |
data.items[].short_position | object | 日证金卖空持仓明细(股) |
data.items[].short_position[].open_position | string | 新增卖空开仓(股) |
data.items[].short_position[].flat_position | string | 卖空平仓返済(股) |
data.items[].short_position[].share_position | string | 卖空持仓残高(股) |
data.items[].short_position[].daily_change | string | 较前日变动(股) |
data.items[].margin_buy_position | object | 日证金融资买入持仓明细(股) |
data.items[].margin_buy_position[].open_position | string | 新增融资开仓(股) |
data.items[].margin_buy_position[].flat_position | string | 融资平仓返済(股) |
data.items[].margin_buy_position[].share_position | string | 融资持仓残高(股) |
data.items[].margin_buy_position[].daily_change | 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": {
"items": [
{
"report_type": 0,
"timestamp": 0,
"date": 0,
"close_price": "example",
"short_ratio": "example",
"margin_buy_ratio": "example"
}
]
}
}