Market data

Our platform provides endpoints for end users to get market data

Get market prices

Request: Get market data

import axios from 'axios';

const options = {
  method: 'GET',
  url: 'https:/api.aqua.test.krayondigital.com/main/api/v1//trades/market-price?ticker=ETH-USDC',
  headers: {
    accept: 'application/json',
    'content-type': 'application/json',
    'Bearer': 'API-TOKEN'
  },
};

axios
  .request(options)
  .then(function (response) {
    console.log(response.data);
  })
  .catch(function (error) {
    console.error(error);
  });
import requests

url = "https:/api.aqua.test.krayondigital.com/main/api/v1/trades/market-price?ticker=ETH-USDC"

headers = {
    "accept": "application/json",
    "content-type": "application/json"
 		"Bearer": "API-TOKEN"
}

response = requests.get(url, headers=headers)
print(response.text)

Response:

{
    "data": 
    {
     		"best_ask": 1549.037,
        "precisions": [
            1,
            2
        ],
        "symbol": "ETH-USDC",
        "data_type": "aggBBO",
        "spread": 0.3,
        "last_updated": 1678359393303,
        "best_bid": 1518.066
    }
}

Get minimum trading amounts

Request: Get minimum trading amounts

import axios from 'axios';

const options = {
  method: 'GET',
  url: 'https:/api.aqua.test.krayondigital.com/main/api/v1/trades/min-trade-amounts',
  headers: {
    accept: 'application/json',
    'content-type': 'application/json',
    'Bearer': 'API-TOKEN'
  },
};

axios
  .request(options)
  .then(function (response) {
    console.log(response.data);
  })
  .catch(function (error) {
    console.error(error);
  });
import requests

url = "https:/api.aqua.test.krayondigital.com/main/api/v1/trades/min-trade-amounts"

headers = {
    "accept": "application/json",
    "content-type": "application/json"
 		"Bearer": "API-TOKEN"
}

response = requests.get(url, headers=headers)
print(response.text)

Response:

{
    "data": {
        "BTC": "0.001",
        "ETH": "0.02",
        "XRP": "25",
        "LTC": "0.01",
        "EOS": "1",
        "BCH": "0.002",
        "XLM": "3",
        "LINK": "1.4",
        "AAVE": "0.12",
        "UNI": "2.2",
        "YFI": "0.0005",
        "COMP": "0.025",
        "BAT": "10",
        "BAL": "0.5",
        "CRV": "3",
        "SNX": "2",
        "DOT": "1",
        "REN": "32",
        "MKR": "0.017",
        "KNC": "15",
        "ZRX": "32",
        "FIL": "0.01",
        "UMA": "2",
        "WNXM": "0.5",
        "DOGE": "100",
        "MATIC": "0.0000001",
        "SUSHI": "4",
        "SOL": "0.02",
        "1INCH": "15",
        "MANA": "54",
        "FTM": "136",
        "ADA": "8",
        "DAI": "30",
        "ATOM": "0.01",
        "ALGO": "10",
        "XTZ": "1",
        "SHIB": "977616",
        "AXS": "0.5",
        "AVAX": "0.1",
        "LUNA": "0.5",
        "SAND": "6",
        "LRC": "20",
        "ENJ": "12",
        "GALA": "100",
        "GRT": "130",
        "CELO": "20",
        "AMP": "2056",
        "CHZ": "264",
        "OMG": "11",
        "APE": "50",
        "USDT": "100",
        "USDC": "100"
    }
}

Get trading pairs

Request: Get trading pairs

import axios from 'axios';

const options = {
  method: 'GET',
  url: 'https:/api.aqua.test.krayondigital.com/main/api/v1/trades/traiding-pairs',
  headers: {
    accept: 'application/json',
    'content-type': 'application/json',
    'Bearer': 'API-TOKEN'
  },
};

axios
  .request(options)
  .then(function (response) {
    console.log(response.data);
  })
  .catch(function (error) {
    console.error(error);
  });
import requests

url = "https:/api.aqua.test.krayondigital.com/main/api/v1/trades/traiding-pairs"

headers = {
    "accept": "application/json",
    "content-type": "application/json"
 		"Bearer": "API-TOKEN"
}

response = requests.get(url, headers=headers)
print(response.text)

Response:

{
    "data": [
        "LUNC-USDC",
        "DOGE-USDC",
        "DAI-USDC",
        "SUSHI-USDC",
        "FIL-USDC",
        "COTI-USDC",
        "CELO-USDC",
        "UMA-USDC",
        "BNT-USDC",
        "AAVE-USDC",
        "EOS-USDC",
        "REN-USDC",
        "SKL-USDC",
        "USDCC-USDC",
        "1INCH-USDC",
        "CHZ-USDC",
        "AVAX-USDC",
        "ALGO-USDC",
        "STX-USDC",
        "XRP-USDC",
        "CTSI-USDC",
        "MATIC-USDC",
        "COMP-USDC",
        "QNT-USDC",
        "AMP-USDC",
        "SNX-USDC",
        "SHIB-USDC",
        "BAT-USDC",
        "ZRX-USDC",
        "ENS-USDC",
        "BAND-USDC",
        "BCH-USDC",
        "OMG-USDC",
        "CRV-USDC",
        "FTM-USDC",
        "OP-USDC",
        "TRX-USDC",
        "DOT-USDC",
        "ETH-USDC",
        "SAND-USDC",
        "PAXG-USDC",
        "GALA-USDC",
        "UNI-USDC",
        "XTZ-USDC",
        "LINK-USDC",
        "ANKR-USDC",
        "CHR-USDC",
        "SOL-USDC",
        "DYDX-USDC",
        "HBAR-USDC",
        "LRC-USDC",
        "ATOM-USDC",
        "LTC-USDC",
        "GRT-USDC",
        "NEAR-USDC",
        "MKR-USDC",
        "ADA-USDC",
        "AXS-USDC",
        "BAL-USDC",
        "XLM-USDC",
        "KNC-USDC",
        "APE-USDC",
        "ENJ-USDC",
        "YFI-USDC",
        "STORJ-USDC",
        "MANA-USDC"
    ]
}