API Documentation

Get Ticker

This endpoint retrieves all spot market.


HTTP Request

Get https://api.uniticexchange.com/api/v1/trade/ticker

JS:

const data = async () => {
    const response = await fetch('https://api.uniticexchange.com/api/v1/trade/ticker');
    const output = await response.json(); //extract JSON from the http response
    }

JSON Response:

{
      "status": true,
      "Message": [
        {
           "pair": "AEVO_USDT",
          "marketPrice": 0.38457304,
          "changePercentage": 0,
          "lastVolume": 0,
          "decimalValue": 8,
          "amountDecimal": 8,
          "priceDecimal": 8,
          "minTrade": 6,
          "price": 0.40180509,
          "lastPrice": 0.40170491,
          "usdPrice": 0,
          "change": 5.337448516322041,
          "changeValue": 0.020318856457049117,
          "volume": 19882720.649589,
          "volume_fromCur": 49582389.51312455,
          "high": 0.4193358490566038,
          "low": 0.37806342435251383,
          "bidPrice": 0.40170491,
          "bidQty": "2680.57000000",
          "askPrice": 0.40180509,
          "askQty": "345.10000000",
          "type": 1
        },
          {// rest others....  }
    ]}

Ticker 24hr

This endpoint retrieves all spot market.


HTTP Request

Get https://api.uniticexchange.com/api/v1/trade/ticker/24hr

JS:

const data = async () => {
    const response = await fetch('https://api.uniticexchange.com/api/v1/trade/ticker/24hr');
    const output = await response.json(); //extract JSON from the http response
    }

JSON Response:

{
  "message": [
    {
      "market": "BTCINR",
      "change_24_hour": "-0.184",
      "high": "5988899.0",
      "low": "5798000.0",
      "volume": "9406716.393830987",
      "last_price": "5881436.08",
      "bid": "5819044.4400000000",
      "ask": "5881436.0800000000",
      "timestamp": 1729498225
    },
          {// rest others....  }]}

Get Order Book Data

This endpoint retrieves a specific pair data with orderbook.


HTTP Request

Post https://api.uniticexchange.com/api/v1/trade/checkPair

JS:

const data = async () => {
const response = await fetch('https://api.uniticexchange.com/api/v1/trade/checkPair',{
    headers: {
      'Accept': 'application/json',
      'Content-Type': 'application/json'
    },
    method: "POST",
    body: JSON.stringify({pair: "TRX_INR"})
});
const output = await response.json(); //extract JSON from the http response
}

JSON Response:

{
    "status": true,
    "Message": {
        "marketPrice": 8.54,
        "changePercentage": 0,
        "marketStatus": 1,
        "enableBuySell": 1,
        "enableTradeHistory": 1,
        "enableVolumeStatus": 1,
        "lastVolume": 0,
        "decimalValue": 8,
        "amountDecimal": 4,
        "priceDecimal": 2,
        "status": 1,
        "minTrade": 100,
        "price": 9.09,
        "lastPrice": 8.96,
        "usdPrice": 0,
        "change": 0.11012113324656615,
        "changeValue": 0.009921999999999542,
        "volume": 432518.89124212024,
        "volume_fromCur": 47951.09659003551,
        "high": 9.16,
        "low": 8.94,
        "makerFee": 0.4,
        "takerFee": 0.4,
        "makerFeeWithKYC": 0.4,
        "takerFeeWithKYC": 0.4,
        "orderDataMin": 0.01,
        "orderDataMax": 0.03,
        "ohlcUpdated": 0,
        "autoOrderExecute": 1,
        "getOldPrice": 0,
        "autoTradeOrder": 1,
        "exchangeType": "SPOT",
        "_id": "6411b1d923bcfcea568c0870",
        "pair": "TRX_INR",
        "created": "2023-03-15T11:54:01.919Z",
        "__v": 0,
        "fromCurrency": {
            "_id": "64101bc4c406fcdd920476dc",
            "currencyId": "64101bc4c406fcdd920476da",
            "currencyName": "Tron",
            "currencySymbol": "TRX",
            "curnType": "Crypto",
            "USDvalue": 0.103494,
            "image": "https://assets.coingecko.com/coins/images/1094/small/tron-logo.png",
            "decimal": 6,
            "siteDecimal": 4
        },
        "toCurrency": {
            "_id": "640f6cb9a85aacd35e842705",
            "currencyId": "640f6cb9a85aacd35e842703",
            "currencyName": "Indian Rupee",
            "currencySymbol": "INR",
            "curnType": "Fiat",
            "USDvalue": 0.011518083390923752,
            "image": "https://res.cloudinary.com/dkqixjgxa/image/upload/v1678950708/Images/j9vohulgvuh4germpmvn.jpg",
            "decimal": 2,
            "siteDecimal": 2
        },
        "buyOrders": [
            {
                "_id": 8.96,
                "amount": 4617.51,
                "filledAmount": 0,
                "status": 0
            },
            {
              // rest others....  
            }
        ],
        "tradeHistory": [
            {
                "price": 8.96,
                "open": 8.96,
                "high": 8.96,
                "low": 8.96,
                "close": 8.96,
                "volume": 67.05,
                "total": 600.768,
                "type": "sell",
                "chartType": "Wazirx",
                "_id": "656ffe0496ab2aa414b4d3c8",
                "pair": "6411b1d923bcfcea568c0870",
                "pairName": "TRX_INR",
                "time": "2023-12-06T04:52:20.538Z",
                "__v": 0
            },
            {// rest others...}
        ],
        "type": 1
    }
}

Get Markets Data

This endpoint retrieves all market data.


HTTP Request

Get https://api.uniticexchange.com/api/v1/trade/getMarkets

JS:

const data = async () => {
const response = await fetch('https://api.uniticexchange.com/api/v1/trade/getMarkets');
const output = await response.json(); //extract JSON from the http response
}

JSON Response:

{
            "status": true,
            "data": [
                {
                    "decimalValue": 8,
                    "minTrade": 100,
                    "price": 8.97,
                    "lastPrice": 8.97,
                    "change": -0.44104616548689274,
                    "volume": 482592.29874008027,
                    "high": 9.16,
                    "low": 8.94,
                    "makerFee": 0.4,
                    "takerFee": 0.4,
                    "makerFeeWithKYC": 0.4,
                    "takerFeeWithKYC": 0.4,
                    "_id": "6411b1d923bcfcea568c0870",
                    "fromCurrency": {
                        "image": "https://assets.coingecko.com/coins/images/1094/small/tron-logo.png",
                        "siteDecimal": 4,
                        "_id": "64101bc4c406fcdd920476dc",
                        "currencySymbol": "TRX",
                        "currencyId": "64101bc4c406fcdd920476da"
                    },
                    "toCurrency": {
                        "image": "https://res.cloudinary.com/dkqixjgxa/image/upload/v1678950708/Images/j9vohulgvuh4germpmvn.jpg",
                        "siteDecimal": 2,
                        "_id": "640f6cb9a85aacd35e842705",
                        "currencySymbol": "INR",
                        "currencyId": "640f6cb9a85aacd35e842703"
                    },
                    "pair": "TRX_INR"
                },
                {// rest others...}
            ]
        }

Get History Chart

This endpoint retrieves chart history data.


HTTP Request

Get https://api.uniticexchange.com/api/v1/trade/historyChart

JS:

const data = async () => {
const response = await fetch('https://api.uniticexchange.com/api/v1/trade/historyChart');
const output = await response.json(); //extract JSON from the http response
}

JSON Response:

{
    "status": true,
    "data": []
}

Get Trade Chart

This endpoint retrieves trade chart data.


HTTP Request

Get https://api.uniticexchange.com/api/v1/trade/tradeChart

JS:

const data = async () => {
const response = await fetch('https://api.uniticexchange.com/api/v1/trade/tradeChart');
const output = await response.json(); //extract JSON from the http response
}

JSON Response:

{
    "data": []
}

Get Market Data

This endpoint retrieves trade market data.


HTTP Request

Post https://api.uniticexchange.com/api/v1/trade/market/data

JS:

const data = async () => {
const response = await fetch('https://api.uniticexchange.com/api/v1/trade/market/data',{
                headers: {
                  'Accept': 'application/json',
                  'Content-Type': 'application/json'
                },
                method: "POST",
                body: JSON.stringify({pair: "TRX_INR"})
            });
const output = await response.json(); //extract JSON from the http response
}

JSON Response:

{
    "status": true,
    "data": {
        "marketPrice": 9.08
    }
}

Get Market candles

This endpoint retrieves market data with candles.


HTTP Request

Post https://api.uniticexchange.com/api/v1/trade/market_data/candles

JS:

const data = async () => {
const response = await fetch('https://api.uniticexchange.com/api/v1/trade/market_data/candles',{
                        headers: {
                          'Accept': 'application/json',
                          'Content-Type': 'application/json'
                        },
                        method: "POST",
                        body: JSON.stringify({
                            pair: "I-TRX_INR", 
                            interval: "1d", 
                            startTime: 1666483200000, 
                            endTime: 1674086400000
                        })
                    });
const output = await response.json(); //extract JSON from the http response
        }

JSON Response:

[
            {
                "time": 1674086400000,
                "close": 5.13,
                "open": 5.11,
                "high": 5.24,
                "low": 4.99,
                "volume": 38355.878978,
                "dateTime": "2023-01-19T00:00:00.000Z"
            },
            {// rest others}
        ]

Get Crypto Price

This endpoint retrieves a specific crypto price.


HTTP Request

Post https://api.uniticexchange.com/api/v1/buycrypto/buycryptoprice

JS:

const data = async () => {
const response = await fetch('https://api.uniticexchange.com/api/v1/buycrypto/buycryptoprice',{
                headers: {
                  'Accept': 'application/json',
                  'Content-Type': 'application/json'
                },
                method: "POST",
                body: JSON.stringify({symbol: "tron"})
            });
const output = await response.json(); //extract JSON from the http response
}

JSON Response:

{
    "status": true,
    "message": 8.6
}