LogoLogo
  • Getting Started
  • How to Connect
  • REST API
    • Order
    • PublicMarketData
    • Wallet
    • Trade
    • Models
  • Smart Contract ABI
    • OrderBook
    • Order Data (explanation)
  • Websocket API
    • Orderbook
    • Ticker
  • SDK Documentation
    • Getting Started
    • REST API Interaction
    • Smart Contract Interaction
      • Order Placement
      • Order Cancelation
Powered by GitBook

Privacy

  • Privacy Policy

All rights reserved. 21X AG

On this page
Export as PDF
  1. REST API

Trade

PreviousWalletNextModels

getWalletTrades

get

Fetches all completed trades involving the wallet, optionally restricted to one trading pair.

Authorizations
Path parameters
wallet_addressstringRequired
Query parameters
trading_pairstringOptional
cursorstringOptional

Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous response.

limitinteger ยท int64Optional

The maximum number of items to return.

countbooleanOptional

Returns the total number of items in the collection.

Responses
200
OK
application/json
default
Unexpected error
application/json
get
GET /api/v1/wallets/{wallet_address}/trades HTTP/1.1
Host: 
Authorization: YOUR_API_KEY
Accept: */*
{
  "items": [
    {
      "id": "text",
      "sequenceNo": 1,
      "transactionDate": "2025-06-01T03:13:11.014Z",
      "finalityDate": "2025-06-01T03:13:11.014Z",
      "transactionType": "BUY",
      "baseTokenSymbol": "text",
      "quoteTokenSymbol": "text",
      "baseTokenQuantity": "text",
      "quoteTokenQuantity": "text",
      "price": "text",
      "commission": "text",
      "orderId": "text",
      "transactionHash": "text"
    }
  ],
  "next_cursor": "text",
  "total_count": 1
}