Skip to content

Risk-free rates ​

GET /api/v1.0/quote/risk-free-rate

Get 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 ​

ParameterTypeInRequiredDescription
rate_timeintegerqueryNoQuery 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.

FieldTypeDescription
hk_ratenumberHK risk-free rate
us_ratenumberUS risk-free rate
jp_ratenumberJP risk-free rate
update_timeintegerRate 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 ​

codeDescription
-3Invalid parameter, such as rate_time below 1, above 253402300799, or supplied as a decimal or millisecond timestamp
-5Data service returned an error (for example, no historical rate record exists near the requested timestamp)
-11Rate limit exceeded; back off for Retry-After seconds
-13Rate-limit service unavailable