-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exchange collection functionality no longer works with coinmarketcap.com #5
Comments
Hello, I have same problem :( Can you provide solution? |
Tried with "https://api.coinpaprika.com/v1/tickers/etc-ethereum-classic" but have error: &{GET https://api.coinpaprika.com/v1/tickers/etc-ethereum-classic HTTP/1.1 1 1 map[Accept:[application/json] Content-Type:[application/json]] 0 [] false api.coinpaprika.com map[] map[] map[] } |
exchange/exchange.go:
storage/redis.go:
Then in your API config:
In your ember templates use:
Or similar if you don't have the format-currency npm. |
Many thanks for sharing that! But unfortunately the data doesn't even appear to me. 2020/09/18 15:46:51 &{GET https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&ids=ethereum-classic HTTP/1.1 1 1 map[Accept:[application/json] Content-Type:[application/json]] 0 [] false api.coingecko.com map[] map[] map[] } |
My ember themplate: {{format-number stats.model.exchangedata.current_price style='currency' currency='USD'}} |
Go into redis. Then do a "hgetall eth:exchange:eth" you should get all the data. Look for:
And other data you will want to use in your site. Then look at your stats. http:///api/stats You should see exchange data: "exchangedata":{"ath":"1448.18","ath_change_percentage":"-73.67712","ath_date":"2018-01-13T00:00:00.000Z","atl":"0.432979","atl_change_percentage":"87941.91954","atl_date":"2015-10-20T00:00:00.000Z","circulating_supply":"1.126549315615e+08","current_price":"382.65","fully_diluted_valuation":"\u003cnil\u003e","high_24h":"393.8","id":"ethereum","image":"https://assets.coingecko.com/coins/images/279/large/ethereum.png?1595348880","last_updated":"2020-09-18T16:34:56.855Z","low_24h":"379.34","market_cap":"4.3085909665e+10","market_cap_change_24h":"3.61962255e+08","market_cap_change_percentage_24h":"0.84721","market_cap_rank":"2","max_supply":"\u003cnil\u003e","name":"Ethereum","price_change_24h":"2.86","price_change_percentage_24h":"0.75216","roi":"map[currency:btc percentage:4604.829918446882 times:46.048299184468824]","symbol":"eth","total_supply":"\u003cnil\u003e","total_volume":"1.3522348787e+10" |
When I do http:///api/stats, result: {"candidatesTotal":0,"exchangedata":{},"hashrate":5054383666,"immatureTotal":8,"maturedTotal":0,"minersTotal":4,"nodes":[{"difficulty":"21845604165879","height":"11229137","lastBeat":"1600448453","name":"main"}],"now":1600448455000,"stats":{"currentRoundShares":12499,"lastBlockFound":1600438538,"lastNValue":11888,"nShares":11888,"roundShares":11888}} //is there any way to PM you privately, after that will provide solution here |
I sent you a friend request a few days ago. I wrote to you, but you do not answer. eradev#8004 |
Additionally you need to have lowercase coin-name in your api config file. This name must match the coin in the "symbol" variable as listed above. |
Requires a API key now and JSON format is now strings and ints.
The text was updated successfully, but these errors were encountered: