Skip to content

Add FXMacroData client - #3

Open
roberttidball wants to merge 5 commits into
mccaffers:mainfrom
roberttidball:codex/fxmacrodata-client
Open

roberttidball wants to merge 5 commits into
mccaffers:mainfrom
roberttidball:codex/fxmacrodata-client

Conversation

@roberttidball

Copy link
Copy Markdown

Summary

  • add an FXMacroData client to the Utilities library
  • cover catalogue, announcements, predictions, forex, COT, commodities, curves, differentials, sessions, risk sentiment, news, press releases, generic GET requests, and GraphQL
  • add xUnit coverage with a fake HttpMessageHandler so tests do not call the live API

Validation

  • dotnet test tests/test.csproj --filter FxMacroDataClientTests

Switches the base URL from the undocumented fxmacrodata.com/api/v1
alias to the published api.fxmacrodata.com/v1 host, so the client
matches the public API reference.
@roberttidball
roberttidball marked this pull request as ready for review August 26, 2026 02:41
@roberttidball
roberttidball force-pushed the codex/fxmacrodata-client branch from 135a487 to e4c5cd6 Compare September 14, 2026 13:10
@roberttidball

Copy link
Copy Markdown
Author

Small hardening pass: the default HttpClient no longer follows redirects, so the X-API-Key header is never forwarded to another host; a redirect now surfaces as a clean HttpRequestException. (not run locally)

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.

1 participant