Skip to content

Realised P&L

GET
/api/trading/accounts/{account_id}/pnl
curl --request GET \
--url https://example.com/api/trading/accounts/1/pnl \
--header 'INF-ACCESS-KEY: <INF-ACCESS-KEY>' \
--header 'INF-ACCESS-SIGNATURE: <INF-ACCESS-SIGNATURE>' \
--header 'INF-ACCESS-TIMESTAMP: <INF-ACCESS-TIMESTAMP>'

All-time realised P&L, fees and net deposits. Given from_ms or to_ms, also what was realised and paid in fees in that range.

account_id
required
Account Id
integer
from_ms
Any of:
integer

Range start, inclusive.

to_ms
Any of:
integer

Range end, exclusive.

Successful Response

Media typeapplication/json
Pnl
object
realized_pnl
required
Realized Pnl
integer
fees
required
Fees

Fees paid less rebates, in units. realized_pnl leaves them out.

integer
deposited
required
Deposited
integer
range
Any of:
PnlRange
object
from_ms
required
Any of:
integer
to_ms
required
Any of:
integer
realized_pnl
required
Realized Pnl
integer
fees
required
Fees

Fees paid less rebates, in units. realized_pnl leaves them out.

integer
Examplegenerated
{
"realized_pnl": 1,
"fees": 1,
"deposited": 1,
"range": {
"from_ms": 1,
"to_ms": 1,
"realized_pnl": 1,
"fees": 1
}
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}