Skip to main content
GET
/
api
/
v1
/
trading
/
info
/
portfolio
Retrieve comprehensive portfolio information including positions, orders, and account status
curl --request GET \
  --url https://public-api.etoro.com/api/v1/trading/info/portfolio \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-request-id: <x-request-id>' \
  --header 'x-user-key: <x-user-key>'
{
  "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,
        "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": 0.00001,
        "rate": 0.1453,
        "amount": 100,
        "leverage": 1,
        "units": 688.231246,
        "isTslEnabled": false,
        "executionType": 0,
        "isDiscounted": false
      }
    ],
    "stockOrders": [],
    "entryOrders": [],
    "exitOrders": [],
    "ordersForOpen": [],
    "ordersForClose": [],
    "ordersForCloseMultiple": [],
    "bonusCredit": 0
  }
}

Headers

x-request-id
string<uuid>
required

A unique request identifier.

Example:

"629053a7-d50e-4bec-9de4-ac4a5b5f902b"

x-api-key
string<password>
required

API key for authentication.

Example:

"lhgfaslk21490FAScVPkdsb53F9dNkfHG4faZSG5vfjndfcfgdssdgsdHF4663"

x-user-key
string<password>
required

User-specific authentication key.

Example:

"eyJlYW4iOiJVbnJlZ2lzdGVyZWRBcHBsaWNhdGlvbiIsImVrIjoiOE5sZ2cwcW5EUVdROUFNWGpXT2lmOWktZnpidG5KcUlqWGJ3WHJZZkpZcldrbG90ZEhvLVBjSWhQaU8xU1ZtMW84aU1WZGZqN2xWNzFjLXFxLmcybXE1dnh4Q1hUT25xaWRUaTFlcEhmVk1fIn0_"

Response

200 - application/json

Successfully retrieved portfolio information

Comprehensive portfolio information including positions, orders, and account status

clientPortfolio
object

Container for all portfolio-related information