Skip to content
This repository was archived by the owner on May 25, 2026. It is now read-only.
This repository was archived by the owner on May 25, 2026. It is now read-only.

getBalanceAllowance returns 0  #128

Description

@Hiich

No matter what I try i am unable to update my balance.
I even set the approval directly on the contracts to allow all 3 exchange contracts, the wallet has both USDC and MATIC.

`
const host = "https://clob.polymarket.com";
const clobClient = new ClobClient(host, chainId, wallet, credentials);

// USDC
await clobClient.updateBalanceAllowance({ asset_type: AssetType.COLLATERAL });

// YES
await clobClient.updateBalanceAllowance({
    asset_type: AssetType.CONDITIONAL,
    token_id: "71321045679252212594626385532706912750332728571942532289631379312455583992563",
});

// NO
await clobClient.updateBalanceAllowance({
    asset_type: AssetType.CONDITIONAL,
    token_id: "52114319501245915516055106046884209969926127482827954674443846427813813222426",
});

const balanceAllowance = await clobClient.getBalanceAllowance({
    asset_type: AssetType.COLLATERAL,
});
console.log("🚀 ~ balanceAllowance:", balanceAllowance)`

I checked on the python repository and this issue seems common but still no fix has been provided. Desperately looking for a fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions