You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
264 B
11 lines
264 B
import axios from 'axios'
|
|
|
|
export default function requestTicker() {
|
|
const BASE_URL = 'https://api.coinmarketcap.com/v1/ticker/bitcoin/'
|
|
return axios({
|
|
method: 'get',
|
|
url: BASE_URL
|
|
})
|
|
.then(response => response.data)
|
|
.catch(error => error)
|
|
}
|
|
|