Skip to content

Improve: Update Binance futures account api to v2 - #1306

Merged
c9s merged 2 commits into
c9s:mainfrom
andycheng123:improve/binance-api
Sep 11, 2023
Merged

c9s merged 2 commits into
c9s:mainfrom
andycheng123:improve/binance-api

Conversation

@andycheng123

Copy link
Copy Markdown
Collaborator

No description provided.

@andycheng123
andycheng123 requested a review from c9s September 7, 2023 07:22
@bbgokarma-bot

Copy link
Copy Markdown

Welcome back! @andycheng123, This pull request may get 425 BBG.

@codecov

codecov Bot commented Sep 7, 2023 •

Copy link
Copy Markdown

Codecov Report

Merging #1306 (40dbfd5) into main (9c104f5) will decrease coverage by 0.04%.
Report is 16 commits behind head on main.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1306      +/-   ##
==========================================
- Coverage   20.83%   20.80%   -0.04%     
==========================================
  Files         553      554       +1     
  Lines       39379    39374       -5     
==========================================
- Hits         8203     8190      -13     
- Misses      30576    30586      +10     
+ Partials      600      598       -2     
Files Changed Coverage Δ
.../binance/binanceapi/futures_get_account_request.go 0.00% <0.00%> (ø)
pkg/exchange/binance/convert_futures.go 5.82% <0.00%> (ø)
pkg/exchange/binance/futures.go 0.00% <0.00%> (ø)

... and 15 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c104f5...40dbfd5. Read the comment docs.

📢 Have feedback on the report? Share it here.

Comment thread pkg/exchange/binance/futures.go Outdated
func (e *Exchange) QueryFuturesAccount(ctx context.Context) (*types.Account, error) {
account, err := e.futuresClient.NewGetAccountService().Do(ctx)
//account, err := e.futuresClient.NewGetAccountService().Do(ctx)
req_account := e.futuresClient2.NewFuturesGetAccountRequest()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be just req ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's another "req" down below

@bbgokarma-bot

Copy link
Copy Markdown

Re-estimated karma: this pull request may get 455 BBG

@c9s
c9s merged commit 4f82843 into c9s:main Sep 11, 2023
@bbgokarma-bot

Copy link
Copy Markdown

Hi @andycheng123,

Well done! 460 BBG has been sent to your polygon wallet. Please check the following tx:

https://polygonscan.com/tx/0x2973868f88ecd270fde91f378b5d0f8c96fb0ea1f3fae3fde79575282f3e4819

Thank you for your contribution!

@andycheng123
andycheng123 deleted the improve/binance-api branch September 11, 2023 03:17
novaua pushed a commit to novaua/bbgo that referenced this pull request Jun 12, 2026
Improve: Update Binance futures account api to v2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants