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

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

`GET /v2/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/v2/user/accounts/{server}/{accountId}/portfolio/trades/{tradeId}`
- Auth: HTTP bearer

> **Deprecated.**

## 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
  - `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)
