Software Development Kit to interact with the Bluefin Pro API and contracts.
We are actively working on the docs.
For now please use the readme that is located inside each supported language directory.
- Bundle the openapi specs into one
docker run --rm -v $PWD:/spec redocly/cli bundle -o /spec/out/bluefin.bundle.yaml /spec/resources/bluefin-api.yaml
- View the spec
docker run --rm -v $PWD/out:/spec -p 4000:4000 redocly/cli preview
Please install the following tools locally:
- the rust toolchain: https://rustup.rs
- the OpenAPI Generator CLI using npm: https://openapi-generator.tech/docs/installation#npm
Tool to programmatically generate OpenAPI code. Runs the appropriate openapi-generator-cli
command for each target language.
Navigate to the root of the repository.
cargo install --path tools
This will install the dev tools to your cargo toolchain.
Now you can call apigen to generate OpenAPI code for all 3 languages by calling:
Rust:
apigen -l rust
Python:
apigen -l python
Typescript:
apigen -l ts
In case of any updates, periodically rebuild the dev tools by running the following command in the the root of the repository:
cargo install --path tools