Tax
List Gains
Permissions required: Subaccount
List subaccount's gains for a period breakdown to short term, long term and total
get/tax/gains/summary/{subaccountId}
Request
- Base URLhttps://api.anchorage-staging.com/v2
- AuthAPI key in header Api-Access-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
subaccountIdstring required
The ID of the subaccount
Query parameters
startDateTimestring date-time required
ISO-8601 formatted date as a filter start date.
endDateTimestring date-time required
ISO-8601 formatted date as a filter end date.
Response
Successfully returned the gains
Example response
{
"data": {
"shortTerm": {
"assetType": "USD",
"quantity": "20204.23"
},
"longTerm": {
"assetType": "USD",
"quantity": "200304.1"
},
"total": {
"assetType": "USD",
"quantity": "220308.33"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.