get_trade
Fetch detailed information about a specific trade, including entry price, units, profit or loss, margin, and attached take-profit or stop-loss orders.
Instructions
Get the details of a single trade on the configured account.
Returns {"trade": {...}, "lastTransactionID": "..."} where the
trade has id, instrument, price (entry fill, decimal
string), openTime (RFC3339), state (OPEN, CLOSED, or
CLOSE_WHEN_TRADEABLE), initialUnits / currentUnits
(decimal strings; positive = long, negative = short), realizedPL,
unrealizedPL, marginUsed, financing (decimal strings in
the home currency), any attached takeProfitOrder /
stopLossOrder / trailingStopLossOrder, and — for closed
trades — averageClosePrice and closeTime.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trade_specifier | Yes | Trade ID (e.g. '42') or '@' followed by the client-assigned ID (e.g. '@my_trade'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||