-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply requestgen to the requests #335
Comments
Hi @c9s , requestgen is so cool, actually the plan of go-binance v3 is also to use generation tool to automatically generate most of the SDK code. I think v3 can reuse your work. |
That's great! Looking forward to hearing the feedback from you :) |
FYI, Just added more features in requestgen https://github.com/c9s/requestgen |
@adshao I can send a pull request for integrating this if you want. |
It's great, we can discuss the pr, will you break the compatibility? If yes, we should move it to v3. |
@c9s could you describe the work you will do? |
I would like to make it backward compatible But I need to have a PoC first, and see if we can do it in v2, what do you think? |
We can do it in v2 as long as it's backward compatible |
I implemented my own binance http api client with requestgen, you may take a look: |
or maybe you can also simply use my code :D |
@adshao I wrote a tutorial about the requestgen for the binance api. |
No response for a long time, close this issue |
Hello @adshao,
I found you're using the cascading pattern for the request call for the whole binance library, I think you might be interested in this.
https://github.com/c9s/requestgen
I also like your cascading pattern calls for the binance API, so I wrote a tool to generate the accessor methods from the struct, this way you can generate the requests very easy.
This tool is used in bbgo (https://github.com/c9s/bbgo), and we're also using your go-binance package.
The text was updated successfully, but these errors were encountered: