ccxt / ccxt

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
https://docs.ccxt.com
MIT License
32.5k stars 7.47k forks source link

Alternative API to map CCXT symbols #6267

Open amit-kukadia opened 4 years ago

amit-kukadia commented 4 years ago

Features like average price, marketcap, full name for coin, token supply, token icon and other information related to token not implemented by CCXT or the implementation is kind of patchy. And I would assume those features are nowhere on the roadmap, even for CCXT pro.

Those are provided by many other companies, and many of them use their own symbols and mapping them with CCXT symbols would be very tedious.

I would like to know if any one is aware of any such API providers which readily integrate with CCXT symbols. Some companies must be using CCXT under the hood to a certain extent.

Atleast the individual currency symbol should be same. The pairs can be different.

kroitor commented 4 years ago

I don't know if there's any readily available solutions, however, manual mapping is unnecessary, if you follow the specs from https://github.com/ccxt/ccxt/wiki/Manual#markets, the mapping of base/quote symbols can be automated to a certain extent.

Also, I've heard of some proprietary solutions targeting the aspect of token info unification, for example: https://truset.com

amit-kukadia commented 4 years ago

Following is the response I get from coingecko api. There is now way for me to know what 'zoc' corresponds to in CCXT if I need to place a trade or something. They provide other useful data on other endpoints which uses their internal id. Its the same case for other apis.

{ "id": "01coin", "symbol": "zoc", "name": "01coin" }, { "id": "02-token", "symbol": "o2t", "name": "O2 Token" }, { "id": "0xcert", "symbol": "zxc", "name": "0xcert" },

https://www.blocktap.io/ uses the same symbols I think.

Blocktap.io, a free data analytics platform, uses CCXWS to provide real time data.

And CCXWS uses CCXT names. But I am looking for more data points than they provide.

tmlee commented 4 years ago

@amit-kukadia we are pilot testing a new endpoint https://api.coingecko.com/api/v3/coins/list?include_platform=true which will return contract addresses that can help with identifying the tokens with a more open standard. It is still beta, but you get roughly the idea on where we are headed. But i am not sure how this will fit with ccxt if its helpful in any way.

ttodua commented 1 month ago

For future readers - this is very tricky and hard to have such mappings and maintain it, but possible ways at this moment: