Investbrain Documentation
Holdings

Configure options for a specific holding

On this page 9
PUT /holding/{portfolio-id}/{symbol}

Request Body

application/json
object
  • id string uuid
  • portfolio_id string uuid
  • symbol string
  • quantity number
  • currency string
  • reinvest_dividends boolean
  • average_cost_basis number float
  • total_cost_basis number float
  • realized_gain_dollars number
  • dividends_earned number float
  • splits_synced_at string date-time
  • total_market_value number float nullable

    Included when fetching a single holding, and in the holdings of GET /portfolio list results. Currently null in GET /holding list results.

  • market_gain_dollars number float nullable

    Included when fetching a single holding, and in the holdings of GET /portfolio list results. Currently null in GET /holding list results.

  • market_gain_percent number float nullable

    Included when fetching a single holding, and in the holdings of GET /portfolio list results. Currently null in GET /holding list results.

  • created_at string date-time
  • updated_at string date-time

Responses

200

Returns the updated holding

application/json
object
  • id string uuid
  • portfolio_id string uuid
  • symbol string
  • quantity number
  • currency string
  • reinvest_dividends boolean
  • average_cost_basis number float
  • total_cost_basis number float
  • realized_gain_dollars number
  • dividends_earned number float
  • splits_synced_at string date-time
  • total_market_value number float nullable

    Included when fetching a single holding, and in the holdings of GET /portfolio list results. Currently null in GET /holding list results.

  • market_gain_dollars number float nullable

    Included when fetching a single holding, and in the holdings of GET /portfolio list results. Currently null in GET /holding list results.

  • market_gain_percent number float nullable

    Included when fetching a single holding, and in the holdings of GET /portfolio list results. Currently null in GET /holding list results.

  • created_at string date-time
  • updated_at string date-time

401

Token not provided or invalid

403

Action not permitted

404

Resource not found

422

The query parameters or request body failed validation

application/json
object
  • message string
  • errors object

429

Rate limit exceeded. Retry after the number of seconds in the Retry-After header.

500

Server error