Hi guys, how can I find out the identifier of a particular token?
[CONTEXT]
I need it in order to find out the price of a token and for that I am using this api: https://api.elrond.com/mex-pairs/{baseId}/{quoteId}.
Now, the issue is that I need the id based on the network config (dev-net, main-net, test-net), and I found out that I can use the https://api.elrond.com/tokens?name={tokenName} api, but unfortunately the response doesn’t have any token which can be used in the first api call…
Let’s take the RIDE and WEGLD pair.
Here is how I get info about the mex pair: https://api.elrond.com/mex-pairs/RIDE-7d18e9/WEGLD-bd4d79
Now, if I use https://api.elrond.com/tokens?name=WEGLD the result doesn’t include WEGLD-bd4d79, it just returns a bunch of other ids, which I have no idea what they mean.
Can someone give me a hint here please?
I would strongly recommend you to use the Maiar Exchange API for this type of queries. If you want to get tokens listed on Maiar Exchange you can use the "pairs" query and get all pairs and then extract all the unique tokens from there.
I would strongly recommend you to use the Maiar Exchange API for this type of queries. If you want to get tokens listed on Maiar Exchange you can use the "pairs" query and get all pairs and then extract all the unique tokens from there.
@clataretu ?