---
title: "GET /v4/user/accounts/{server}/{accountId}/portfolio/trades/{tradeId}"
method: GET
path: "/v4/user/accounts/{server}/{accountId}/portfolio/trades/{tradeId}"
tags: ["Portfolio (v4)"]
---

# GET /v4/user/accounts/{server}/{accountId}/portfolio/trades/{tradeId}

`GET /v4/user/accounts/{server}/{accountId}/portfolio/trades/{tradeId}`

## Request

- Base URL: `https://trading-api.oanda.com` (the document declares no server; this is the origin it was published from)
- URL: `https://trading-api.oanda.com/v4/user/accounts/{server}/{accountId}/portfolio/trades/{tradeId}`
- Auth: HTTP bearer

## Path parameters

- `server` 'oanda' | 'oanda-demo' | 'otms' | 'v20' | 'v20-demo' | 'oj' | 'oj-demo' | 'opt' | 'ftmo-1', required
- `accountId` string, required
- `tradeId` string, required

## Response `200`

response

- object
  - `data` object, required
    - `accountId` string, required
    - `id` string, required
    - `instrument` string, required
    - `direction` 'LONG' | 'SHORT', required
    - `price` number, required
    - `quantity` number, required
    - `stopLoss` number: Stop Loss price
    - `takeProfit` number: Take profit price
    - `creationTime` number, required
    - `trailingStop` number: Trailing Stop distance value
    - `trailingStopValue` number: Trailing Stop price value
    - `guaranteedStopLoss` number
    - `swap` number: The swap size for a position in deposit currency.

---

[API](https://skmtc.dev/oanda/apis/up-gateway-v1.md) - [All operations](https://skmtc.dev/oanda/apis/up-gateway-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/oanda/apis/up-gateway-v1/revisions/395d645513bf?raw)
