Answer the question
In order to leave comments, you need to log in
How to return information received via GET?
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;
})
}
}
Answer the question
In order to leave comments, you need to log in
And where is the check for the presence of the answer as a whole?
What does the api return for this get request?
'Network' in the browser, and select a query, look at its 'preview'.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question