eToro · Example Payload
Getportfoliodemo Response 200
Social TradingCopy TradingInvestingMarket DataPortfolio ManagementFintechTradingStocksCryptocurrencyETFs
Getportfoliodemo Response 200 is an example object payload from eToro, with 5 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
Top-level fields
pathmethodstatustypeexample
Example Payload
{
"path": "/api/v1/trading/info/demo/portfolio",
"method": "get",
"status": "200",
"type": "response",
"example": {
"clientPortfolio": {
"positions": [
{
"positionID": 2150896073,
"CID": 7765437,
"openDateTime": "2024-08-01T07:44:26.103Z",
"openRate": 2020.7784,
"instrumentID": 1002,
"isBuy": true,
"takeProfitRate": 0,
"stopLossRate": 0.0001,
"mirrorID": 0,
"parentPositionID": 0,
"amount": 100,
"leverage": 1,
"orderID": 12402059,
"orderType": 17,
"units": 0.049485,
"totalFees": 0,
"initialAmountInDollars": 100,
"isTslEnabled": false,
"stopLossVersion": 3,
"isSettled": true,
"redeemStatusID": 0,
"initialUnits": 0.049485,
"isPartiallyAltered": false,
"unitsBaseValueDollars": 100,
"isDiscounted": true,
"openPositionActionType": 0,
"settlementTypeID": 1,
"isDetached": false,
"openConversionRate": 1,
"pnlVersion": 1,
"totalExternalFees": 0,
"totalExternalTaxes": 0,
"isNoTakeProfit": true,
"isNoStopLoss": true,
"lotCount": 0.049485
}
],
"credit": 280.35,
"mirrors": [
{
"mirrorID": 1841334,
"CID": 7765437,
"parentCID": 14370798,
"stopLossPercentage": 5,
"isPaused": false,
"copyExistingPositions": true,
"availableAmount": 560,
"stopLossAmount": 28,
"initialInvestment": 560,
"depositSummary": 0,
"withdrawalSummary": 0,
"positions": [],
"entryOrders": [],
"exitOrders": [],
"parentUsername": "Deposit158990700",
"closedPositionsNetProfit": 0,
"startedCopyDate": "2024-05-23T13:31:57.007Z",
"pendingForClosure": false,
"parentMirrors": [],
"mirrorCalculationType": 1,
"ordersForOpen": [],
"ordersForClose": [],
"ordersForCloseMultiple": [],
"delayedOrderForClose": [],
"delayedOrderForOpen": [],
"mirrorStatusId": 0
}
],
"orders": [
{
"orderID": 5669649,
"CID": 7765437,
"openDateTime": "2024-06-06T08:07:25.083Z",
"instrumentID": 100043,
"isBuy": true,
"takeProfitRate": 0,
"stopLossRate": 1e-05,
"rate": 0.1453,
"amount": 100,
"leverage": 1,
"units": 688.231246,
"isTslEnabled": false,
"executionType": 0,
"isDiscounted": false
}
],
"stockOrders": [],
"entryOrders": [],
"exitOrders": [],
"ordersForOpen": [],
"ordersForClose": [],
"ordersForCloseMultiple": [],
"bonusCredit": 0
}
}
}