 This release implements support for the second version of Coinmarketcap API with minimal changes to API structure. All CMC API endpoints are called using fetch_#{endpoint} functions and return success tuple with `%CoinmarketcapApi.Response{}` containing :data and :metadata. # Configuration Configuration is not required. # Links * [Github](https://github.com/cyberpunk-ventures/coinmarketcap_api_ex) * [Hex.pm](https://hex.pm/packages/coinmarketcap_api) * [Hexdocs](https://hexdocs.pm/coinmarketcap_api/api-reference.html) # Documentation More docs and example return values can be found at [hexdocs](https://hexdocs.pm/coinmarketcap_api/2.0.0/CoinmarketcapApi.html). # Tickers All ticker related functions return either a Ticker struct or a list of Ticker structs. Examples: * CoinmarketcapApi.fetch_ticker() * CoinmarketcapApi.fetch_ticker([start: 100, limit: 50]) * CoinmarketcapApi.fetch_ticker([start: 100, limit: 50, convert: "EUR"]) * CoinmarketcapApi.fetch_ticker(1) * CoinmarketcapApi.fetch_ticker(1, convert: "EUR") Ticker structs have the following shape: ``` %CoinmarketcapApi.Ticker{ circulating_supply: 17035225, id: 1, last_updated: ~N[2018-05-15 17:44:33], max_supply: 21000000, name: "Bitcoin", quotes: %{ "USD" => %CoinmarketcapApi.Quote{ market_cap: 145773657018.0, percent_change_1h: -0.26, percent_change_24h: -2.54, percent_change_7d: -7.03, price: 8557.19, volume_24h: 6.69447e9 } }, rank: 1, symbol: "BTC", total_supply: 17035225, website_slug: "bitcoin" } ``` Ticker values are parsed to the most fitting Elixir datatypes: * id -> Integer * last_updated -> NaiveDateTime * {total,circulating,max}_supply -> Integer # Listings `fetch_listings` function returns all active cryptocurrency listings. You can then use `fetch_ticker(id)` to query more information for a specific cryptocurrency. # Global Data `fetch_global_data` returns the global data found at the top of coinmarketcap.
author | ontofractal |
---|---|
permlink | coinmarketcapapiex-v2-0-0-released-open-source-elixir-erlang-client-for-coinmarketcap-com |
category | utopian-io |
json_metadata | {"community":"busy","app":"steemit/0.1","format":"markdown","links":["https://github.com/cyberpunk-ventures/coinmarketcap_api_ex","https://hex.pm/packages/coinmarketcap_api","https://hexdocs.pm/coinmarketcap_api/api-reference.html","https://hexdocs.pm/coinmarketcap_api/2.0.0/CoinmarketcapApi.html"],"tags":["utopian-io","development","busy","opensource","elixir"],"image":["http://i.imgur.com/QVcT8MY.png"]} |
created | 2018-05-15 18:33:12 |
last_update | 2018-05-16 00:14:18 |
depth | 0 |
children | 4 |
last_payout | 2018-05-22 18:33:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 114.511 HBD |
curator_payout_value | 30.919 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 2,031 |
author_reputation | 61,670,850,962,884 |
root_title | "Coinmarketcap_api_ex v2.0.0 released [open source Elixir/Erlang client for coinmarketcap.com]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 55,871,742 |
net_rshares | 29,609,633,735,880 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
laurent | 0 | 40,762,675,596 | 100% | ||
cm-steem | 0 | 610,008,577,811 | 100% | ||
knopki | 0 | 181,090,579 | 100% | ||
fooblic | 0 | 21,692,130,521 | 99% | ||
sc-steemit | 0 | 3,372,591,602 | 15% | ||
jimmco | 0 | 7,979,256,520 | 100% | ||
ontofractal | 0 | 5,241,378,438 | 100% | ||
carrinm | 0 | 16,394,616,968 | 2% | ||
busy.pay | 0 | 1,932,300,550,148 | 10.17% | ||
steemtruth | 0 | 1,401,820,939 | 5% | ||
ebryans | 0 | 428,112,861 | 50% | ||
lordgangler | 0 | 9,298,827,012 | 100% | ||
crowdfundedwhale | 0 | 60,772,604,585 | 12% | ||
assasin | 0 | 19,397,310,051 | 100% | ||
basicstoliving | 0 | 20,637,250,912 | 100% | ||
sustainablyyours | 0 | 32,063,889,176 | 100% | ||
beajinsu | 0 | 26,392,509,067 | 100% | ||
luigi-tecnologo | 0 | 20,563,589,344 | 100% | ||
dksart | 0 | 40,632,638,118 | 100% | ||
noobsin | 0 | 26,401,270,154 | 100% | ||
onur1s | 0 | 19,654,696,698 | 100% | ||
ikonik | 0 | 387,628,761 | 100% | ||
utopian-io | 0 | 26,359,805,688,543 | 17.55% | ||
lpreap | 0 | 37,441,803,837 | 100% | ||
cryptorg | 0 | 26,562,400,666 | 100% | ||
grzesiekb | 0 | 169,203,303,781 | 100% | ||
kujou | 0 | 2,024,922,384 | 100% | ||
jannat | 0 | 27,523,701,929 | 100% | ||
knackart | 0 | 20,274,573,186 | 100% | ||
jacks35 | 0 | 40,936,390,784 | 100% | ||
csharma | 0 | 9,604,996,965 | 100% | ||
samue2013 | 0 | 52,141,870 | 100% | ||
dinf93845 | 0 | 238,796,074 | 100% | ||
helcim | 0 | 0 | 100% |
Hello, could you point me to the right github repro? thanks
author | justyy |
---|---|
permlink | re-ontofractal-coinmarketcapapiex-v2-0-0-released-open-source-elixir-erlang-client-for-coinmarketcap-com-20180515t232612487z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"app":"steemit/0.1"} |
created | 2018-05-15 23:26:15 |
last_update | 2018-05-15 23:26:15 |
depth | 1 |
children | 1 |
last_payout | 2018-05-22 23:26:15 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.066 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 59 |
author_reputation | 280,616,224,641,976 |
root_title | "Coinmarketcap_api_ex v2.0.0 released [open source Elixir/Erlang client for coinmarketcap.com]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 55,906,352 |
net_rshares | 13,816,239,185 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
happyukgo | 0 | 410,649,274 | 20% | ||
superbing | 0 | 2,557,136,937 | 20% | ||
dailyfortune | 0 | 1,707,165,265 | 20% | ||
dailystats | 0 | 4,349,348,900 | 20% | ||
dailychina | 0 | 2,876,340,862 | 20% | ||
turtlegraphics | 0 | 1,915,597,947 | 20% |
Sure, here it is -- [repo link](https://github.com/cyberpunk-ventures/coinmarketcap_api_ex)
author | ontofractal |
---|---|
permlink | re-justyy-re-ontofractal-coinmarketcapapiex-v2-0-0-released-open-source-elixir-erlang-client-for-coinmarketcap-com-20180516t001637909z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"links":["https://github.com/cyberpunk-ventures/coinmarketcap_api_ex"],"app":"steemit/0.1"} |
created | 2018-05-16 00:16:39 |
last_update | 2018-05-16 00:16:39 |
depth | 2 |
children | 0 |
last_payout | 2018-05-23 00:16:39 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 91 |
author_reputation | 61,670,850,962,884 |
root_title | "Coinmarketcap_api_ex v2.0.0 released [open source Elixir/Erlang client for coinmarketcap.com]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 55,911,643 |
net_rshares | 0 |
Thank you for your contribution. Your contribution has been evaluated according to [Utopian rules and guidelines](https://utopian.io/rules), as well as a predefined set of questions pertaining to the category. To view those questions and the relevant answers related to your post,[Click here](https://review.utopian.io/result/3/2322231) ---- Need help? Write a ticket on https://support.utopian.io/. Chat with us on [Discord](https://discord.gg/uTyJkNm). [[utopian-moderator]](https://join.utopian.io/)
author | justyy |
---|---|
permlink | re-ontofractal-coinmarketcapapiex-v2-0-0-released-open-source-elixir-erlang-client-for-coinmarketcap-com-20180516t002215026z |
category | utopian-io |
json_metadata | {"tags":["utopian-io"],"links":["https://utopian.io/rules","https://review.utopian.io/result/3/2322231","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"} |
created | 2018-05-16 00:22:18 |
last_update | 2018-05-16 00:22:18 |
depth | 1 |
children | 0 |
last_payout | 2018-05-23 00:22:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.057 HBD |
curator_payout_value | 0.006 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 508 |
author_reputation | 280,616,224,641,976 |
root_title | "Coinmarketcap_api_ex v2.0.0 released [open source Elixir/Erlang client for coinmarketcap.com]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 55,912,298 |
net_rshares | 13,340,267,934 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
happyukgo | 0 | 397,402,523 | 20% | ||
superbing | 0 | 2,480,735,165 | 20% | ||
dailyfortune | 0 | 1,657,962,160 | 20% | ||
dailystats | 0 | 4,073,986,131 | 20% | ||
dailychina | 0 | 2,876,359,176 | 20% | ||
turtlegraphics | 0 | 1,853,822,779 | 20% |
Hey @ontofractal **Thanks for contributing on Utopian**. Weβre already looking forward to your next contribution! **Contributing on Utopian** Learn how to contribute on <a href='https://join.utopian.io'>our website</a> or by watching <a href='https://www.youtube.com/watch?v=8S1AtrzYY1Q'>this tutorial</a> on Youtube. **Want to chat? Join us on Discord https://discord.gg/h52nFrV.** <a href='https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
author | utopian-io |
---|---|
permlink | re-coinmarketcapapiex-v2-0-0-released-open-source-elixir-erlang-client-for-coinmarketcap-com-20180516t002508z |
category | utopian-io |
json_metadata | "{"app": "beem/0.19.29"}" |
created | 2018-05-16 00:25:09 |
last_update | 2018-05-16 00:25:09 |
depth | 1 |
children | 0 |
last_payout | 2018-05-23 00:25:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 508 |
author_reputation | 152,955,367,999,756 |
root_title | "Coinmarketcap_api_ex v2.0.0 released [open source Elixir/Erlang client for coinmarketcap.com]" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 55,912,610 |
net_rshares | 0 |