Multiply and divide using external api

I need a command that takes this api https://blockchain.info/q/24hrprice, divide that number into 1000 and multiply it by the number of the command

example:

!calculate 20 —>> (https://blockchain.info/q/24hrprice)/1000*20
then show the result

Try:

$(eval $(urlfetch https://blockchain.info/q/24hrprice)/1000*20)

This should do all the math :slight_smile:

nono, 20 is the random number that people define when launching the command

!calculate “x” (https://blockchain.info/q/24hrprice)/1000*“x”
Sorry my bad english

1 Like

i solved it

$(urlfetch http://twitch.center/customapi/math?expr=$(querystring)/1000*$(urlfetch https://blockchain.info/q/24hrprice))

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.