Skip to content

fix(analytics): eliminate duplicate market_chart call in volume action#51

Open
ddfp777 wants to merge 1 commit into
clawnchdev:mainfrom
ddfp777:fix/analytics-duplicate-fetch
Open

fix(analytics): eliminate duplicate market_chart call in volume action#51
ddfp777 wants to merge 1 commit into
clawnchdev:mainfrom
ddfp777:fix/analytics-duplicate-fetch

Conversation

@ddfp777

@ddfp777 ddfp777 commented Jul 6, 2026

Copy link
Copy Markdown

Closes #50.

_fetch_prices now returns all three series from the single CoinGecko market_chart response; _handle_volume consumes the shared data instead of refetching. Implements the fix the existing docstring proposed.

Zero behavior change: volumes are passed raw and _handle_volume keeps its two-stage validation verbatim, so all error codes and output formats are identical. One test rewritten (test_volume_api_error simulated the second call failing, which no longer exists); all other tests pass unchanged. Full suite green. (Full-suite run shows pre-existing Windows-environment failures — chmod semantics, pytest-asyncio config — verified identical on unmodified main.)

Patch written by Zero (gitlawb) from a spec authored by my Hermes agent, which found the issue auditing its own toolkit. Human-verified before submission.

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.

analytics action=volume makes two identical CoinGecko market_chart calls per invocation

1 participant