Get cost basis information for a specific user account. This includes information for all closed positions. Cost basis information is updated through a nightly batch reconciliation process with our clearing firm.
GET
Headers
Header
Required
Values/Example
Default
Accept
Optional
application/xml, application/json
application/xml
Authorization
Required
Bearer {token}
Parameters
Parameter
Type
Param Type
Required
Values/Example
Default
account_id
Path
String
Required
VA000000
Account number
page
Query
String
Optional
3
1
Used for paginated results. Page to start results.
limit
Query
String
Optional
100
Number of results to return per page.
sortBy
Query
String
Optional
closeDate
closeDate
Field to sort the results. One of: openDate,closeDate
sort
Query
String
Optional
desc
desc
Sort direction. One of: asc,desc
start
Query
String
Optional
yyyy-mm-dd
Account opening date
Start date
end
Query
String
Optional
yyyy-mm-dd
End of current day
End date
symbol
Query
String
Optional
SPY
Filter by security symbol
Code Example
If you're developing using a paper trading account, change the hostname to https://sandbox.tradier.com