Conversation
Implements nexa_bidkit.exaa — a market adapter that converts internal bid objects into EXAA Trading API order submission payloads, consistent with the existing Nord Pool adapter pattern. Key differences from Nord Pool: - Account-centric grouping: all bids submitted under a single accountID - Volume sign convention is reversed: positive = buy, negative = sell - typeOfOrder (STEP/LINEAR) applies at the product-type container level - No linked block bids or exclusive groups (raises ValueError) - No auction ID in the request body (it goes in the URL path) - fillOrKill derived from bid.is_indivisible for block products Public API: - ExaaOrderType enum (STEP, LINEAR) - Pydantic models: PriceVolumePair, ExaaProduct, ExaaProductTypeContainer, ExaaAccountOrder, ExaaUnits, ExaaOrderRequest - Type aliases: ProductIdResolver, BlockProductResolver - bidding_zone_to_control_area() — AT/DE-LU/NL only - standard_hourly_product_id() / standard_quarter_hourly_product_id() - simple_bid_to_exaa_product(), block_bid_to_exaa_product() - order_book_to_exaa() — dispatches SimpleBids and BlockBids to the correct product type containers Also adds reference/exaa.md domain reference and README documentation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Apply ruff line-length formatting to exaa.py and test_exaa.py, fix trailing newline in checks.md, and update executed notebook outputs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
nexa_bidkit.exaa— a market adapter that converts internal bid objects into EXAA Trading API order submission payloads, following the same architectural patterns asnexa_bidkit.nordpoolreference/exaa.mddomain reference document for EXAA API order modelDesign notes
Key differences from Nord Pool:
accountID)ValueErrortypeOfOrderfillOrKillbid.is_indivisiblefor blocksSupported bid types:
SimpleBidwithHOURLYMTU →hourlyProductscontainerSimpleBidwithQUARTER_HOURLYMTU →15minProductscontainerBlockBid→blockProductscontainer (requiresblock_product_resolver)LinkedBlockBid/ExclusiveGroupBid→ValueErrorConvenience helpers
standard_hourly_product_id()andstandard_quarter_hourly_product_id()generate the canonical EXAA product IDs (hEXA01–hEXA24,qEXA01_1–qEXA24_4) directly from MTU start times.Test plan
tests/test_exaa.py— all passingexaa.pyat 100% coveragemypy src— no issuesruff check src tests— no issues🤖 Generated with Claude Code