TradeReduce
A TradeReduce object represents a Trade for an instrument that was reduced (either partially or fully) in an Account. It is found embedded in Transactions that affect the position of an instrument in the account, specifically the OrderFill Transaction.
Properties
| Name | Type | Description |
|---|---|---|
| tradeID | string | The ID of the Trade that was reduced or closed |
| units | string | The number of units that the Trade was reduced by |
| price | string | The average price that the units were closed at. This price may be clamped for guaranteed Stop Loss Orders. |
| realizedPL | string | The PL realized when reducing the Trade |
| financing | string | The financing paid/collected when reducing the Trade |
| guaranteedExecutionFee | string | This is the fee that is charged for closing the Trade if it has a guaranteed Stop Loss Order attached to it. |
| halfSpreadCost | string | The half spread cost for the trade reduce/close. This can be a positive or negative value and is represented in the home currency of the Account. |
JSON Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "TradeReduce",
"description": "A TradeReduce object represents a Trade for an instrument that was reduced (either partially or fully) in an Account. It is found embedded in Transactions that affect the position of an instrument in the account, specifically the OrderFill Transaction.",
"type": "object",
"properties": {
"tradeID": {
"type": "string",
"description": "The ID of the Trade that was reduced or closed",
"format": "The string representation of the OANDA-assigned TradeID. OANDA-assigned TradeIDs are positive integers, and are derived from the TransactionID of the Transaction that opened the Trade."
},
"units": {
"type": "string",
"description": "The number of units that the Trade was reduced by",
"format": "A decimal number encoded as a string. The amount of precision provided depends on what the number represents."
},
"price": {
"type": "string",
"description": "The average price that the units were closed at. This price may be clamped for guaranteed Stop Loss Orders.",
"format": "A decimal number encodes as a string. The amount of precision provided depends on the Instrument."
},
"realizedPL": {
"type": "string",
"description": "The PL realized when reducing the Trade",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"financing": {
"type": "string",
"description": "The financing paid/collected when reducing the Trade",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"guaranteedExecutionFee": {
"type": "string",
"description": "This is the fee that is charged for closing the Trade if it has a guaranteed Stop Loss Order attached to it.",
"format": "A decimal number encoded as a string. The amount of precision provided depends on the Account's home currency."
},
"halfSpreadCost": {
"type": "string",
"description": "The half spread cost for the trade reduce/close. This can be a positive or negative value and is represented in the home currency of the Account.",
"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
curl "https://apis.io/api/v1/json-schemas/TradeReduce"
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.