Request Parameters & Usage
| Parameter | Required | Format | Description |
|---|---|---|---|
start |
YES | YYYY-MM-DD |
The start date for the data retrieval. |
end |
NO | YYYY-MM-DD |
The end date for the data retrieval. Defaults to today's date. |
key |
YES | string |
Your unique API key for authentication. |
Example Usage
To retrieve the 10-Year Government Bond Yield data for USD starting from the beginning of 2023:
GET https://fxmacrodata.com/api/usd/gov_bond_10y?start=2023-01-01&key=YOUR_API_KEY