OANDA · Schema
CalculatedAccountState
The dynamically calculated state of a client's Account.
ForexFX TradingCFD TradingFinancial-ServicesTrading APIs
Properties
| Name | Type | Description |
|---|---|---|
| unrealizedPL | string | The total unrealized profit/loss for all Trades currently open in the Account. |
| NAV | string | The net asset value of the Account. Equal to Account balance + unrealizedPL. |
| marginUsed | string | Margin currently used for the Account. |
| marginAvailable | string | Margin available for Account currency. |
| positionValue | string | The value of the Account's open positions represented in the Account's home currency. |
| marginCloseoutUnrealizedPL | string | The Account's margin closeout unrealized PL. |
| marginCloseoutNAV | string | The Account's margin closeout NAV. |
| marginCloseoutMarginUsed | string | The Account's margin closeout margin used. |
| marginCloseoutPercent | string | The Account's margin closeout percentage. When this value is 1.0 or above the Account is in a margin closeout situation. |
| marginCloseoutPositionValue | string | The value of the Account's open positions as used for margin closeout calculations represented in the Account's home currency. |
| withdrawalLimit | string | The current WithdrawalLimit for the account which will be zero or a positive value indicating how much can be withdrawn from the account. |
| marginCallMarginUsed | string | The Account's margin call margin used. |
| marginCallPercent | string | The Account's margin call percentage. When this value is 1.0 or above the Account is in a margin call situation. |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CalculatedAccountState",
"description": "The dynamically calculated state of a client's Account.",
"type": "object",
"properties": {
"unrealizedPL": {
"type": "string",
"description": "The total unrealized profit/loss for all Trades currently open in the Account.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"NAV": {
"type": "string",
"description": "The net asset value of the Account. Equal to Account balance + unrealizedPL.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"marginUsed": {
"type": "string",
"description": "Margin currently used for the Account.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"marginAvailable": {
"type": "string",
"description": "Margin available for Account currency.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"positionValue": {
"type": "string",
"description": "The value of the Account's open positions represented in the Account's home currency.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"marginCloseoutUnrealizedPL": {
"type": "string",
"description": "The Account's margin closeout unrealized PL.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"marginCloseoutNAV": {
"type": "string",
"description": "The Account's margin closeout NAV.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"marginCloseoutMarginUsed": {
"type": "string",
"description": "The Account's margin closeout margin used.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"marginCloseoutPercent": {
"type": "string",
"description": "The Account's margin closeout percentage. When this value is 1.0 or above the Account is in a margin closeout situation.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on what the number represents."
},
"marginCloseoutPositionValue": {
"type": "string",
"description": "The value of the Account's open positions as used for margin closeout calculations represented in the Account's home currency.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on what the number represents."
},
"withdrawalLimit": {
"type": "string",
"description": "The current WithdrawalLimit for the account which will be zero or a positive value indicating how much can be withdrawn from the account.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"marginCallMarginUsed": {
"type": "string",
"description": "The Account's margin call margin used.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"marginCallPercent": {
"type": "string",
"description": "The Account's margin call percentage. When this value is 1.0 or above the Account is in a margin call situation.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on what the number represents."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/CalculatedAccountState"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.