Bourse.Exchanges (bourse v0.1.0)

Copy Markdown View Source

Compile-time generator for every supported exchange module.

Reads the spec manifest and generates one module per exchange (e.g., Bourse.Bybit, Bourse.Binance) at compile time via Module.create/3.

The closed runtime-support manifest is the only module inventory.

How it works

The manifest lists all exchange IDs. For each ID, this module calls Bourse.Exchange.prepare_generate_data/1 to build the AST, then creates the module directly — same pipeline as use Bourse.Exchange, but without needing individual stub files.