OpenAPI & codegen
crackcomm opened this issue · 7 comments
Didn't know OpenAPI since now, sounds very interesting but is a huge rework of the lib :/ so if anyone is interested in following this path, I encourage them, but I personally don't have the time to invest in this potential improvement
There seems to already exist a swagger-codegen template for rust.
This looks to me like it should be the top priority issue. Coinnect deals with (crypto)currencies, and as such reliability, stability and easiness of maintenance are very important. I'm probably going to start investigating this and maybe work on this first (before working on adding exchanges or futures).
As you can probably see, I've pushed a PR with a first sketch of a GDAX OpenAPI specification, along with the instructions to generate the Rust API from it. Please don't hesitate to comment on how you feel about this.
I certainly love that :) thank you
I would suggest keeping those auto-generated clients in a crate, on this type safe clients we can then implement more general traits, general for all exchanges.
I think we would need to split the traits as much as possible, eq. Ticker
trait etc.
I can recommend using editor.swagger.io for editing the spec, it catches all errors.