Skip to main content
GET
Portfolio trades

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

account
string

Return only this account, by the id or the exact name from /portfolio/accounts. All accounts of the user are used when it is left out.

from
string<date>

Include trades closed on or after this date (YYYY-MM-DD, ET). Defaults to January 1 of the current year.

to
string<date>

Include trades closed on or before this date (YYYY-MM-DD, ET). Defaults to today.

ticker
string

Return only trades in this ticker or in options on it.

kind
enum<string>
Available options:
stock,
option
sort
enum<string>
default:recent

Order trades by close date, newest first, or by realized P&L.

Available options:
recent,
best,
worst
limit
integer
default:25

The number of rows to return.

Required range: 1 <= x <= 100

Response

The trades

Closed trades of the selected accounts. Fills that close the same position on the same day form one trade.

data
object