Crate amber_client

Source

Modules§

app_config
rest_client

Functions§

get_prices
Function to get a window of prices. Based the users input.
get_renewables
Function to get percentage of renewables used in the grid for a given state and a given window.
get_site_data
Function to get the Site data
get_usage_by_date
Function to retrieve historical price data based on a date range supplied by the user.
get_user_site_id
Function to get and return only the users Site ID.
parse_date_naive
Function to validate the user has supplied the date in the correct format and that the date is a valid calender date. Will exit the application of the date format is wrong or invalid.
write_data_as_csv_to_file
CVS writer for historical data