Get Time and Sales Data

Sections

Theme switcher

Get Account Gain/Loss

Header Parameters

Acceptstring Required

Response format

Enum values:
application/json
Authorizationstring Required

Bearer token used to authenticate the API request. This header must include a valid access token with sufficient permissions to access account gain and loss data.

Query Parameters

pageinteger

Page number for pagination

Default value
1
limitinteger

Set a max number of number of positions to return

Default value
100
sortBystring

Sort the results by specified field

Default value
closedate
Enum values:
closedateopendatesymbolgainloss
sortstring

Sort direction (ascending/descending)

Default value
desc
Enum values:
ascdesc

Path Parameters

account_idstring Required

ID of the account

Response

200
Object

Account gain/loss information

Response Attributes

gainlossobject

The net gain or loss value for the specified account, calculated based on all relevant transactions within the selected period.

Show child attributes

401
Object

Authentication required or invalid credentials

403
Object

Access denied to the requested resource

404
Object

The requested resource was not found

Was this section helpful?

GET

/

Select
1

Response

Was this section helpful?