Niza Global - API Docs
  • Introduction
  • General
  • Authentication
  • PUBLIC ENDPOINTS
    • Markets
    • Tickers
    • OHLC Data
    • Order Book
    • Historical Trades
  • AUTHENTICATED ENDPOINTS
    • Balances
      • (Deprecated) Trade Wallet
      • Spot Wallet
    • Orders
      • Create Order
      • Cancel Order
      • Open Orders
      • Closed Orders
      • Get Order
    • Trades
      • Trades History
      • Get Trade
  • Websocket API 1.0
    • Overview
    • Connection Details
    • WebSocket Authentication
    • Public Channels
      • Ticker Information
      • OHLC
      • Recent Trades
      • Orderbook
    • Private Channels
      • Order Executed
      • Trade Executed
Powered by GitBook
On this page
  1. AUTHENTICATED ENDPOINTS
  2. Trades

Trades History

Get user trades history

GET /trades

Get a list of user trades with pagination

Headers

Name
Value

X-API-Key

API Key

X-API-Sign

Generated Signature

Query Params

Name
Type
Required
Description

pairs[]

array

Multiple pairs to filter

page-size

number

Items per page, if not set no pagination is applied

page

number

The page number to get

Response

{
    "success": true,
    "message": "Request processed successfully",
    "data": [
        {
            "id": 653,
            "timestamp": "2024-03-23 21:42:16",
            "type": "buy",
            "order_id": 414,
            "order_type": "limit",
            "pair_id": 679,
            "pair": "NIZA/EUR",
            "volume": {
                "amount": "54.10027025",
                "currency": "NIZA"
            },
            "price": {
                "amount": "0.01450000",
                "currency": "NIZA/EUR"
            },
            "cost": {
                "amount": "0.78445392",
                "currency": "EUR"
            },
            "fee": {
                "amount": "0.78445392",
                "currency": "NIZA"
            },
            "transaction_id": "TTXR7L-IC8HD-BFND2K",
            "leverage": null
        },
        {
            "id": 651,
            "timestamp": "2024-03-23 21:40:15",
            "type": "buy",
            "order_id": 414,
            "order_type": "limit",
            "pair_id": 679,
            "pair": "NIZA/EUR",
            "volume": {
                "amount": "50.00000000",
                "currency": "NIZA"
            },
            "price": {
                "amount": "0.01450000",
                "currency": "NIZA/EUR"
            },
            "cost": {
                "amount": "0.72500000",
                "currency": "EUR"
            },
            "fee": {
                "amount": "0.72500000",
                "currency": "NIZA"
            },
            "transaction_id": "TMWHLR-WNUTL-NZIL3B",
            "leverage": null
        }
    ],
    "code": 200,
    "meta": {
        "current_page": 2,
        "from": 3,
        "to": 4,
        "path": "https://app.niza.io/trade/v1/trades",
        "per_page": 2,
        "total": 253,
        "last_page": 127
    }
}
{
  "error": "Invalid request"
}
PreviousTradesNextGet Trade

Last updated 1 year ago