Finance · head-to-head

Fed Treasury vs IG

Fed Treasury

Fiscal Data is the U.S. Department of the Treasury's open REST API for federal financial datasets — debt, revenue, spending, interest rates, and savings bonds — maintained by the Bureau of the Fiscal Service. Every endpoint supports field selection, filtering, sorting, and pagination, and returns JSON by default with CSV or XML available via the format parameter. No registration or API key is required, and a live Origin-header probe confirmed CORS is enabled (Access-Control-Allow-Origin: *).

IG

IG's trading API layers REST order execution and Lightstreamer-based streaming onto the same CFD, spread-betting, and forex engine behind IG's own platform, authenticated with an API key generated from a live account (a linked demo account then lets you sandbox trades risk-free). There's no separate API fee — access is included with any account and gated only by IG's standard per-key usage quotas, not a metered price. A live probe of the real API host (api.ig.com) returned `Access-Control-Allow-Origin: *` even on an error response, confirming CORS is open — correcting the previously-recorded `unknown`.

Fed TreasuryIG
AuthenticationNoneAPI Key
Pricingfreefree
FormatsJSON, XML, CSVJSON, WebSocket
CORSyesyes
HTTPSYesYes

Fed Treasury needs no API key, while IG requires API Key — pick Fed Treasury to start without signup.

More comparisons