var axios = require('axios')
var data = JSON.stringify({ pair: 'ADA/LCX' })
var config = {
method: 'post',
url: 'https://exchange-api.lcx.com/order/book',
headers: {
'Content-Type': 'application/json',
},
data: data,
}
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data))
})
.catch(function (error) {
console.log(error)
})
i want to insert this code into html table. when i run i on cmd is get result, i have to copy file alwys on my desktop, or i cant send the result into html whitout copy of json file?