question

Isabelle Francis avatar image
Isabelle Francis asked

BENCHMARK API PUT CALL, how do i pass parameters?

Hi, how do i pass in the parameters for the PUT Call for BENCHMARK API..Will it automatically adjust the weightage for the other instruments. Thanks.

for eg if i want to update [Strat] Equity World Strat (id 67430479)

, how to i pass in the parameters to update instrumentId

67110367, i want to change the weight to 15 instead of 10.5 now.

API - Other
10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Radu Cristian Ilina avatar image
Radu Cristian Ilina answered

Hello Isabelle,


After further investigation we arrived at the conclusion that the weightage for the other instruments is not updated automatically. Following the Benchmarks API guide, you can update only one instrument weight by following this steps:


1. Download the Benchmarks API Postman collection

2. Obtain the Authorization Code for your application

3. Make the "Retrieve the composition of a benchmark" GET request with the "67430479" id to get all the components

4. Search in the received array your instrumentId "67110367"

5. Replace the current weight 10.5 with 15

6. Use this modified array as the body for the "Update the composition of a benchmark" PUT request to update the "67430479" benchmark


The PUT request overrides the initial array, so in order to modify only one value, the request must also include the previous values that were not modified.

Best regards,

Radu Cristian Ilina

10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.