---
title: "A wallet’s swaps from our own indexed trades (legacy and new contract), newest first, in the get_wallet_txs row shape the My Swaps history parses"
method: GET
path: "/market/wallet-swaps"
tags: ["market"]
---

# A wallet’s swaps from our own indexed trades (legacy and new contract), newest first, in the get_wallet_txs row shape the My Swaps history parses

`GET /market/wallet-swaps`

## Request

- Base URL: `https://swap-backend.stage.defi.ovh.gala.com`
- URL: `https://swap-backend.stage.defi.ovh.gala.com/market/wallet-swaps`
- Auth: none declared
- TypeScript: <https://skmtc.dev/gala/apis/gala-defi-backend-api/docs/market/wallet-swaps/get.ts> (a function with typed inputs; its response is checked against the schema)

A wallet’s swaps from our own indexed trades (legacy and new contract), newest first, in the get_wallet_txs row shape the My Swaps history parses

## Query parameters

- `size` unknown
- `page` unknown
- `address` unknown, required

## Response `200`

- MarketWalletSwapResponseDto[]
  - `block_number` number, required
  - `tx_number` string, required
  - `created_at` string, date-time, required
  - `creator` string, required
  - `sender` string, required
  - `recipient` string, required
  - `tx_type` 'GalaChainDex:Trade' | 'DexV3Contract:Swap', required
  - `tx_subtype` 'Swap', required
  - `quantity` number, required
  - `tx_validation_code` '0', required
  - `tx_validation_enum` 'VALID', required
  - `usd_volume` number, required
  - `swap_token_0_amt` number, required
  - `swap_token_1_amt` number, required
  - `swap_token_0_name` string, nullable, required
  - `swap_token_1_name` string, nullable, required
  - `swap_token_0_image` string, nullable, required
  - `swap_token_1_image` string, nullable, required
  - `swap_token_0_asset_id` string, nullable, required
  - `swap_token_1_asset_id` string, nullable, required
  - `unique_key` string, required
  - `pool_hash` string, required

## Other responses

- `400`
- `default`: An error response using the shared backend error envelope.

---

[API](https://skmtc.dev/gala/apis/gala-defi-backend-api.md) - [All operations](https://skmtc.dev/gala/apis/gala-defi-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gala/apis/gala-defi-backend-api/revisions/84f8184e2828?raw)
