c9s / bbgo

The modern cryptocurrency trading bot framework written in Go.
https://bbgo.finance
GNU Affero General Public License v3.0
1.18k stars 283 forks source link

MINOR: [binance] update borrow/repay api changes #1524

Closed bailantaotao closed 7 months ago

bailantaotao commented 7 months ago

All changes have been tested on my account.

API changes

https://binance-docs.github.io/apidocs/spot/en/#change-log 2024-01-09

GET /sapi/v1/margin/loan will be removed, please replace with the new POST /sapi/v1/margin/borrow-repay borrowing and repayment interface GET /sapi/v1/margin/repay will be removed, please replace with the new POST /sapi/v1/margin/borrow-repay borrowing and repayment interface

bbgokarma-bot commented 7 months ago

Welcome back! @bailantaotao, This pull request may get 770 BBG.

codecov[bot] commented 7 months ago

Codecov Report

Attention: 25 lines in your changes are missing coverage. Please review.

Comparison is base (b6717f2) 0.00% compared to head (f77d03d) 21.78%. Report is 7 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/c9s/bbgo/pull/1524/graphs/tree.svg?width=650&height=150&src=pr&token=ZT7I56OV8K&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yo-An+Lin)](https://app.codecov.io/gh/c9s/bbgo/pull/1524?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yo-An+Lin) ```diff @@ Coverage Diff @@ ## main #1524 +/- ## ========================================= + Coverage 0 21.78% +21.78% ========================================= Files 0 604 +604 Lines 0 43885 +43885 ========================================= + Hits 0 9559 +9559 - Misses 0 33643 +33643 - Partials 0 683 +683 ``` | [Files](https://app.codecov.io/gh/c9s/bbgo/pull/1524?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yo-An+Lin) | Coverage Δ | | |---|---|---| | [pkg/exchange/binance/convert\_margin.go](https://app.codecov.io/gh/c9s/bbgo/pull/1524?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yo-An+Lin#diff-cGtnL2V4Y2hhbmdlL2JpbmFuY2UvY29udmVydF9tYXJnaW4uZ28=) | `0.00% <ø> (ø)` | | | [...anceapi/get\_margin\_borrow\_repay\_history\_request.go](https://app.codecov.io/gh/c9s/bbgo/pull/1524?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yo-An+Lin#diff-cGtnL2V4Y2hhbmdlL2JpbmFuY2UvYmluYW5jZWFwaS9nZXRfbWFyZ2luX2JvcnJvd19yZXBheV9oaXN0b3J5X3JlcXVlc3QuZ28=) | `0.00% <0.00%> (ø)` | | | [pkg/exchange/binance/margin\_history.go](https://app.codecov.io/gh/c9s/bbgo/pull/1524?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yo-An+Lin#diff-cGtnL2V4Y2hhbmdlL2JpbmFuY2UvbWFyZ2luX2hpc3RvcnkuZ28=) | `0.00% <0.00%> (ø)` | | ... and [601 files with indirect coverage changes](https://app.codecov.io/gh/c9s/bbgo/pull/1524/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yo-An+Lin) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/c9s/bbgo/pull/1524?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yo-An+Lin). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yo-An+Lin) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/c9s/bbgo/pull/1524?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yo-An+Lin). Last update [b6717f2...f77d03d](https://app.codecov.io/gh/c9s/bbgo/pull/1524?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yo-An+Lin). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yo-An+Lin).