API 2.0: Add Support for Load Data and Enhance Location Filtering #34
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR extends the
ElectricityMarket
API by adding support for load data fetching and enhancing existing functions to include location filtering. These changes align with the package's current style and structure while maintaining compatibility with existing functionality.Key Changes
1. New Features
Load Data Functions:
get_load_raw_data
: Fetch raw load data.get_load
: Fetch processed load data.get_load_forecast_raw_data
: Fetch raw load forecast data.get_load_forecast
: Fetch processed load forecast data.Location Filtering:
locations
parameter to filter results by specific nodes or categories (e.g.,ZONE
,LOAD
,GEN
, etc.).2. Enhancements to Existing Functions
locations
support to:get_real_time_lmp_raw_data
get_real_time_lmp
get_day_ahead_lmp_raw_data
get_day_ahead_lmp
3. New Utility Functions
real_time_lmp_data_types
: Lists available data types for real-time LMP.real_time_lmp_frequency
: Lists available frequencies for real-time LMP.load_data_types
: Lists available data types for load data.load_forecast_data_types
: Lists available data types for load forecasts.4. Improved Testing
@test_throws
for unimplemented functions inMockMarket
.get_load
get_load_raw_data
get_load_forecast
get_load_forecast_raw_data
data_types
) and frequencies (frequency
) for LMP and load data.Testing
MockMarket
to validate:MethodError
is thrown for unimplemented methods.locations
parameter.DateTime
andZonedDateTime
.Usage Examples
Fetch Load Data
List Available Data Types
Future Improvements
MisoMarket
,PjmMarket
, etc.).Checklist
Please review the changes and provide feedback. Suggestions for additional improvements are welcome!