Owed to funded traders

.md

Every funded account in profit, with what its trader could ask for today.

Scopesadmin:read
Permissionview_analytics
GET/v1/admin/dashboard/owed

Every funded account above its starting balance, with what its trader could ask for today, largest profit first. The list behind "Owed to funded" in money, whose owed.amount is the sum of every share here. The website shows the first two hundred; this pages through all of them.

Only accounts in the currency the firm sells in, and never an account of our own staff. Behind the same permission as money, view_analytics.

Needs a firm. Our own staff name one with the Propper-Workspace header.

Request

ParameterDescription
sort-profit, largest first (the default), or profit, smallest first
limitHow many, see pagination
starting_afterThe next_cursor of the page before. A cursor only works with the sort it was handed out with
curl "https://api.proppertrading.com/v1/admin/dashboard/owed?limit=2" \
  -H "Authorization: Bearer ptat_9f2c1a44_3b8e7d2f5c9a1b4e6d8f0a2c4e6b8d1f" \
  -H "Propper-Workspace: acme"

Response

{
    "data": [
        {
            "object": "owed_account",
            "id": "acct_gcmnympgg8quua3k",
            "account_number": "PAQ4YX4NQX",
            "trader": {
                "id": "usr_r3v3rnu3kjsj5asc",
                "name": "Alex Morgan",
                "email": "[email protected]"
            },
            "profit": { "value": "2012.60", "currency": "USD" },
            "share": { "value": "1610.08", "currency": "USD" },
            "split": 80,
            "action_url": "/admin/trading-accounts/acct_gcmnympgg8quua3k"
        },
        {
            "object": "owed_account",
            "id": "acct_j55e8c8gkfmrjgxq",
            "account_number": "PADC84F8C5",
            "trader": {
                "id": "usr_x3mh3pt4pgk7m5fk",
                "name": "Tariq Hughes",
                "email": "[email protected]"
            },
            "profit": { "value": "1997.32", "currency": "USD" },
            "share": { "value": "1597.86", "currency": "USD" },
            "split": 80,
            "action_url": "/admin/trading-accounts/acct_j55e8c8gkfmrjgxq"
        }
    ],
    "meta": {
        "request_id": "req_01m50f2dfz1bd1pak4gd70pyp1",
        "has_more": true,
        "next_cursor": "eyJzIjoiLXByb2ZpdCIsInYiOiIxOTk3LjMyIiwiaWQiOiJhY2N0X2o1NWU4Yzhna2ZtcmpneHEifQ"
    }
}
FieldDescription
idThe trading account
traderWhose account it is
trader.idTheir id, only when this person may open traders. Null otherwise
profitRealised profit above the starting balance. Payouts that are pending or approved are still inside it
shareWhat the trader could ask for: profit times split
splitThe trader's percentage: the phase's own, or the firm's
action_urlWhere the website shows the account, a path inside the web application

Errors

StatusCodeMeaning
400workspace_requiredAsked by our own staff without naming a firm
400invalid_sortsort is not profit or -profit
400invalid_limitlimit is not a positive integer
400invalid_cursorstarting_after is not a cursor handed out for this sort
401invalid_tokenNot a token, or the secret does not match
401revoked_tokenSigned out here or from another device
401expired_tokenNinety days without use, or a set expiry passed
403admin_access_requiredThis account no longer helps run the environment
403insufficient_scopeThis device does not hold admin:read
403workspace_not_permittedThe Propper-Workspace header names an environment this account cannot act in
403forbiddenWithout view_analytics