v1
latestOpenAPI 3.0.02026-08-04134348905.1 KBTax
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}
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"
}
}
}