Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions nomics/api/currencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,20 @@ def get_metadata(self, ids = None, attributes = None):
else:
return resp.text

def get_sparkline(self, start, end = None):
def get_sparkline(self, start, ids = None, end = None):
'''
Returns prices for all currencies within a customizable time interval suitable for sparkline charts.

:param str start: Start time of the interval in RFC3339 format

:param str end: End time of the interval in RFC3339 format. If not provided, the current time is used.
:param str ids: Comma separated list of Nomics Currency IDs to filter result rows. Optional

:param str end: End time of the interval in RFC3339 format. If not provided, the current time is used.
'''

url = self.client.get_url('currencies/sparkline')
params = {
'ids': ids,
'start': start,
'end': end
}
Expand Down