Skip to content

Commit

Permalink
Added base parameter support to fixerio API requests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rseward committed Apr 13, 2020
1 parent 381b1b6 commit 3bc43a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fixerio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _create_payload(self, symbols, base=None):

return payload

def latest(self, base=None, symbols=None):
def latest(self, symbols=None, base=None):
""" Get the latest foreign exchange reference rates.
:param symbols: currency symbols to request specific exchange rates.
Expand All @@ -68,7 +68,7 @@ def latest(self, base=None, symbols=None):
except requests.exceptions.RequestException as ex:
raise FixerioException(str(ex))

def historical_rates(self, date, base=None, symbols=None):
def historical_rates(self, date, symbols=None, base=None):
"""
Get historical rates for any day since `date`.
Expand Down

0 comments on commit 3bc43a1

Please sign in to comment.