API

Restful API



  {
    "VES": {
      "price": 220300722.27,
      "avg24h": 219290538.4,
      "avg": 221278112.61,
      "buy": 218513740.68,
      "sell": 219138065.65,
      "volume_btc": 100.36988123,
      "changes": {
        "pct_24h": 2.55,
        "var_24h": 5479230
      }
    },
    "BTC": {
      "price": 10224.88,
      "avg24h": 10293.37,
      "changes": {
        "pct_1h": 0.23,
        "pct_24h": -0.94,
        "pct_7d": -1.62,
        "pct": -0.37
      }
    },
    "USD": {
      "rate": 21545.555769,
      "avg24h": 21304.056728,
      "EUR": 0.905637,
      "COP": 3373.21,
      "CLP": 715.3,
      "DOP": 51.4,
      "UYU": 36.483208,
      "BRL": 4.114126,
      "PEN": 3.349856,
      "ARS": 56.115574,
      "MXN": 19.521909,
      "GBP": 0.809497,
      "RUB": 65.4417,
      "CNY": 7.1125,
      "JPY": 107.28195,
      "CAD": 1.315234,
      "AUD": 1.457624,
      "SGD": 1.37989,
      "CHF": 0.98937,
      "SEK": 9.710003,
      "KRW": 1192.45,
      "INR": 71.877779,
      "NOK": 8.961581,
      "TTD": 6.777107,
      "PYG": 6299.839856,
      "TRY": 5.783891,
      "GTQ": 7.702502,
      "CRC": 578.140724,
      "ILS": 3.545373,
      "XAU": 0.00066845,
      "XAG": 0.05527205,
      "XPT": 0.00106784,
      "changes": {
        "pct_24h": 2.93,
        "var_24h": 613.66
      }
    },
    "rates": {
      "EUR": 23790.498587,
      "COP": 6.387256,
      "CLP": 30.121006,
      "DOP": 419.174237,
      "UYU": 590.56089,
      "BRL": 5236.970323,
      "PEN": 6431.785656,
      "ARS": 383.949664,
      "MXN": 1103.660291,
      "GBP": 26615.979761,
      "RUB": 329.232825,
      "CNY": 3029.252129,
      "JPY": 200.831135,
      "CAD": 16381.538014,
      "AUD": 14781.285001,
      "SGD": 15613.966163,
      "CHF": 21777.045765,
      "SEK": 2218.903101,
      "KRW": 18.06831,
      "INR": 299.752664,
      "NOK": 2404.213695,
      "TTD": 3179.167124,
      "PYG": 3.420016,
      "TRY": 3725.097131,
      "GTQ": 2797.215213,
      "CRC": 37.266975,
      "ILS": 6077.0914,
      "XAU": 32232112.751694,
      "XAG": 389809.239369,
      "XPT": 20176764.092813
    },
    "timestamp": 1568133001917
  }
var request = require('request');
var URL = 'https://api.yadio.io/json';
request(URL, function (err, res, body) {
    var data = JSON.parse(body);
    console.log(data);
});


{
  "rate":19343.508351,
  "avg24h":19219.631308,
  "timestamp":1570025702625
}
              
var request = require('request');
var URL = 'https://api.yadio.io/rate/USD';
request(URL, function (err, res, body) {
    var data = JSON.parse(body);
    console.log(data);
});


{
    "0": {
        "date": "10/1/2019",
        "avg24h": 159935434.85,
        "volume": 117.94919173,
        "usdbtc": 8368.49
    },
    "1": {
        "date": "9/30/2019",
        "avg24h": 159619306.47,
        "volume": 94.10247575,
        "usdbtc": 8079.75
    },
    "2": {
        "date": "9/29/2019",
        "avg24h": 160976143.2,
        "volume": 30.26984986,
        "usdbtc": 8094.41
    },
    "3": {
        "date": "9/28/2019",
        "avg24h": 163679164.92,
        "volume": 53.02945879,
        "usdbtc": 8175.87
    },
    "4": {
        "date": "9/27/2019",
        "avg24h": 161799407.87,
        "volume": 89.56860552,
        "usdbtc": 8045.67
    },
    "5": {
        "date": "9/26/2019",
        "avg24h": 168047195.76,
        "volume": 71.73318567,
        "usdbtc": 8278.25
    },
    "6": {
        "date": "9/25/2019",
        "avg24h": 179762735.49,
        "volume": 80.97611102,
        "usdbtc": 8472.56
    }
}
          
var request = require('request');
var URL = 'https://api.yadio.io/hist/7';
request(URL, function (err, res, body) {
var data = JSON.parse(body);
console.log(data);
});


{
  "usd": 20699.809454,
  "avg24h": 20696.674193,
  "btc": 211524314.88,
  "btcusd": 10218.66,
  "eur": 23221.658327,
  "timestamp": 1568130429279
}
          
var request = require('request');
var URL = 'https://api.yadio.io/rates';
request(URL, function (err, res, body) {
var data = JSON.parse(body);
console.log(data);
});