filters: {
period: function (time, close_time) {
return Math.ceil(Math.abs((new Date(close_time * 1000)).getTime() - (new Date(time * 1000)).getTime()) / (1000 * 3600 * 24));
},
price: function (pair) {
axios.get('https://site.ru/api/binance.php?api=ticket&symbol=' + pair).then(response => {
return response.data.price;
})
}
}