Skip to main content

Client and utilities for the JAO Auction Data API

Project description

JAO Auction Data API Package

This package provides a small, focused Python client for the JAO Auction Data API, plus helpers to parse auctions, bids, and curtailments and plot a professional bid stack chart.

Features

  • Authenticated REST client for getcorridors, gethorizons, getauctions, getbids, getcurtailment
  • Parsing utilities for auction IDs and corridor codes
  • Offered-capacity detection in auction/bid payloads
  • Bid stack visualization (cumulative step curve)
  • Enum helpers for corridors, horizons, and curtailment reasons
  • Curtailment stacked-bar visualization by reason

Install

pip install jao-auction-api

Quick Start

from jao_auction_api import (
    JaoClient,
    load_env,
    extract_auction_ids,
    extract_corridor_codes,
    plot_bid_stack_step,
    plot_curtailment_stacked_bar,
    corridor_enum,
)

load_env()  # reads .env into environment variables if present
client = JaoClient()

auctions = client.get_auctions(
    corridor="FR-DE",
    fromdate="YYYY-MM-DD-HH:MM:SS",
    todate="YYYY-MM-DD-HH:MM:SS",
)
auction_ids = extract_auction_ids(auctions)

bids = client.get_bids(auction_ids[0])
fig, ax = plot_bid_stack_step(bids)

corridors = client.get_corridors()
corridor_codes = extract_corridor_codes(corridors)
Corridor = corridor_enum(corridor_codes)

curtailments = client.get_curtailment(
    corridor=Corridor.FR_DE.value,
    fromdate="YYYY-MM-DD-HH:MM:SS",
    todate="YYYY-MM-DD-HH:MM:SS",
)
fig2, ax2 = plot_curtailment_stacked_bar(curtailments)

Environment

Set JAO_API_KEY in your environment or .env file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jao_auction_api-0.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jao_auction_api-0.1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file jao_auction_api-0.1.0.tar.gz.

File metadata

  • Download URL: jao_auction_api-0.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for jao_auction_api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 732bcf0412b957b0144a98be7b7f0e72a65c88f809677d88d57ed3ebb6054506
MD5 0df49e6e6f196142864449774bd44897
BLAKE2b-256 45d6d44570b27365bc526820cb25ba5af8152bc7c969aa4f067445f7787997b6

See more details on using hashes here.

File details

Details for the file jao_auction_api-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jao_auction_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e51ef58d59d52d50b9b805db362173f6d8bf2d74dc044778a41714eaf0c59835
MD5 afbe4f0c6a79e379d073bea9297cf456
BLAKE2b-256 c81fdc70d04125b852dc89f60feec9b0d6de018b645ffaae1f755af26ad75895

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page