Replace a portfolio draft.

Payload

Please note that you only need to pass the budget, the instrument ids and either the weight or the quantity.

  {
    "budget": decimal,
    "positions": [
      {
        "instrument_id": integer,
        "quantity": integer,
        "weight": decimal
      },
      .
      .
      .
    ]
  }

Any other parameters would be superfluous and will be ignored.

Params

Param Name Description
portfolio_id
Required

The slug of the portfolio to replace the draft for.


Value:

Must be String

draft
Required

Draft data.


Value:

Must be a Hash

draft[budget]
Optional

The budget of the draft.


Value:

Must be decimal.

draft[positions]
Optional

Draft positions.


Value:

Must be an Array of nested elements

draft[positions][instrument_id]
Required

The id of the instrument.


Value:

Must be Integer

draft[positions][weight]
Optional

The weight of the instrument.


Value:

Must be decimal.

draft[positions][quantity]
Optional

The quantity of the instrument.


Value:

Must be Integer