burakoner / OKX.Api

Up-to-date, most-complete, well-organized, well-documented, easy-to-use, multi-task and multi-thread compatible OKX Cryptocurrency Exchange Rest and Websocket Api Wrapper
MIT License
39 stars 15 forks source link

Account Balance cant be pulled anymore #57

Closed forReason closed 6 months ago

forReason commented 6 months ago

dont know if the issue is on okx side. I cannot pull the accout balance anymore. All fields are null, except for total equity, which is 0.000000000638

I checked the raw response which is the same, So I do not think it is a serialisation issue

{\"code\":\"0\",\"data\":[{\"adjEq\":\"\",\"borrowFroz\":\"\",\"details\":[],\"imr\":\"\",\"isoEq\":\"\",\"mgnRatio\":\"\",\"mmr\":\"\",\"notionalUsd\":\"\",\"ordFroz\":\"\",\"totalEq\":\"0.00000000638\",\"uTime\":\"1709155590789\",\"upl\":\"\"}],\"msg\":\"\"}"

burakoner commented 6 months ago

Hi. I've just tried to get balances and succeed. details field must return asset balance details you it is empty in your case. Maybe the problem is your low balance. I have a similar account and response is below

{"code":"0","data":[{"adjEq":"","borrowFroz":"","details":[{"availBal":"0.843","availEq":"0.843","borrowFroz":"","cashBal":"0.843","ccy":"SATS","crossLiab":"","disEq":"0.000000288756162","eq":"0.843","eqUsd":"0.00000048126027","fixedBal":"0","frozenBal":"0","imr":"0","interest":"","isoEq":"0","isoLiab":"","isoUpl":"0","liab":"","maxLoan":"","mgnRatio":"","mmr":"0","notionalLever":"0","ordFrozen":"0","rewardBal":"0","smtSyncEq":"0","spotInUseAmt":"","spotIsoBal":"0","stgyEq":"0","twap":"0","uTime":"1706854816154","upl":"0","uplLiab":""}],"imr":"","isoEq":"0","mgnRatio":"","mmr":"","notionalUsd":"","ordFroz":"","totalEq":"0.00000048126027","uTime":"1709206663475","upl":""}],"msg":""}

I guess there is a display limit between your balance and my balance

forReason commented 6 months ago

issue has been resolved. My account has been locked due to missing verification. During this process, all funds have been transferred from trading to funding account