API reference

Tax lots

Gains and losses at tax-lot level, with cost and value in both local and reporting currency and the exchange rates used.

Common parameters

Both endpoints take the same parameters.

NameInTypeDescription
idpathintegerrequiredClient id. 0 returns all clients you can access.
yearMonthqueryintegerrequiredEnd of the period, YYYYMM.
periodqueryintegeroptional0 MTD (default), 1 YTD, 2 3 months, 3 6 months, 4 12 months.
ccyquerystringoptionalReporting currency. Default USD.
tenantIdquerystringoptionalTenant to query, from /Tenants. Default: your user's main tenant.

Unrealized gain/loss

GET/TaxLot/UnrealizedGL/{id}
REST onlyFull license only

Returns open tax lots with their cost basis, current market value and unrealized gain or loss.

Example request

Response

Response fields
FieldTypeDescription
clientID, clientAliasstringClient ID and alias.
invVehicle, invVehicleCodestringInvestment vehicle name and code.
parentNodeId, nodeIdstringPosition in the GWM.
bankBroker, accountNumberstring | nullAccount details.
assetNamestring | nullAsset or security name.
securityIdintegerMasttro security id.
assetClass, securityTypestring | nullClassification from your Asset Master.
localCCYstringLocal currency of the asset.
taxLotnumber | nullTax lot number.
acquisitionDatestring | nullAcquisition date of the lot.
unitCostLocalCCYnumber | nullUnit cost, local currency.
unitsstring | nullUnits in the lot.
totalCostLocalCCYnumber | nullTotal cost, local currency.
exchangeRateCostnumber | nullExchange rate at acquisition.
totalCostRepCCYnumber | nullTotal cost, reporting currency.
lastPriceLocalCCYnumber | nullLast price, local currency.
marketValueLocalCCYnumber | nullMarket value, local currency.
exchangeRateLastPricenumber | nullExchange rate at the last price date.
marketValueRepCCYnumber | nullMarket value, reporting currency.
unrealizedGainLossRepCCYnumber | nullUnrealized gain or loss, reporting currency.
initialDatestring | nullStart of the selected period.
datestring | nullDate selected in the request.

Realized gain/loss

GET/TaxLot/RealizedGL/{id}
REST onlyFull license only

Returns lots sold during the period with their cost basis, sale proceeds and realized gain or loss.

Example request

Response

The identity, classification and cost fields are the same as Unrealized gain/loss, from clientID through totalCostRepCCY. Instead of market value fields, each row has:

FieldTypeDescription
saleDatestring | nullDate of the sale.
salePriceLocalCCYnumber | nullSale price, local currency.
tradeAmountLocalCCYnumber | nullValue of the units sold, local currency.
exchangeRateSellDatenumber | nullExchange rate on the sale date.
tradeAmountRepCCYnumber | nullValue of the units sold, reporting currency.
realizedGainLossRepCCYnumber | nullRealized gain or loss, reporting currency.
initialDatestring | nullStart of the selected period.
datestring | nullDate selected in the request.

Errors

StatusBody
400"The user does not have access to this client or the client does not exist."
400Validation problem when yearMonth is missing or not a number.
400"The user does not have access to this tenant or the tenant does not exist."

Plus the common 401 and 429 responses. See Errors.