Coin-Gecko queries requires id(s) to identify a token. In ideal case this should come from the CNS table. But all corresponding column (named price_id) is null in the CNS table.
We will store + cache these token id(s) on price oracle DB.
Where the symbol is almost always equal to the ticker column in CNS.cains.
Solution:
We will introduce a new table ticker_to_gecko_id where column ticker (text) and gecko_id (text) will hold the relations. We will cache the relation on server also.
Coin-Gecko queries requires
id(s)
to identify a token. In ideal case this should come from theCNS
table. But all corresponding column (namedprice_id
) is null in theCNS
table.We will store + cache these token id(s) on price oracle DB.
Sample id's used by coin-gecko
Where the
symbol
is almost always equal to theticker
column inCNS.cains
.Solution: We will introduce a new table
ticker_to_gecko_id
where columnticker (text)
andgecko_id (text)
will hold the relations. We will cache the relation on server also.