OANDA · Schema
CalculatedPositionState
The dynamic (calculated) state of a Position
ForexFX TradingCFD TradingFinancial-ServicesTrading APIs
Properties
| Name | Type | Description |
|---|---|---|
| instrument | string | The Position's Instrument. |
| netUnrealizedPL | string | The Position's net unrealized profit/loss |
| longUnrealizedPL | string | The unrealized profit/loss of the Position's long open Trades |
| shortUnrealizedPL | string | The unrealized profit/loss of the Position's short open Trades |
| marginUsed | string | Margin currently used by the Position. |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "CalculatedPositionState",
"description": "The dynamic (calculated) state of a Position",
"type": "object",
"properties": {
"instrument": {
"type": "string",
"description": "The Position's Instrument.",
"format": "A string containing the base currency and quote currency delimited by a \"_\"."
},
"netUnrealizedPL": {
"type": "string",
"description": "The Position's net unrealized profit/loss",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"longUnrealizedPL": {
"type": "string",
"description": "The unrealized profit/loss of the Position's long open Trades",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"shortUnrealizedPL": {
"type": "string",
"description": "The unrealized profit/loss of the Position's short open Trades",
"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 by the Position.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
}
}
}
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/CalculatedPositionState"
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.