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
@ivpusic ivpusic force-pushed the sim/evm-token-holders branch from 99a071c to ce9e6ce Compare March 13, 2026 10:41
@ivpusic ivpusic force-pushed the sim/evm-defi-positions branch from 2879e1f to 98674c2 Compare March 13, 2026 10:41
@ivpusic ivpusic force-pushed the sim/evm-defi-positions branch from 98674c2 to ebd4cf0 Compare March 13, 2026 10:45
@ivpusic ivpusic force-pushed the sim/evm-token-holders branch 2 times, most recently from 2ee6e94 to 8312c47 Compare March 13, 2026 10:53
@ivpusic ivpusic force-pushed the sim/evm-defi-positions branch from ebd4cf0 to 5d7bdb0 Compare March 13, 2026 10:53
@ivpusic ivpusic force-pushed the sim/evm-token-holders branch from 8312c47 to d9b5764 Compare March 13, 2026 10:56
@ivpusic ivpusic force-pushed the sim/evm-defi-positions branch from 5d7bdb0 to 1af3a07 Compare March 13, 2026 10:56
@ivpusic ivpusic force-pushed the sim/evm-defi-positions branch from 1af3a07 to a7987f1 Compare March 13, 2026 12:09
@ivpusic ivpusic force-pushed the sim/evm-token-holders branch from d9b5764 to 3a65dcb Compare March 13, 2026 12:09
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