Skip to main content
GET
Get portfolio analytics

Authorizations

x-api-key
string
header
required

A scoped API key created in the PaperDrill dashboard.

Response

Portfolio analytics returned successfully.

quoteAsset
string
required
asOf
string<date-time>
required
source
enum<string>
required
Available options:
live,
projection,
engine
partial
boolean
required
equity
string
required

A non-negative decimal encoded as a string.

Pattern: ^\d+(\.\d+)?$
Example:

"125.50"

cash
string
required

A non-negative decimal encoded as a string.

Pattern: ^\d+(\.\d+)?$
Example:

"125.50"

positionsValue
string
required

A non-negative decimal encoded as a string.

Pattern: ^\d+(\.\d+)?$
Example:

"125.50"

costBasis
string | null
required

A non-negative decimal encoded as a string.

Pattern: ^\d+(\.\d+)?$
Example:

"125.50"

realizedPnl
string | null
required

A signed decimal encoded as a string.

Pattern: ^[+-]?\d+(\.\d+)?$
Example:

"+3.40"

unrealizedPnl
string | null
required

A signed decimal encoded as a string.

Pattern: ^[+-]?\d+(\.\d+)?$
Example:

"+3.40"

netContributions
string | null
required

A non-negative decimal encoded as a string.

Pattern: ^\d+(\.\d+)?$
Example:

"125.50"

totalPnl
string | null
required

A signed decimal encoded as a string.

Pattern: ^[+-]?\d+(\.\d+)?$
Example:

"+3.40"

totalPnlPercent
string | null
required

A signed decimal encoded as a string.

Pattern: ^[+-]?\d+(\.\d+)?$
Example:

"+3.40"

allocation
object[]
required

Open positions sorted by value, largest first.

cashAllocationPercent
string | null
required

A non-negative decimal encoded as a string.

Pattern: ^\d+(\.\d+)?$
Example:

"125.50"

performance
object[]
required

Traded assets sorted by total PnL, best first.

bestAsset
object | null
required
worstAsset
object | null
required
trading
object
required
change24h
object | null
required

Change in total PnL over 24 hours, excluding contributions.