OANDA · Schema

TradeOpen

A TradeOpen object represents a Trade for an instrument that was opened in an Account. It is found embedded in Transactions that affect the position of an instrument in the Account, specifically the OrderFill Transaction.

ForexFX TradingCFD TradingFinancial-ServicesTrading APIs

Properties

Name Type Description
tradeID string The ID of the Trade that was opened
units string The number of units opened by the Trade
price string The average price that the units were opened at.
guaranteedExecutionFee string This is the fee charged for opening the trade if it has a guaranteed Stop Loss Order attached to it.
clientExtensions object
halfSpreadCost string The half spread cost for the trade open. This can be a positive or negative value and is represented in the home currency of the Account.
initialMarginRequired string The margin required at the time the Trade was created. Note, this is the 'pure' margin required, it is not the 'effective' margin used that factors in the trade risk if a GSLO is attached to the trade
View JSON Schema on GitHub

JSON Schema

TradeOpen.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "TradeOpen",
  "description": "A TradeOpen object represents a Trade for an instrument that was opened 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 opened",
      "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 opened by the Trade",
      "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 opened at.",
      "format": "A decimal number encodes as a string. The amount of precision provided depends on the Instrument."
    },
    "guaranteedExecutionFee": {
      "type": "string",
      "description": "This is the fee charged for opening 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."
    },
    "clientExtensions": {
      "$ref": "#/definitions/ClientExtensions"
    },
    "halfSpreadCost": {
      "type": "string",
      "description": "The half spread cost for the trade open. 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."
    },
    "initialMarginRequired": {
      "type": "string",
      "description": "The margin required at the time the Trade was created. Note, this is the 'pure' margin required, it is not the 'effective' margin used that factors in the trade risk if a GSLO is attached to the trade.",
      "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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/TradeOpen"
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.