Skip to content

totalAvailableBalance returns empty string even if accountType is UNIFIED #20948

@pastanorm

Description

@pastanorm

Operating System

Ubuntu

Programming Languages

JavaScript

CCXT Version

4.2.15

Description

I'm fetching result using fetchBalance but totalAvailableBalance returns empty string even if accountType is UNIFIED.
I upgraded accountType from CONTRACT to UNIFIED.
Here's fetch result.

Code

{
    "totalEquity": "56.91663832",
    "accountIMRate": "",
    "totalMarginBalance": "",
    "totalInitialMargin": "",
    "accountType": "UNIFIED",
    "totalAvailableBalance": "",
    "accountMMRate": "",
    "totalPerpUPL": "5.9584504",
    "totalWalletBalance": "50.95818792",
    "accountLTV": "",
    "totalMaintenanceMargin": "",
    "coin": [
        {
            "availableToBorrow": "",
            "bonus": "0",
            "accruedInterest": "0",
            "availableToWithdraw": "39.4074047",
            "totalOrderIM": "0",
            "equity": "56.9314405",
            "totalPositionMM": "0.4702608",
            "usdValue": "56.91663832",
            "unrealisedPnl": "5.96",
            "collateralSwitch": true,
            "spotHedgingQty": "0",
            "borrowAmount": "0",
            "totalPositionIM": "11.5640358",
            "walletBalance": "50.9714405",
            "cumRealisedPnl": "0.114117",
            "locked": "0",
            "marginCollateral": true,
            "coin": "USDT"
        }
    ]
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions