Investbrain Documentation
Transactions

Retrieve a paginated list of your transactions

On this page 7
GET /transaction

Parameters

Query
page integer Optional

The requested page number

itemsPerPage integer Optional

The number of items to include per page (maximum 100)

sort array Optional

Comma-separated columns to sort by. Prefix a column with - to sort it in descending order (e.g. sort=-date,symbol). Unsupported columns return a 422 validation error. Without sort, results come back in no particular order, so pass sort if you need a stable order across pages.

search string Optional

Case-insensitive partial match against symbol

filter object Optional

Filter the results using filter[name]=value. Separate multiple values with commas to match any of them (e.g. filter[symbol]=AAPL,MSFT). Unsupported filter names return a 422 validation error.

Responses

200

List of transactions matching the provided filter criteria

application/json
object

401

Token not provided or invalid

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