Skip to content

Equity

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

Cash and net position per market, to value at the live price.

account_id
required
Account Id
integer

Successful Response

Media typeapplication/json
Equity
object
cash
required
Cash
integer
held_for_withdrawals
required
Held For Withdrawals

Cash the vault may still pay out for pending withdrawals. No order can use it.

integer
admissible
required
Admissible

Worst-case equity less what is held for withdrawals. New orders are checked against it.

integer
positions
required
Positions
Array<object>
NetPosition
object
market_id
required
Market Id
integer
position
required
Position
integer
Examplegenerated
{
"cash": 1,
"held_for_withdrawals": 1,
"admissible": 1,
"positions": [
{
"market_id": 1,
"position": 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": {}
}
]
}