mirror of
https://github.com/hydrosquall/tiingo-python.git
synced 2026-01-26 22:34:19 +01:00
Add columns as parameter to get_dataframe
Allow the user to specify which columns to retrieve
This commit is contained in:
@@ -262,6 +262,7 @@ class TiingoClient(RestClient):
|
||||
startDate=None,
|
||||
endDate=None,
|
||||
metric_name=None,
|
||||
columns=None,
|
||||
frequency="daily",
|
||||
fmt="json",
|
||||
):
|
||||
@@ -278,6 +279,7 @@ class TiingoClient(RestClient):
|
||||
tickers (string/list): One or more unique identifiers for a stock ticker.
|
||||
startDate (string): Start of ticker range in YYYY-MM-DD format.
|
||||
endDate (string): End of ticker range in YYYY-MM-DD format.
|
||||
columns (string): Comma seperated parameter specifying which columns to retrieve (to include volume)
|
||||
metric_name (string): Optional parameter specifying metric to be returned for each
|
||||
ticker. In the event of a single ticker, this is optional and if not specified
|
||||
all of the available data will be returned. In the event of a list of tickers,
|
||||
@@ -315,6 +317,8 @@ class TiingoClient(RestClient):
|
||||
params["startDate"] = startDate
|
||||
if endDate:
|
||||
params["endDate"] = endDate
|
||||
if columns:
|
||||
params["columns"] = columns
|
||||
|
||||
if pandas_is_installed:
|
||||
if type(tickers) is str:
|
||||
|
||||
Reference in New Issue
Block a user