Japan Margin Trading Positions
GET/api/v1.0/quote/{symbol}/short/jp-creditGet Japanese stock margin trading (short-selling / margin-buying / net difference) weekly position history (JP market only). Returns: timestamp and date, close / previous close, financing-to-short ratio, short and margin-buy position ratios (% of total shares), plus short_position, margin_buy_position, and diff_position details (total, general/negotiable credit, standardized credit, and week-over-week change). For daily JSF (Japan Securities Finance) data use quote.jp_short_deposit.
Request
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
symbol | string | path | yes | Japanese stock symbol (JP.* only), e.g. JP.7203 / JP.6758 |
count | int | query | no | Number of records to return, default 30, range 1~90 |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/US.AAPL/short/jp-credit?count=1' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse
| Field | Type | Description |
|---|---|---|
data.items | object[] | |
data.items[].timestamp | integer | Data timestamp in milliseconds |
data.items[].date | integer | Data date YYYY-MM-DD (Tokyo timezone) |
data.items[].close_price | number | Close price |
data.items[].last_close_price | number | Previous close price |
data.items[].financing_short_ratio | number | Margin-buy to short-sell ratio |
data.items[].short_position_ratio | number | Short position ratio against total shares (percent) |
data.items[].margin_buy_position_ratio | number | Margin-buy position ratio against total shares (percent) |
data.items[].short_position | object | Short-selling position breakdown (shares) |
data.items[].short_position[].total | string | Total short position (shares) |
data.items[].short_position[].negotiable | string | General/negotiable credit short position (shares) |
data.items[].short_position[].standardized | string | Standardized credit short position (shares) |
data.items[].short_position[].weekly_change | string | Week-over-week change in short position (shares) |
data.items[].margin_buy_position | object | Margin-buying position breakdown (shares) |
data.items[].margin_buy_position[].total | string | Total margin-buy position (shares) |
data.items[].margin_buy_position[].negotiable | string | General/negotiable credit margin-buy position (shares) |
data.items[].margin_buy_position[].standardized | string | Standardized credit margin-buy position (shares) |
data.items[].margin_buy_position[].weekly_change | string | Week-over-week change in margin-buy position (shares) |
data.items[].diff_position | object | Net difference (margin-buy minus short-sell) breakdown (shares) |
data.items[].diff_position[].total | string | Total net difference (shares) |
data.items[].diff_position[].weekly_change | string | Week-over-week change in net difference (shares) |
Errors
| ret_code | error.code | Description |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | Missing or invalid parameter |
| -7 | invalid_symbol | Unknown symbol |
| -8 | unsupported | Market or product is not supported |
| -9 | permission_denied | Missing permission |
| -10 | no_data | No data |
| -11 | rate_limited | Too many requests |
Sample
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"timestamp": 0,
"date": 0,
"close_price": "example",
"last_close_price": "example",
"financing_short_ratio": "example",
"short_position_ratio": "example"
}
]
}
}