Skip to content

fireflyprotocol/pro-sdk

Repository files navigation

Bluefin Pro SDK

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.

Generate OpenAPI spec

  1. 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
  1. View the spec
docker run --rm -v $PWD/out:/spec -p 4000:4000 redocly/cli preview

Dev Tools

Please install the following tools locally:

ApiGen

Tool to programmatically generate OpenAPI bindings. To call the appropriate openapi-generator-cli command for all target languages, run the following from the tools/ folder:

cargo run --bin apigen

Or, from anywhere in the repository:

cargo run --bin apigen --manifest-path $(git rev-parse --show-toplevel)/tools/Cargo.toml

Use --lang to restrict generation to a single language:

# --lang python|rust|typescript; or, -l py|rs|ts
cargo run --bin apigen -- --lang python

If OpenAPI specs have changed since the last run of apigen, the tool will automatically increment the minor version of all SDKs (resetting the patch level to 0), and store hashes of the updated specs in a versioned file for future reference.

About

SDK for trading on bluefin Pro

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 18