How kanekoshoyu/exchange-collection works
Project type and purpose
• exchange-collection is an open-source tooling framework whose purpose is to aggregate machine-readable OpenAPI/AsyncAPI documents for many crypto exchanges and drive a CI/CD pipeline that generates multi-language REST/WS client libraries automatically.
• The primary deliverables are:
• a collection of YAML specs under asset/
• a Rust-based codegen engine in codegen/
• an index.html OpenAPI/AsyncAPI viewer
• a CI workflow in .github/workflows that ties everything together and publishes generated code to a sub-repo.
File structure
• Top level:
• asset/ – all exchange_*_openapi.yaml and *_asyncapi.yaml specs
• codegen/ – Rust CLI (main.rs, lib.rs) plus meta modules for codegen input/output
• index.html – static documentation site
• .github/workflows/generate-rust-code.yml – CI pipeline
• Cargo.toml / Cargo.lock – Rust crate for codegen
• Patterns:
• input assets → codegen engine → output client code pushed to exchange-collection-rust
• static viewer reads directly from asset/
• pipeline orchestrated via GitHub Actions
• Supporting files:
• .openapi-generator-ignore, .gitignore, LICENSE, README.md
README for additional insights
• It outlines “gather → codegen → deploy” steps
• It lists codegen command examples for OpenAPI and AsyncAPI (Rust, Python)
• It emphasizes CI integration and multi-language support