Code Monkey home page Code Monkey logo

cryptocurrencies's Introduction

cryptocurrencies CI

A JSON list of all the cryptocurrency symbols and names

The currency list is a JSON file that can be used wherever.

Install

$ npm install --save cryptocurrencies

Usage

const cryptocurrencies, {symbols} = require('cryptocurrencies');

cryptocurrencies.BTC;
//=> 'Bitcoin'

console.log(symbols);
//=> ['42', ... 'BTC', 'ETH', 'LTC', ...]

Cryptocurrencies

There are currently 12242 cryptocurrencies represented*:

* Last updated: Mon, 22 Apr 2024 16:18:05 GMT

Building

The JSON list, the currency icons, and parts of this README file are auto-generated from the coin list made available by the cryptocompare coinlist API, and can be updated automatically by running:

$ npm run build

๐Ÿ’ก Note that this build routine synchronously downloads the currency icons and saves them to the images directory. This means that the build routine takes a few minutes, since it has to process thousands of images.

License

MIT ยฉ Crypti Team

cryptocurrencies's People

Contributors

brh55 avatar nullablebool avatar radiovisual avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cryptocurrencies's Issues

XRP

Thank you very much for everything.

A suggestion, you could put "XRP" as "Ripple".

Use collapsable markdown on Readme's Currency List

The currency list is growing fast! It is nearly 4,000 items long ๐Ÿ˜ฑ so it takes forever to view.

An idea could be that when the currency list is generated, (since the Readme is auto-generated when we run npm run build, it could also sort the list of currencies, and instead of just printing out a full table of currencies, it breaks up the sorted currencies with some collapsable markdown and make a list like this:

0-9
Table with 0-9 currencies here
A
Table of currencies starting with 'A' here
B
Table of currencies starting with 'B' here

Find ways to get the coin icons

Per reddit users, it would be great if we could include the coin icon for each coin. What your thoughts on how we can handle this?

Build a post-build routine to inject overrides

As noted in PR #10, sometimes the cryptocompare API returns typos in the currency names, and manually updating these typos after each build sounds horrible, so let's automate it!

I propose that we keep a list of updates to the apply to the generated JSON after it has been built, and we can start with the only item on this list being:

const postUpdates = {
 'VertCoin': 'Vertcoin'
}

and I am sure more will follow.

Coinlist API endpoint

Hi there!

Cryptocompare is going to change its coinlist API endpoint from: https://www.cryptocompare.com/api/data/coinlist/ to https://min-api.cryptocompare.com/data/all/coinlist.

Message: "Coin list succesfully returned! This api is moving to https://min-api.cryptocompare.com/data/all/coinlist, please change the path.",

Bitcoin Cash / BCC?

Hi

Why is BCH mapped to Bitcoin Cash / BCC? Surely the name is just Bitcoin Cash? I understand that a few exchanges use a different symbol, but that's the same with bitcoin (XBT) and I'm sure some others. Can we change it?

Update names

Antshare is still ant and should be udpated to NEO

Added functionality

This list could be much more useful if it contained an object for each coin instead of a parameter list:

{
    "name" : "Bitcoin",
    "symbol" : "bts",
    "uri" : { 
        "coin": "bitcoin",
        "amount" : "amount",
        "message" : "message",
        "label" : "label"
    }
}

The URI object would be particularly useful because it's required for wallets that present QR codes. These URI's don't use the symbol, they use a long name for the currency an those lists aren't easy to find freely. Also, many coin URI's have a different set of terminology for the message. Some call it a memo. So, if you could normalize this through this library, it would be pretty powerful as well.

MIOTA

Please consider adding MIOTA which is the correct supply symbol for IOTA.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.