Skip to content

Commit

Permalink
⚗️ test proxies
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingarelli, Luca committed Apr 15, 2024
1 parent f2d72b1 commit d342310
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions fredapi/tests/test_with_proxies.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
""" Created on 15/04/2024::
------------- test_with_proxies.py -------------
**Authors**: L. Mingarelli
"""
import os
import fredapi
PROXIES = {'http': 'xxx',
'https': 'xxx'}

fred = fredapi.Fred(api_key=os.environ['FRED_API_KEY'], proxies=PROXIES)

data = fred.get_series('SP500')

0 comments on commit d342310

Please sign in to comment.