You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The built-in Binance strategy (app/strategies/.../BuiltInApiStrategies.kt, binance()) covers
deposits, withdrawals, fiat orders, fiat payments, convert and spot myTrades. Several endpoints that
move real balances are not covered at all. Verified against the live account behind the default
database (read-only probes):
3 conversions in Mar 2021, 3 in Jun 2022 (e.g. XRP 0.17015309 → BNB)
sapi/v1/asset/assetDividend
airdrops / distributions / referral payouts
empty on this account, but generally a balance source
Subscription/redemption pairs net out over a lifetime, so they matter less for the closing balance
than for the running balance and the timeline; rewards and dust conversions are genuine, unmatched
balance changes.
Notes / constraints found while probing
sapi/v1/asset/transfer and sapi/v1/accountSnapshot reject windows longer than 30 days
(-5026 Start time query records range is too large), so they need windowDays = 30, not the 90 used
by the crypto deposit/withdraw window.
sapi/v1/lending/union/purchaseRecord (legacy Savings) is dead — 405 This endpoint has been deprecated. Simple Earn replaces it; don't wire the old paths.
Simple Earn history reaches back to at least Nov 2020 on this account, i.e. far further back than
spot trade history does (see the companion issue about the unrecoverable pre-2022 trade history).
Earn subscriptions/redemptions are wallet-to-wallet moves within one exchange. Deciding whether they
become transfers to a separate "Binance Earn" account or are collapsed is a modelling call worth
making before implementing — a separate account keeps the spot balance honest against getUserAsset (see Reconcile exchange-reported balances against computed balances after an API import #759).
Should be config-only work in the strategy definition, apart from the 30-day window and whatever
modelling choice is made for the Earn wallet.
Problem
The built-in Binance strategy (
app/strategies/.../BuiltInApiStrategies.kt,binance()) coversdeposits, withdrawals, fiat orders, fiat payments, convert and spot
myTrades. Several endpoints thatmove real balances are not covered at all. Verified against the live account behind the default
database (read-only probes):
sapi/v1/simple-earn/flexible/history/subscriptionRecordsapi/v1/simple-earn/flexible/history/redemptionRecordsapi/v1/simple-earn/flexible/history/rewardsRecordsapi/v1/asset/dribbletsapi/v1/asset/assetDividendSubscription/redemption pairs net out over a lifetime, so they matter less for the closing balance
than for the running balance and the timeline; rewards and dust conversions are genuine, unmatched
balance changes.
Notes / constraints found while probing
sapi/v1/asset/transferandsapi/v1/accountSnapshotreject windows longer than 30 days(
-5026 Start time query records range is too large), so they needwindowDays = 30, not the 90 usedby the crypto deposit/withdraw window.
sapi/v1/lending/union/purchaseRecord(legacy Savings) is dead —405 This endpoint has been deprecated. Simple Earn replaces it; don't wire the old paths.spot trade history does (see the companion issue about the unrecoverable pre-2022 trade history).
become transfers to a separate "Binance Earn" account or are collapsed is a modelling call worth
making before implementing — a separate account keeps the spot balance honest against
getUserAsset(see Reconcile exchange-reported balances against computed balances after an API import #759).Should be config-only work in the strategy definition, apart from the 30-day window and whatever
modelling choice is made for the Earn wallet.