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. PUBLIC ENDPOINTS

Historical Trades

Get historical trades

GET /historical_trades

Returns trades for the given ticker

Query Parameters

Name
Value
Required

ticker_id

string: DEMONIZA/USDT

type

string: buy/sell

limit

integer: 10

start_time

timestamp: 1709150766

Response

{
 "buy": [  
   {        
      "trade_id":1234567,
      "price":"0.009",
      "base_volume":"10000",
      "target_volume":"90",
      "trade_timestamp":"1700050000",
      "type":"buy"
   },
   ...
],
"sell": [
      {        
         "trade_id":1234567,
         "price":"0.009",
         "base_volume":"10000",
         "target_volume":"90",
         "trade_timestamp":"1700050000",
         "type":"sell"
      }
   ]
}

{
    "success": false,
    "error": {
        "message": "The given data was invalid!",
        "validations": [
            "Pair attribute must be set"
        ],
        "code": 422
    }
}
PreviousOrder BookNextBalances

Last updated 1 month ago