Skip to main content
POST
/
quantlib
/
portfolio
/
risk-parity
Risk Parity Portfolio
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/portfolio/risk-parity \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "covariance_matrix": [
    [
      0.04,
      0.006,
      0.008,
      0.01
    ],
    [
      0.006,
      0.09,
      0.012,
      0.015
    ],
    [
      0.008,
      0.012,
      0.0625,
      0.018
    ],
    [
      0.01,
      0.015,
      0.018,
      0.16
    ]
  ],
  "method": "risk_parity"
}
'
{
  "success": true,
  "data": {
    "weights": [
      0.35,
      0.2,
      0.28,
      0.17
    ],
    "method": "risk_parity"
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
covariance_matrix
number[][]
required

Asset covariance matrix (annualized)

Example:
[
[0.04, 0.006, 0.008, 0.01],
[0.006, 0.09, 0.012, 0.015],
[0.008, 0.012, 0.0625, 0.018],
[0.01, 0.015, 0.018, 0.16]
]
method
enum<string>
default:risk_parity

Risk parity method to use

Available options:
risk_parity,
hrp,
inverse_vol
Example:

"risk_parity"

Response

Risk parity portfolio successfully computed

success
boolean
Example:

true

data
object