Custom Data Workflows
Overview
Custom datasets allow you to upload and manage your own time-series data for use with Alfa. This guide provides step-by-step instructions for creating, managing, and uploading data to your custom datasets.
Any data you upload is shared with your team.
Currently, we only support macroeconomic data (i.e. data that is not tied to any specific stock.)
Managing Datasets
Creating a Dataset
To create a new dataset, you’ll need to provide a name. The system will return a unique dataset ID that you’ll use for future operations.
Fetching Dataset Details
You can retrieve detailed information about a specific dataset, including its metadata and features.
Understand the Response
The response includes:
dataset_info: Basic metadata about the datasetdataset_id: Unique identifierdataset_name: Name you provideddataset_type: Type of dataset (GLOBAL or STOCK)data_start: Earliest data pointdata_end: Latest data pointcreated_time: When the dataset was createdlast_updated: Last modification timeapprox_records: Approximate number of recordsstatus: Current status (READY, INGESTING, ERROR, UNKNOWN)owner_info: Information about the owner of the dataset and your access level
custom_features: List of features/columns in the datasetupload_info: Information about any ongoing uploads
Listing All Datasets
You can view all your custom datasets, sorted by last update time.
Understand the Response
The response contains a list of datasets, each with:
dataset_id: Unique identifierdataset_name: Dataset namedataset_type: Type of datasetdata_start: Earliest data pointdata_end: Latest data pointcreated_time: Creation timestamplast_updated: Last modification timestampapprox_records: Approximate record countstatus: Current dataset status
Deleting a Dataset
You can permanently delete a dataset when it’s no longer needed.
Once a dataset is deleted, it cannot be recovered and existing agents using the data will no longer function.
Uploading Data into an Existing Dataset
Uploading CSV Data
You can upload time-series data to your dataset using a CSV file.
Checking Upload Status
You can monitor the progress of your data upload.
Understand the Response
The response includes:
upload_id: The ID of the uploadwarnings: Any warnings during processingerrors: Any errors that occurredsuccessful_rows: Number of rows successfully processedtotal_rows: Total number of rows in the uploadupload_status: Current status (PROCESSING, ABORTED, SUCCESS, WARNING, ERROR)
The upload process may take some time depending on the size of your CSV file. It’s recommended to implement a polling mechanism to check the status periodically.
When uploading data, ensure your CSV file is properly formatted and contains all required columns. This will help avoid processing errors and warnings.
Using Your Data
You can use this like any other variable in Alfa now! Use the @ typeahead or # selector button to choose the variable for inclusion in your agents.
