API

Introduction

ATNirex provides a complete RESTful API for developers which allows full access to all the functionalities on the exchange. ATNirex also support websocket for real-time updates.

These endpoints are categorized into public and private. Public endpoints allow you to access public information such as price ticker, orderbook etc while private endpoints require authentication and allow you to get your balance, active orders as well as placing orders.

Health

This endpoint retrieves the exchange’s basic information and checks its health.

HTTP Request

GET https://exchange.atnirex.com/api/v2/health

Constants

This endpoint retrieves system information for coins and pairs.

HTTP Request

GET https://exchange.atnirex.com/api/v2/constants

Ticker

This endpoint retrieves ticker information for a pair.

HTTP Request

GET https://exchange.atnirex.com/api/v2/ticker?symbol=${symbol}

PARAMETERS

Parameter     Type         Required/Optional             Description
  symbol      string              Required     The currency pair symbol (xht-usdt)

Tickers

This endpoint retrieves ticker information for all pairs.

HTTP Request

GET https://exchange.atnirex.com/api/v2/tickers

Orderbook

This endpoint retrieves 10 level bids and 10 level asks of the orderbook for a symbol.

HTTP Request

GET https://exchange.atnirex.com/api/v2/orderbook?symbol=${symbol}

 

PARAMETERS

Parameter    Type    Required/Optional            Description
symbol    string        Required        The currency pair symbol (xht-usdt, etc.)

 

Orderbooks

This endpoint retrieves 10 level bids and 10 level asks of the orderbook for all symbols.

HTTP Request

GET https://exchange.atnirex.com/api/v2/orderbooks

Trades

This endpoint retrieves the last 30 trades.

HTTP Request

GET https://exchange.atnirex.com/api/v2/trades

 

PARAMETERS

Parameter   Type     Required/Optional       Description
symbol  string           Optional       The currency pair symbol (xht-usdt, etc.)