QuantConnect / Documentation

QuantConnect Wiki Style Documentation Behind QuantConnect
https://www.quantconnect.com/docs/v2/
Apache License 2.0
173 stars 139 forks source link

Update live/portfolio/read response #1761

Closed Marinovsky closed 6 months ago

Marinovsky commented 6 months ago

Update docs response from live/portfolio/read to match the response from the API:

{
    "portfolio": {
        "holdings": {
            "AAPL R735QTJ8XC9X": {
                "symbol": {
                    "value": "AAPL",
                    "id": "AAPL R735QTJ8XC9X",
                    "permtick": "AAPL"
                },
                "currencySymbol": "$",
                "averagePrice": 1,
                "quantity": 1,
                "marketPrice": 183.28999999999999,
                "conversionRate": 1,
                "marketValue": 183.28977991799999,
                "unrealizedPnl": 181.28999999999999,
                "unrealizedPnLPercent": 18128.98,
                "type": 1
            }
        },
        "cash": {
            "USD": {
                "securitySymbols": [],
                "symbol": "USD",
                "amount": 100000,
                "conversionRate": 1,
                "currencySymbol": "$",
                "valueInAccountCurrency": 100000
            }
        }
    },
    "success": true
}