external-adapters-js
external-adapters-js copied to clipboard
Use Overrider within ID enabled EAs
Description
External Adapters accept overrides as input parameters or as hardcoded configuration within the EA. These traditionally are used for symbol to symbol conversions when a data provider requires input that isn't the standard symbol. (e.g. BTC
-> BITCOIN
). Certain data providers accept queries using a currency's id
or cid
. As we move more towards id
s as a best practice we would like these adapters to handle overrides more elegantly.
We have created the Overrider class that handles both symbol->symbol and symbol->id overrides. It was added to Coingecko and Coinpaprika, but there are other adapters that could utilize it.
Acceptance Criteria
- Identify External Adapters that accept ids or cids in input parameters (e.g. Coinmarketcap)
- Implement the Overrider from the EA framework to handle symbol -> id overrides for each of these EAs.
@KuphJr will be able to help provide an introduction on the Overrider feature.
High priority adapters:
- nomics
- coinmarketcap