Hi there I'm using a api which returns as follows
{"secret-finance":{"usd":0.04883396}}
Problem is I'm using vue and retrieving data like this
async getCurrentSefiPrice() {
await axios
.get(
"https://api.coingecko.com/api/v3/simple/price?ids=secret-finance&vs_currencies=usd"
)
.then(
(response) =>
(this.sefi_token_current_price = response.secret-finance.usd)
// console.log(response)
);
console.log(this.sefi_token_current_price);
}
But when I use secret-finance to get usd value I get an error.
Thanks in advance.