Discovery and markets API
Which DeFi protocols can wallet positions be read in on this chain?
The DeFi protocols tracked on one chain for wallet positions, with the ids, names and websites the wallet positions tool uses, a page at a time.
/api/external/discovery/defi-position-protocols/{chain}What it returns
Every DeFi protocol tracked on the chain for wallet positions, 100 per page, ordered by protocolId: the ids, names and websites wallet-defi-positions answers with. A protocol missing here has no positions that endpoint can read on this chain. Keep passing nextCursor back as cursor until it is null; a chain lists a few thousand.
Chains
- BNB Chain BNB
- Ethereum ETH
- Base BASE
Request
Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.
curl -H "x-dex-data-key: $DEXDATA_API_KEY" \ "https://api.dexdata.io/api/external/discovery/defi-position-protocols/BNB"
| Parameter | Description |
|---|---|
cursorquery · string · optional | An opaque cursor from a previous response's nextCursor, for the next page. It only pages the chain it was issued for; an empty one, or one over 512 characters, is a 400 (enforced after the API-key gate). |
chainpath · string · required | The chain to query. ETH, BNB or BASE; every other chain returns 400. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
protocols | object[] | This page of protocols, ordered by protocolId. |
protocols[].protocolId | string | The id wallet-defi-positions uses, e.g. aave-v3. |
protocols[].protocolName | string | The protocol's display name, e.g. Aave V3. |
protocols[].protocolUrl | string | null | The protocol's website. Null when none is published. |
nextCursor | string | null | Pass back as cursor for the next page. null on the last page. |
Start building with DexData today
Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.
Get a free API key