Skip to content

feat: add manual USDT account rebalance - #228

Merged
jackhai9 merged 2 commits into
mainfrom
codex/usdt-rebalance
Aug 30, 2026
Merged

jackhai9 merged 2 commits into
mainfrom
codex/usdt-rebalance

Conversation

@jackhai9

Copy link
Copy Markdown
Owner

Summary

  • add an inline manual USDT rebalance action after global futures positions and open orders remain empty
  • calculate an exact 50/40/10 Funding, Spot, and U-M Futures allocation and submit at most two sequential transfers through the current Binance page BAPI
  • revalidate positions, orders, and balances before every transfer and report partial completion without retries or rollback
  • document the private BAPI contract and add unit/source regression coverage

Validation

  • npm test
  • npm run build:binance-orderbook-trade
  • npm run check:binance-orderbook-trade
  • git diff --check

Live evidence

  • current Binance transfer bundle builds { asset, amount, kindType } and calls /bapi/asset/v1/private/asset-service/wallet/transfer
  • current bundle uses MAIN, CARD, and FUTURE private-BAPI account codes
  • current bundle reads U-M transferable balance from /bapi/futures/v1/private/future/user-data/getMaxWithdrawAmount
  • no authenticated transfer was executed during verification

@jackhai9
jackhai9 merged commit 3883f15 into main Aug 30, 2026
1 check passed
@jackhai9
jackhai9 deleted the codex/usdt-rebalance branch August 30, 2026 12:06
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.

1 participant