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

OHLC Data

Get OHLC

GET /ohlc

Get OHLC (open/high/low/close, otherwise known as candle) data for a given market.

Query Parameters

Name
Value
Required

ticker_id

string: DEMONIZA/USDT

since

timestamp: 1708619280

interval

enum (minutes): 1, 5, 15, 30 60, 240, 1440, 10080 21600

Response

[
        {
            "time": 1709325573.9077,
            "open": "0.01869900",
            "high": "0.01869900",
            "low": "0.01869900",
            "close": "0.01869900",
            "vwap": "0.03739800",
            "volume": "1117.31843576",
            "count": 2
        },
        {
            "time": 1709325656.1582,
            "open": "0.01869900",
            "high": "0.01869900",
            "low": "0.01869900",
            "close": "0.01869900",
            "vwap": "0.03739800",
            "volume": "695.37154928",
            "count": 2
        },
        ...
]
{
    "success": false,
    "error": {
        "message": "The given data was invalid!",
        "validations": [
            "Pair attribute must be set"
        ],
        "code": 422
    }
}
PreviousTickersNextOrder Book

Last updated 1 month ago