Equity
GET
/api/trading/accounts/{account_id}/equity
const url = 'https://example.com/api/trading/accounts/1/equity';const options = { method: 'GET', headers: { 'INF-ACCESS-KEY': '<INF-ACCESS-KEY>', 'INF-ACCESS-TIMESTAMP': '<INF-ACCESS-TIMESTAMP>', 'INF-ACCESS-SIGNATURE': '<INF-ACCESS-SIGNATURE>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”account_id
required
Account Id
integer
Responses
Section titled “Responses”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>
NetPositionobject
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>
ValidationErrorobject
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": {} } ]}