Risk-free rates
GET/api/v1.0/quote/risk-free-rateGet risk-free rates for Hong Kong, United States, and Japan markets. Omit rate_time for the latest available values, or pass integer Unix seconds to query the nearest recorded observation. Rates are expressed as decimal fractions (for example, 0.05 means 5%); missing market rates are omitted rather than zero-filled.
Request parameters
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
rate_time | integer | query | No | Query timestamp in integer Unix seconds (for example, 1704067200), range 1 to 253402300799; omit for the latest rates. Milliseconds and decimals are rejected |
Request example
bash
curl -s "https://webapi.futunn.com/api/v1.0/quote/risk-free-rate" \
-H "Authorization: Bearer <AccessToken>"Response fields
Fields under data. On success, code=0 and message="success"; on failure, negative code, message, and trace_id are returned. All rate fields are decimal fractions (for example, 0.05 means 5%) and are omitted rather than zero-filled when unavailable.
| Field | Type | Description |
|---|---|---|
hk_rate | number | HK risk-free rate |
us_rate | number | US risk-free rate |
jp_rate | number | JP risk-free rate |
update_time | integer | Rate update timestamp in Unix seconds; omitted when unavailable |
Response example
Latest rates:
json
{
"code": 0,
"message": "success",
"data": {
"hk_rate": 0.042095,
"jp_rate": 0.013311,
"us_rate": 0.042095
}
}When querying with rate_time=1704067200, jp_rate is omitted if no JP observation exists for that timestamp:
json
{
"code": 0,
"message": "success",
"data": {
"hk_rate": 0.052637,
"us_rate": 0.052637
}
}Errors
| code | Description |
|---|---|
| -3 | Invalid parameter, such as rate_time below 1, above 253402300799, or supplied as a decimal or millisecond timestamp |
| -5 | Data service returned an error (for example, no historical rate record exists near the requested timestamp) |
| -11 | Rate limit exceeded; back off for Retry-After seconds |
| -13 | Rate-limit service unavailable |