Paying $20 to show me how to get Eth price from an API
api.coinmarketcap.com
This returns on BTC price, but want to get the ETH price
Paying $20 to show me how to get Eth price from an API
api.coinmarketcap.com
This returns on BTC price, but want to get the ETH price
[
{
"id": "0x",
"name": "0x",
"symbol": "ZRX",
"rank": "43",
"price_usd": "1.98171",
"price_eth": "0.0001423",
"24h_volume_usd": "29636800.0",
"market_cap_usd": "974546402.0",
"available_supply": "491770442.0",
"total_supply": "1000000000.0",
"max_supply": null,
"percent_change_1h": "2.62",
"percent_change_24h": "-3.23",
"percent_change_7d": "75.35",
"last_updated": "1515771553"
}
]
PPPPRRRRRRRRRRRRRRRRT
do your own CS homework Rajesh
use a request library with this url : min-api.cryptocompare.com
my eth address: 0x2cc62bfb5315a48e9b3e6d9714a882bd5298e298
get the price of it in BTC and then just derive its ETH equivalent by doing simple arithmetic.
>api.coinmarketcap.com
The api link doesn't return price_eth. How do I modify the ticker to give me price_eth?
look at this
you dont coinmarketcap api doesnt support that, its very simple and wont even give you historical data or shit like that
send ETH to: 0xfbb8bcdf3ab8e58b506018c207ec5175623fea41
thanks
yep, look at their own website, they dont display its eth value. As i said earlier, just derive it using basic arithmetic.
api.coinmarketcap.com
provide convert=ETH in the parameters
My eth address: 0x2cc62bfb5315a48e9b3e6d9714a882bd5298e298
Want my script?
It's in python3
in the command line you can type
mcap eth
you will get the coinmarketcap data.
Let me know if youre interested and I'll post code for you
you're not gonna make it op
happy to give more life advice:
0xd5e425f0e5072d6759f2c0e7ffbbd3f73b1b1991
WHY DID I ONLY SEE FIAT AS ACEEPTED PARAMS IN DOCUMENTATION!?!?!?!
...
gotta think 5 dimensionally brudda
Yes please thanks!!
Who?
BRAAAAAAAAAPPPPFFFTT
Literally just jq it from the json file. You're not going to make it Pajeet