Investbrain Documentation
Transactions

Retrieve a single transaction

On this page 7
GET /transaction/{id}

Responses

200

Transaction matching the provided ID

application/json
object
  • id string uuid
  • symbol string

    Ticker symbol. Must be recognized by Investbrain's market data provider. Stored in upper case.

  • portfolio_id string uuid
  • transaction_type string
    Allowed values BUY SELL
  • quantity number float

    Number of shares. Must be greater than 0. A SELL cannot exceed the shares held on its date.

  • currency string

    In requests, the currency of cost_basis or sale_price; it is converted to the symbol's trading currency if different. Accepted codes: AUD, BRL, CAD, CHF, CNY, CZK, DKK, EUR, GBP, HKD, INR, JPY, KRW, NOK, NZD, SEK, SGD, USD, ZAR. In responses, always the symbol's trading currency.

  • cost_basis number float

    Price paid per share. Send it with every BUY. Ignored on SELL, where it is calculated from the average cost of earlier purchases.

  • sale_price number

    Price received per share. Send it with every SELL. Ignored on BUY.

  • split boolean

    true for transactions Investbrain created to account for a stock split. Set automatically.

  • reinvested_dividend boolean

    true for transactions Investbrain created by reinvesting a dividend. Set automatically.

  • date string date

    Trade date (YYYY-MM-DD). Must be on or after 1970-01-01 and can't be in the future.

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

401

Token not provided or invalid

403

Action not permitted

404

Resource not found

429

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

500

Server error