Skip to content

fireflyprotocol/pro-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 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

About

SDK for trading on bluefin Pro

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 14