Skip to content

Fix alternative_me API endpoint path#755

Merged
jamespepper81 merged 1 commit into
devfrom
claude/eager-darwin-5boKv
May 28, 2026
Merged

Fix alternative_me API endpoint path#755
jamespepper81 merged 1 commit into
devfrom
claude/eager-darwin-5boKv

Conversation

@jamespepper81
Copy link
Copy Markdown
Contributor

Summary

Fixed the Fear and Greed Index API endpoint path by removing the trailing slash from /fng/ to /fng. The alternative_me API expects the endpoint without a trailing slash.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactor / cleanup

Test Plan

The change is a simple endpoint path correction. Existing API integration tests will verify that the Fear and Greed Index data is fetched correctly from the alternative_me service.

Checklist

  • npm run typecheck passes
  • npm run lint passes
  • npm run test passes
  • Documentation updated (if applicable)

https://claude.ai/code/session_01Vpad8zsEJyXiTczXsBSfRM

The Fear & Greed Index request used the path '/fng/' with a trailing
slash. sanitizeProviderPathname() in blockchain-api.ts rejects empty
path segments, so the trailing slash threw 'Disallowed provider URL
path.' Since all four market provider calls run in a single Promise.all,
this rejection failed the entire Market page.

Drop the trailing slash; api.alternative.me/fng?limit=1 returns the same
payload.
@jamespepper81 jamespepper81 merged commit ba86d61 into dev May 28, 2026
5 checks passed
@jamespepper81 jamespepper81 deleted the claude/eager-darwin-5boKv branch May 28, 2026 22:43
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