{ "path": "/api/v1/trading/info/demo/pnl", "method": "get", "status": "200", "type": "response", "example": { "clientPortfolio": { "credit": 10000.5, "unrealizedPnL": 251.0, "mirrors": [ { "mirrorId": 1, "cid": 123, "parentCid": 456, "stopLossPercentage": 15.5, "isPaused": false, "copyExistingPositions": true, "availableAmount": 5000.0, "stopLossAmount": 750.0, "initialInvestment": 10000.0, "depositSummary": 12000.0, "withdrawalSummary": 2000.0, "positions": [ { "positionId": 9002, "cid": 124, "openDateTime": "2024-01-02T09:00:00Z", "openRate": 1.2346, "instrumentId": 102, "isBuy": false, "takeProfitRate": 1.6, "stopLossRate": 1.1, "mirrorId": 1, "parentPositionId": 8002, "amount": 2000.0, "leverage": 3, "orderId": 5002, "orderType": 2, "units": 20.5, "totalFees": 3.5, "initialAmountInDollars": 2000.0, "isTslEnabled": true, "stopLossVersion": 2, "isSettled": false, "redeemStatusId": 1, "initialUnits": 20.5, "isPartiallyAltered": true, "unitsBaseValueDollars": 2000.0, "isDiscounted": true, "openPositionActionType": 2, "settlementTypeId": 2, "isDetached": true, "openConversionRate": 1.2, "pnlVersion": 2, "totalExternalFees": 1.0, "totalExternalTaxes": 0.5, "isNoTakeProfit": true, "isNoStopLoss": false, "lotCount": 2.0, "externalOperation": null, "pnL": 150.75, "closeRate": 1.3, "closeConversionRate": 1.15, "timestamp": "2024-01-02T12:00:00Z" } ], "parentUsername": "parent_user", "closedPositionsNetProfit": 350.75, "startedCopyDate": "2024-01-01T09:00:00Z", "pendingForClosure": false, "parentMirrors": [], "mirrorCalculationType": 2, "ordersForOpen": [ { "orderId": 1001, "orderType": 1, "statusId": 1, "cid": 123, "openDateTime": "2024-01-01T09:00:00Z", "lastUpdate": "2024-01-02T10:00:00Z", "instrumentId": 101, "amount": 1000.0, "amountInUnits": 10.5, "isBuy": true, "leverage": 2, "stopLossRate": 1.2345, "takeProfitRate": 1.3456, "isTslEnabled": false, "isDiscounted": true, "mirrorId": 1, "frozenAmount": 0.0, "totalExternalCosts": 5.0, "isNoTakeProfit": false, "isNoStopLoss": false, "lotCount": 1.0, "openPositionActionType": 1, "externalOperation": null } ], "ordersForClose": [ { "orderId": 2001, "orderType": 2, "statusId": 1, "cid": 123, "openDateTime": "2024-01-01T09:00:00Z", "lastUpdate": "2024-01-02T10:00:00Z", "instrumentId": 101, "unitsToDeduct": 5.0, "lotsToDeduct": 0.5, "positionId": 3001 } ], "ordersForCloseMultiple": [ { "orderId": 3001, "orderType": 3, "statusId": 1, "cid": 123, "openDateTime": "2024-01-01T09:00:00Z", "lastUpdate": "2024-01-02T10:00:00Z", "instrumentId": 101, "unitsToDeduct": 10.0, "lotsToDeduct": 1.0, "pendingClosePositionIds": [ 3001, 3002 ] } ], "mirrorStatusId": 1 } ], "orders": [ { "orderId": 5001, "cid": 123, "openDateTime": "2024-01-01T09:00:00Z", "instrumentId": 101, "isBuy": true, "takeProfitRate": 1.5, "stopLossRate": 1.2, "rate": 1.3, "amount": 1000.0, "leverage": 2, "units": 10.5, "isTslEnabled": false, "executionType": 1, "isDiscounted": false, "isNoTakeProfit": false, "isNoStopLoss": false } ], "ordersForOpen": [ { "orderId": 1001, "orderType": 1, "statusId": 1, "cid": 123, "openDateTime": "2024-01-01T09:00:00Z", "lastUpdate": "2024-01-02T10:00:00Z", "instrumentId": 101, "amount": 1000.0, "amountInUnits": 10.5, "isBuy": true, "leverage": 2, "stopLossRate": 1.2345, "takeProfitRate": 1.3456, "isTslEnabled": false, "isDiscounted": true, "mirrorId": 1, "frozenAmount": 0.0, "totalExternalCosts": 5.0, "isNoTakeProfit": false, "isNoStopLoss": false, "lotCount": 1.0, "openPositionActionType": 1, "externalOperation": null } ], "ordersForClose": [ { "orderId": 2001, "orderType": 2, "statusId": 1, "cid": 123, "openDateTime": "2024-01-01T09:00:00Z", "lastUpdate": "2024-01-02T10:00:00Z", "instrumentId": 101, "unitsToDeduct": 5.0, "lotsToDeduct": 0.5, "positionId": 3001 } ], "ordersForCloseMultiple": [ { "orderId": 3001, "orderType": 3, "statusId": 1, "cid": 123, "openDateTime": "2024-01-01T09:00:00Z", "lastUpdate": "2024-01-02T10:00:00Z", "instrumentId": 101, "unitsToDeduct": 10.0, "lotsToDeduct": 1.0, "pendingClosePositionIds": [ 3001, 3002 ] } ], "bonusCredit": 500.0, "positions": [ { "positionId": 9001, "cid": 123, "openDateTime": "2024-01-01T09:00:00Z", "openRate": 1.2345, "instrumentId": 101, "isBuy": true, "takeProfitRate": 1.5, "stopLossRate": 1.2, "mirrorId": 1, "parentPositionId": 8001, "amount": 1000.0, "leverage": 2, "orderId": 5001, "orderType": 1, "units": 10.5, "totalFees": 2.5, "initialAmountInDollars": 1000.0, "isTslEnabled": false, "stopLossVersion": 1, "isSettled": true, "redeemStatusId": 0, "initialUnits": 10.5, "isPartiallyAltered": false, "unitsBaseValueDollars": 1000.0, "isDiscounted": false, "openPositionActionType": 1, "settlementTypeId": 1, "isDetached": false, "openConversionRate": 1.0, "pnlVersion": 1, "totalExternalFees": 0.0, "totalExternalTaxes": 0.0, "isNoTakeProfit": false, "isNoStopLoss": false, "lotCount": 1.0, "externalOperation": null, "pnL": 100.25, "closeRate": 1.25, "closeConversionRate": 1.1, "timestamp": "2024-01-01T12:00:00Z" } ] } } }