Skip to content

Add evm defi-positions command for DeFi portfolio positions#37

Open
ivpusic wants to merge 1 commit intosim/evm-token-holdersfrom
sim/evm-defi-positions
Open

Add evm defi-positions command for DeFi portfolio positions#37
ivpusic wants to merge 1 commit intosim/evm-token-holdersfrom
sim/evm-defi-positions

Conversation

@ivpusic
Copy link
Member

@ivpusic ivpusic commented Mar 12, 2026

Add dune sim evm defi-positions <address> supporting Erc4626, Tokenized, UniswapV2, and NFT position types with --chain-ids filter, aggregation summaries (total USD by chain), text table and JSON output.

@cursor
Copy link

cursor bot commented Mar 12, 2026

PR Summary

Medium Risk
Introduces a new CLI surface that calls a new /beta/evm/defi/positions API and parses polymorphic response data, so behavior depends on API stability and response shape (including aggregation handling).

Overview
Adds a new dune sim evm defi-positions <address> command that fetches DeFi portfolio positions from /beta/evm/defi/positions/{address} with optional --chain-ids filtering and supports -o json passthrough.

For text output, it renders a positions table with per-type DETAILS formatting (ERC-4626, tokenized lending tokens, Uniswap V2 LP, and Uniswap V3/V4 NFT positions) and prints an optional aggregation summary (total USD value plus per-chain breakdown). Includes integration-style CLI tests plus unit tests for the details/formatting helpers, and wires the command into the sim evm command tree.

Written by Cursor Bugbot for commit 2208ba0. Configure here.

@ivpusic ivpusic force-pushed the sim/evm-token-holders branch from d12b226 to 2381d5d Compare March 12, 2026 15:34
@ivpusic ivpusic force-pushed the sim/evm-defi-positions branch from 2208ba0 to 234d2c4 Compare March 12, 2026 15:34
@ivpusic ivpusic force-pushed the sim/evm-token-holders branch from 2381d5d to 2eaa889 Compare March 12, 2026 15:39
@ivpusic ivpusic force-pushed the sim/evm-defi-positions branch 2 times, most recently from 04fc294 to c682cc0 Compare March 12, 2026 16:07
@ivpusic ivpusic force-pushed the sim/evm-token-holders branch from 07686bb to 99a071c Compare March 12, 2026 16:10
@ivpusic ivpusic force-pushed the sim/evm-defi-positions branch from c682cc0 to 2879e1f Compare March 12, 2026 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants