---
title: "Export trades"
method: GET
path: "/api-regulated/v1/trades/export"
tags: ["TradeExport"]
---

# Export trades

`GET /api-regulated/v1/trades/export`

## Request

- Base URL: `https://api.currencyguard.com`
- URL: `https://api.currencyguard.com/api-regulated/v1/trades/export`
- Auth: HTTP bearer

Downloads Guards and Guard Settlements scoped to the authenticated regulated entity. FX options (CGL's back-to-back bank hedges) and cash trades are excluded. Internal economics (guard margin etc.) are redacted via the regulated DTO variant. Entities are exported by UUID. Supports CSV (default) and Parquet output formats.

## Query parameters

- `guardId` string
- `currencyPair` string
- `entityType` string
- `fromDate` string, date-time
- `toDate` string, date-time
- `format` string

## Response `200`

File download

## Other responses

- `401`: Not authenticated — [`security/authentication-failed`](/problems/security/authentication-failed/)
- `403`: Not authorized — [`security/insufficient-permissions`](/problems/security/insufficient-permissions/)
- `404`: Guard not found (when guardId specified) — [`http/resource-not-found`](/problems/http/resource-not-found/)
- `500`: Server error — [`server/internal-error`](/problems/server/internal-error/)

---

[API](https://skmtc.dev/currencyguard/apis/currencyguard-trading-system-api-external.md) · [All operations](https://skmtc.dev/currencyguard/apis/currencyguard-trading-system-api-external/llms.txt) · [OpenAPI document](https://skmtc.dev/currencyguard/apis/currencyguard-trading-system-api-external/revisions/a1f3f854190d?raw)
