fxmacrodata 1.2.0__tar.gz → 1.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/PKG-INFO +16 -14
  2. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/README.md +10 -8
  3. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/async_client.py +1 -1
  4. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/client.py +1 -1
  5. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/__init__.py +4 -1
  6. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/constants.py +1 -1
  7. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/models/macro_indicators.py +2 -1
  8. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata.egg-info/PKG-INFO +16 -14
  9. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata.egg-info/requires.txt +3 -3
  10. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/pyproject.toml +6 -6
  11. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/tests/test_client_auth.py +2 -2
  12. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/tests/test_openbb_helpers.py +2 -2
  13. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/LICENSE +0 -0
  14. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/__init__.py +0 -0
  15. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/exceptions.py +0 -0
  16. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/launcher.py +0 -0
  17. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/metadata.py +0 -0
  18. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/models/__init__.py +0 -0
  19. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/models/commodities.py +0 -0
  20. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/models/cot.py +0 -0
  21. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/models/data_catalogue.py +0 -0
  22. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/models/forex.py +0 -0
  23. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/models/release_calendar.py +0 -0
  24. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/router.py +0 -0
  25. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/utils/__init__.py +0 -0
  26. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/utils/catalogue.py +0 -0
  27. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/utils/helpers.py +0 -0
  28. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/openbb/workspace_backend.py +0 -0
  29. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata/utils.py +0 -0
  30. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata.egg-info/SOURCES.txt +0 -0
  31. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata.egg-info/dependency_links.txt +0 -0
  32. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata.egg-info/entry_points.txt +0 -0
  33. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/fxmacrodata.egg-info/top_level.txt +0 -0
  34. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/setup.cfg +0 -0
  35. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/tests/test_client.py +0 -0
  36. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/tests/test_openbb_launchers.py +0 -0
  37. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/tests/test_openbb_metadata.py +0 -0
  38. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/tests/test_openbb_provider_fetchers.py +0 -0
  39. {fxmacrodata-1.2.0 → fxmacrodata-1.2.1}/tests/test_openbb_workspace_backend.py +0 -0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fxmacrodata
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: Python client for the FXMacroData API, providing forex macroeconomic data for traders, quants, and analysts.
5
5
  Author-email: FXMacroData <info@fxmacrodata.com>
6
6
  License-Expression: MIT
7
- Project-URL: Homepage, https://fxmacrodata.com/?utm_source=pypi&utm_medium=package&utm_campaign=python_sdk
8
- Project-URL: Documentation, https://fxmacrodata.com/api/docs?utm_source=pypi&utm_medium=package&utm_campaign=python_sdk
7
+ Project-URL: Homepage, https://fxmacrodata.com/?utm_source=pypi&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=homepage
8
+ Project-URL: Documentation, https://fxmacrodata.com/api/docs?utm_source=pypi&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=docs
9
9
  Project-URL: Source, https://github.com/fxmacrodata/fxmacrodata
10
10
  Project-URL: Issues, https://github.com/fxmacrodata/fxmacrodata
11
11
  Keywords: forex,macro data,macroeconomics,trading,quant,economic indicators,fxmacrodata,rapidapi
@@ -45,9 +45,9 @@ Requires-Dist: python-dotenv>=1.1; extra == "dev"
45
45
  Requires-Dist: python-semantic-release>=7.23; extra == "dev"
46
46
  Requires-Dist: twine>=4.0; extra == "dev"
47
47
  Requires-Dist: build>=1.0; extra == "dev"
48
- Requires-Dist: ruff>=0.0; extra == "dev"
49
- Requires-Dist: mypy>=1.5; extra == "dev"
50
- Requires-Dist: black>=24.0; extra == "dev"
48
+ Requires-Dist: ruff==0.15.22; extra == "dev"
49
+ Requires-Dist: mypy==2.3.1; extra == "dev"
50
+ Requires-Dist: black==26.5.1; extra == "dev"
51
51
  Requires-Dist: types-requests>=2.28; extra == "dev"
52
52
  Requires-Dist: uvicorn>=0.23; extra == "dev"
53
53
  Dynamic: license-file
@@ -59,24 +59,26 @@ Dynamic: license-file
59
59
  ![License](https://img.shields.io/github/license/fxmacrodata/fxmacrodata?style=flat-square)
60
60
  ![Build](https://img.shields.io/github/actions/workflow/status/fxmacrodata/fxmacrodata/ci-cd.yml?style=flat-square&logo=github)
61
61
 
62
- The **FXMacroData Python SDK** provides a simple and efficient interface for fetching **macroeconomic indicators**, **forex prices**, **release calendars**, **COT positioning**, and **commodity prices** from [FXMacroData](https://fxmacrodata.com/?utm_source=github&utm_medium=readme&utm_campaign=python_sdk).
62
+ The **FXMacroData Python SDK** provides a simple and efficient interface for fetching **macroeconomic indicators**, **forex prices**, **release calendars**, **COT positioning**, and **commodity prices** from [FXMacroData](https://fxmacrodata.com/?utm_source=github&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=readme).
63
63
 
64
- It includes both synchronous and asynchronous clients and supports free USD macro endpoints.
64
+ Use synchronous and asynchronous clients to bring the data into research notebooks, backtests and applications.
65
+
66
+ [Subscribe to FXMacroData](https://fxmacrodata.com/subscribe?utm_source=github&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=subscribe) for non-USD data, full available history, FX, commodities and positioning. Use the public USD workflow to evaluate the integration before connecting your subscription.
65
67
 
66
68
  ---
67
69
 
68
70
  ## 🌟 Features
69
71
 
70
72
  - Fetch:
71
- - **Macroeconomic indicators** — policy rates, inflation, GDP, unemployment, bond yields, and 100+ more
73
+ - **Macroeconomic indicators** — policy rates, inflation, GDP, unemployment, bond yields, and more: 97 distinct indicators across 656 endpoints
72
74
  - **FX spot rates** with optional technical indicators (SMA, RSI, MACD, Bollinger Bands)
73
75
  - **Release calendars** — upcoming economic data release dates
74
76
  - **Data catalogue** — discover available indicators per currency
75
77
  - **COT data** — CFTC Commitment of Traders positioning
76
78
  - **Commodity prices** — gold, silver, platinum
77
- - Free access to **USD** macro data.
79
+ - Evaluate with public **USD** macro data covering the most recent 90 days; connect your FXMacroData subscription for full available history.
78
80
  - FX spot-rate history through `get_fx_price`.
79
- - API key required for protected datasets, including non-USD indicators, FX spot-rate history, COT, and commodities.
81
+ - A key from an authorized FXMacroData subscription is required for protected datasets, including non-USD indicators, FX spot-rate history, COT, and commodities.
80
82
  - Full support for:
81
83
  - **Synchronous client**
82
84
  - **Asynchronous client**
@@ -319,7 +321,7 @@ Fetches commodity price time series.
319
321
 
320
322
  ## 💹 Supported Currencies & Indicators
321
323
 
322
- **18 currencies supported:** USD, EUR, GBP, JPY, AUD, CAD, CHF, NZD, HKD, SGD, NOK, PLN, SEK, DKK, BRL, CNY, KRW, MXN.
324
+ **18 currencies supported:** AUD, BRL, CAD, CHF, CNH, CNY, DKK, EUR, GBP, ILS, JPY, NGN, NOK, NZD, PEN, SEK, THB, USD.
323
325
 
324
326
  The table below shows a sample of indicator coverage across four major currencies. Use `get_data_catalogue()` to discover the full list for any currency.
325
327
 
@@ -355,8 +357,8 @@ MIT License © FXMacroData
355
357
 
356
358
  ## 🌐 Links
357
359
 
358
- - Website: https://fxmacrodata.com
359
- - API Docs: https://fxmacrodata.com/docs
360
+ - Website: https://fxmacrodata.com/?utm_source=github&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=readme
361
+ - API Docs: https://fxmacrodata.com/docs?utm_source=github&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=readme
360
362
  - GitHub: https://github.com/fxmacrodata/fxmacrodata
361
363
  - PyPI: https://pypi.org/project/fxmacrodata/
362
364
  - Readthedocs: https://fxmacrodata.readthedocs.io/en/latest/
@@ -5,24 +5,26 @@
5
5
  ![License](https://img.shields.io/github/license/fxmacrodata/fxmacrodata?style=flat-square)
6
6
  ![Build](https://img.shields.io/github/actions/workflow/status/fxmacrodata/fxmacrodata/ci-cd.yml?style=flat-square&logo=github)
7
7
 
8
- The **FXMacroData Python SDK** provides a simple and efficient interface for fetching **macroeconomic indicators**, **forex prices**, **release calendars**, **COT positioning**, and **commodity prices** from [FXMacroData](https://fxmacrodata.com/?utm_source=github&utm_medium=readme&utm_campaign=python_sdk).
8
+ The **FXMacroData Python SDK** provides a simple and efficient interface for fetching **macroeconomic indicators**, **forex prices**, **release calendars**, **COT positioning**, and **commodity prices** from [FXMacroData](https://fxmacrodata.com/?utm_source=github&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=readme).
9
9
 
10
- It includes both synchronous and asynchronous clients and supports free USD macro endpoints.
10
+ Use synchronous and asynchronous clients to bring the data into research notebooks, backtests and applications.
11
+
12
+ [Subscribe to FXMacroData](https://fxmacrodata.com/subscribe?utm_source=github&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=subscribe) for non-USD data, full available history, FX, commodities and positioning. Use the public USD workflow to evaluate the integration before connecting your subscription.
11
13
 
12
14
  ---
13
15
 
14
16
  ## 🌟 Features
15
17
 
16
18
  - Fetch:
17
- - **Macroeconomic indicators** — policy rates, inflation, GDP, unemployment, bond yields, and 100+ more
19
+ - **Macroeconomic indicators** — policy rates, inflation, GDP, unemployment, bond yields, and more: 97 distinct indicators across 656 endpoints
18
20
  - **FX spot rates** with optional technical indicators (SMA, RSI, MACD, Bollinger Bands)
19
21
  - **Release calendars** — upcoming economic data release dates
20
22
  - **Data catalogue** — discover available indicators per currency
21
23
  - **COT data** — CFTC Commitment of Traders positioning
22
24
  - **Commodity prices** — gold, silver, platinum
23
- - Free access to **USD** macro data.
25
+ - Evaluate with public **USD** macro data covering the most recent 90 days; connect your FXMacroData subscription for full available history.
24
26
  - FX spot-rate history through `get_fx_price`.
25
- - API key required for protected datasets, including non-USD indicators, FX spot-rate history, COT, and commodities.
27
+ - A key from an authorized FXMacroData subscription is required for protected datasets, including non-USD indicators, FX spot-rate history, COT, and commodities.
26
28
  - Full support for:
27
29
  - **Synchronous client**
28
30
  - **Asynchronous client**
@@ -265,7 +267,7 @@ Fetches commodity price time series.
265
267
 
266
268
  ## 💹 Supported Currencies & Indicators
267
269
 
268
- **18 currencies supported:** USD, EUR, GBP, JPY, AUD, CAD, CHF, NZD, HKD, SGD, NOK, PLN, SEK, DKK, BRL, CNY, KRW, MXN.
270
+ **18 currencies supported:** AUD, BRL, CAD, CHF, CNH, CNY, DKK, EUR, GBP, ILS, JPY, NGN, NOK, NZD, PEN, SEK, THB, USD.
269
271
 
270
272
  The table below shows a sample of indicator coverage across four major currencies. Use `get_data_catalogue()` to discover the full list for any currency.
271
273
 
@@ -301,8 +303,8 @@ MIT License © FXMacroData
301
303
 
302
304
  ## 🌐 Links
303
305
 
304
- - Website: https://fxmacrodata.com
305
- - API Docs: https://fxmacrodata.com/docs
306
+ - Website: https://fxmacrodata.com/?utm_source=github&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=readme
307
+ - API Docs: https://fxmacrodata.com/docs?utm_source=github&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=readme
306
308
  - GitHub: https://github.com/fxmacrodata/fxmacrodata
307
309
  - PyPI: https://pypi.org/project/fxmacrodata/
308
310
  - Readthedocs: https://fxmacrodata.readthedocs.io/en/latest/
@@ -4,7 +4,7 @@ from .exceptions import FXMacroDataError
4
4
 
5
5
 
6
6
  class AsyncClient:
7
- BASE_URL = "https://fxmacrodata.com/api"
7
+ BASE_URL = "https://api.fxmacrodata.com"
8
8
 
9
9
  def __init__(self, api_key: Optional[str] = None):
10
10
  self.api_key: Optional[str] = api_key
@@ -4,7 +4,7 @@ from .exceptions import FXMacroDataError
4
4
 
5
5
 
6
6
  class Client:
7
- BASE_URL = "https://fxmacrodata.com/api"
7
+ BASE_URL = "https://api.fxmacrodata.com"
8
8
 
9
9
  def __init__(self, api_key: Optional[str] = None):
10
10
  self.api_key = api_key
@@ -68,7 +68,10 @@ else:
68
68
 
69
69
  fxmacrodata_provider = _OpenBBProvider(
70
70
  name="fxmacrodata",
71
- website="https://fxmacrodata.com",
71
+ website=(
72
+ "https://fxmacrodata.com/?utm_source=openbb&utm_medium=integration"
73
+ "&utm_campaign=fxmacrodata&utm_content=homepage"
74
+ ),
72
75
  description=(
73
76
  "FXMacroData provides macroeconomic indicator time series, FX spot "
74
77
  "rates, CFTC Commitment of Traders positioning, commodity prices, "
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- DEFAULT_BASE_URL = "https://fxmacrodata.com/api"
5
+ DEFAULT_BASE_URL = "https://api.fxmacrodata.com"
6
6
 
7
7
  CATALOGUE_CURRENCIES = [
8
8
  "AUD",
@@ -28,7 +28,8 @@ class FXMacroDataMacroIndicatorsQueryParams(QueryParams):
28
28
  indicator: str = Field(
29
29
  description=(
30
30
  "Indicator name (e.g. inflation, gdp, unemployment, policy_rate). "
31
- "See https://fxmacrodata.com/documentation for the full list."
31
+ "See https://fxmacrodata.com/documentation?utm_source=openbb&utm_medium=integration"
32
+ "&utm_campaign=fxmacrodata&utm_content=docs for the full list."
32
33
  )
33
34
  )
34
35
  start_date: Optional[dateType] = Field(
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fxmacrodata
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: Python client for the FXMacroData API, providing forex macroeconomic data for traders, quants, and analysts.
5
5
  Author-email: FXMacroData <info@fxmacrodata.com>
6
6
  License-Expression: MIT
7
- Project-URL: Homepage, https://fxmacrodata.com/?utm_source=pypi&utm_medium=package&utm_campaign=python_sdk
8
- Project-URL: Documentation, https://fxmacrodata.com/api/docs?utm_source=pypi&utm_medium=package&utm_campaign=python_sdk
7
+ Project-URL: Homepage, https://fxmacrodata.com/?utm_source=pypi&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=homepage
8
+ Project-URL: Documentation, https://fxmacrodata.com/api/docs?utm_source=pypi&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=docs
9
9
  Project-URL: Source, https://github.com/fxmacrodata/fxmacrodata
10
10
  Project-URL: Issues, https://github.com/fxmacrodata/fxmacrodata
11
11
  Keywords: forex,macro data,macroeconomics,trading,quant,economic indicators,fxmacrodata,rapidapi
@@ -45,9 +45,9 @@ Requires-Dist: python-dotenv>=1.1; extra == "dev"
45
45
  Requires-Dist: python-semantic-release>=7.23; extra == "dev"
46
46
  Requires-Dist: twine>=4.0; extra == "dev"
47
47
  Requires-Dist: build>=1.0; extra == "dev"
48
- Requires-Dist: ruff>=0.0; extra == "dev"
49
- Requires-Dist: mypy>=1.5; extra == "dev"
50
- Requires-Dist: black>=24.0; extra == "dev"
48
+ Requires-Dist: ruff==0.15.22; extra == "dev"
49
+ Requires-Dist: mypy==2.3.1; extra == "dev"
50
+ Requires-Dist: black==26.5.1; extra == "dev"
51
51
  Requires-Dist: types-requests>=2.28; extra == "dev"
52
52
  Requires-Dist: uvicorn>=0.23; extra == "dev"
53
53
  Dynamic: license-file
@@ -59,24 +59,26 @@ Dynamic: license-file
59
59
  ![License](https://img.shields.io/github/license/fxmacrodata/fxmacrodata?style=flat-square)
60
60
  ![Build](https://img.shields.io/github/actions/workflow/status/fxmacrodata/fxmacrodata/ci-cd.yml?style=flat-square&logo=github)
61
61
 
62
- The **FXMacroData Python SDK** provides a simple and efficient interface for fetching **macroeconomic indicators**, **forex prices**, **release calendars**, **COT positioning**, and **commodity prices** from [FXMacroData](https://fxmacrodata.com/?utm_source=github&utm_medium=readme&utm_campaign=python_sdk).
62
+ The **FXMacroData Python SDK** provides a simple and efficient interface for fetching **macroeconomic indicators**, **forex prices**, **release calendars**, **COT positioning**, and **commodity prices** from [FXMacroData](https://fxmacrodata.com/?utm_source=github&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=readme).
63
63
 
64
- It includes both synchronous and asynchronous clients and supports free USD macro endpoints.
64
+ Use synchronous and asynchronous clients to bring the data into research notebooks, backtests and applications.
65
+
66
+ [Subscribe to FXMacroData](https://fxmacrodata.com/subscribe?utm_source=github&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=subscribe) for non-USD data, full available history, FX, commodities and positioning. Use the public USD workflow to evaluate the integration before connecting your subscription.
65
67
 
66
68
  ---
67
69
 
68
70
  ## 🌟 Features
69
71
 
70
72
  - Fetch:
71
- - **Macroeconomic indicators** — policy rates, inflation, GDP, unemployment, bond yields, and 100+ more
73
+ - **Macroeconomic indicators** — policy rates, inflation, GDP, unemployment, bond yields, and more: 97 distinct indicators across 656 endpoints
72
74
  - **FX spot rates** with optional technical indicators (SMA, RSI, MACD, Bollinger Bands)
73
75
  - **Release calendars** — upcoming economic data release dates
74
76
  - **Data catalogue** — discover available indicators per currency
75
77
  - **COT data** — CFTC Commitment of Traders positioning
76
78
  - **Commodity prices** — gold, silver, platinum
77
- - Free access to **USD** macro data.
79
+ - Evaluate with public **USD** macro data covering the most recent 90 days; connect your FXMacroData subscription for full available history.
78
80
  - FX spot-rate history through `get_fx_price`.
79
- - API key required for protected datasets, including non-USD indicators, FX spot-rate history, COT, and commodities.
81
+ - A key from an authorized FXMacroData subscription is required for protected datasets, including non-USD indicators, FX spot-rate history, COT, and commodities.
80
82
  - Full support for:
81
83
  - **Synchronous client**
82
84
  - **Asynchronous client**
@@ -319,7 +321,7 @@ Fetches commodity price time series.
319
321
 
320
322
  ## 💹 Supported Currencies & Indicators
321
323
 
322
- **18 currencies supported:** USD, EUR, GBP, JPY, AUD, CAD, CHF, NZD, HKD, SGD, NOK, PLN, SEK, DKK, BRL, CNY, KRW, MXN.
324
+ **18 currencies supported:** AUD, BRL, CAD, CHF, CNH, CNY, DKK, EUR, GBP, ILS, JPY, NGN, NOK, NZD, PEN, SEK, THB, USD.
323
325
 
324
326
  The table below shows a sample of indicator coverage across four major currencies. Use `get_data_catalogue()` to discover the full list for any currency.
325
327
 
@@ -355,8 +357,8 @@ MIT License © FXMacroData
355
357
 
356
358
  ## 🌐 Links
357
359
 
358
- - Website: https://fxmacrodata.com
359
- - API Docs: https://fxmacrodata.com/docs
360
+ - Website: https://fxmacrodata.com/?utm_source=github&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=readme
361
+ - API Docs: https://fxmacrodata.com/docs?utm_source=github&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=readme
360
362
  - GitHub: https://github.com/fxmacrodata/fxmacrodata
361
363
  - PyPI: https://pypi.org/project/fxmacrodata/
362
364
  - Readthedocs: https://fxmacrodata.readthedocs.io/en/latest/
@@ -14,9 +14,9 @@ python-dotenv>=1.1
14
14
  python-semantic-release>=7.23
15
15
  twine>=4.0
16
16
  build>=1.0
17
- ruff>=0.0
18
- mypy>=1.5
19
- black>=24.0
17
+ ruff==0.15.22
18
+ mypy==2.3.1
19
+ black==26.5.1
20
20
  types-requests>=2.28
21
21
  uvicorn>=0.23
22
22
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "fxmacrodata"
7
- version = "1.2.0"
7
+ version = "1.2.1"
8
8
  description = "Python client for the FXMacroData API, providing forex macroeconomic data for traders, quants, and analysts."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -31,8 +31,8 @@ dependencies = [
31
31
  ]
32
32
 
33
33
  [project.urls]
34
- Homepage = "https://fxmacrodata.com/?utm_source=pypi&utm_medium=package&utm_campaign=python_sdk"
35
- Documentation = "https://fxmacrodata.com/api/docs?utm_source=pypi&utm_medium=package&utm_campaign=python_sdk"
34
+ Homepage = "https://fxmacrodata.com/?utm_source=pypi&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=homepage"
35
+ Documentation = "https://fxmacrodata.com/api/docs?utm_source=pypi&utm_medium=referral&utm_campaign=fxmacrodata&utm_content=docs"
36
36
  Source = "https://github.com/fxmacrodata/fxmacrodata"
37
37
  Issues = "https://github.com/fxmacrodata/fxmacrodata"
38
38
 
@@ -73,9 +73,9 @@ dev = [
73
73
  "python-semantic-release>=7.23",
74
74
  "twine>=4.0",
75
75
  "build>=1.0",
76
- "ruff>=0.0",
77
- "mypy>=1.5",
78
- "black>=24.0",
76
+ "ruff==0.15.22",
77
+ "mypy==2.3.1",
78
+ "black==26.5.1",
79
79
  # type stubs for static type checking
80
80
  "types-requests>=2.28",
81
81
  "uvicorn>=0.23",
@@ -32,7 +32,7 @@ def test_non_usd_indicator_uses_api_key_header(monkeypatch: pytest.MonkeyPatch):
32
32
 
33
33
  assert calls == [
34
34
  {
35
- "url": "https://fxmacrodata.com/api/v1/announcements/aud/gdp",
35
+ "url": "https://api.fxmacrodata.com/v1/announcements/aud/gdp",
36
36
  "headers": {"X-API-Key": "test-key"},
37
37
  "params": {"start_date": "2024-01-01"},
38
38
  }
@@ -80,7 +80,7 @@ def test_fx_price_uses_api_key_header(monkeypatch: pytest.MonkeyPatch):
80
80
 
81
81
  assert calls == [
82
82
  {
83
- "url": "https://fxmacrodata.com/api/v1/forex/eur/usd",
83
+ "url": "https://api.fxmacrodata.com/v1/forex/eur/usd",
84
84
  "headers": {"X-API-Key": "test-key"},
85
85
  "params": {"start_date": "2026-01-01", "indicators": "sma_20"},
86
86
  }
@@ -55,7 +55,7 @@ def test_sync_request_sends_header_auth_and_filters_null_params(
55
55
  monkeypatch.setattr(helpers.requests, "get", fake_get)
56
56
 
57
57
  payload = helpers._sync_request(
58
- "https://fxmacrodata.com/api/v1/calendar/usd",
58
+ "https://api.fxmacrodata.com/v1/calendar/usd",
59
59
  {"indicator": None, "limit": 10},
60
60
  api_key="test-key",
61
61
  auth_mode="header",
@@ -65,7 +65,7 @@ def test_sync_request_sends_header_auth_and_filters_null_params(
65
65
  assert payload == {"data": [{"ok": True}]}
66
66
  assert calls == [
67
67
  {
68
- "url": "https://fxmacrodata.com/api/v1/calendar/usd",
68
+ "url": "https://api.fxmacrodata.com/v1/calendar/usd",
69
69
  "params": {"limit": 10},
70
70
  "headers": {"X-API-Key": "test-key"},
71
71
  "timeout": 30,
File without changes
File without changes