Quanda Data
QuandaData SDK Usage Guide
Internal Use Only: This documentation is intended solely for internal use within Quantit. The QuandaData
object can be added through other internal Quantit tools, which are not covered in this documentation.
Overview
The QuandaData
class provides static methods to interact with the Quanda Data API. It allows users to list available data objects and retrieve specific data objects, either as files or JSON objects.
Methods
object_list(prefix='')
object_list(prefix='')
Retrieves a list of available data objects. The optional prefix
parameter can be used to filter the list based on a prefix string. If the prefix is an empty string, it will return an empty result.
Example Usage
get(object_name, is_file_type=False)
get(object_name, is_file_type=False)
Retrieves a specific data object. If is_file_type
is set to True
, the data is retrieved as a raw file. Otherwise, it is retrieved as a JSON object.
Example Usage for JSON Data
get(object_name, is_file_type=True)
get(object_name, is_file_type=True)
Example Usage for File Data
help()
help()
You can use the help()
function to check usages for creating a guide document.
Quanda Data Getting Cases
Named
Description: Data explicitly specified by name
data = QuandaData.get(named_object_name)
Unnamed - Python Object (JSON, DataFrame, etc.)
Description: Data treated as Python objects like JSON, DataFrame, etc., without a specific name
data = QuandaData.get(unnamed_object_name)
Unnamed - File Type (.json, .xls, etc.)
Description: Data provided as file types without a specific name
data = QuandaData.get(named_object_name, is_file_type=True) df = pd.read_excel(BytesIO(data)) # excel file(bytes) to python object(dataframe)
Additional Parameters
bucket
Both
object_list
andget
methods support an optionalbucket
parameter.This parameter allows users to specify a logical grouping or context for the requested data.
Usage of
bucket
enables more refined control over data retrieval within the API.
This documentation should be used as a reference for interacting with the Quanda Data API within Quantit. For any further assistance or advanced usage, please refer to internal support channels.
Last updated