ethereum-optimism / ethereum-optimism/op-analytics

Integrate DeBank API

Open
#899 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
155
Forks
92
PR merge metrics
No merged PRs in 30d

Description

### Description:
We need to integrate the DeBank API to pull wallet portfolio/TVL data. This API will help us retrieve DeFi wallet balances, token allocations, and asset distribution for specific addresses.

### Requirements:

- Implement a function to pull portfolio data using the DeBank API.
- Set up a process to pass Ethereum addresses to the API and retrieve token and balance information.
- Store the fetched data in BigQuery.
- Ensure that the API requests are rate-limited appropriately to avoid hitting the API limits. (This could already be handled by our utils)
- Add error handling for cases where data retrieval fails (e.g., invalid addresses or network issues).

### Acceptance Criteria:

- We can successfully pull DeFi portfolio data for a given Ethereum address.
- Tests for any functions are built and any pre-processing needed performed
- Data is stored in BigQuery

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.