Polymarket / py-clob-client

Python client for the Polymarket CLOB
MIT License
79 stars 27 forks source link

No information on how to increase allowance #95

Open vegardkd opened 2 months ago

vegardkd commented 2 months ago

When trading with the py client, there will be an error saying not enough balance / allowance for sums like 600 usdc, but 5 usdc is fine. It seems this has to do with the allowance limit. Are there any docs on how to increase/decrease it?

ArnaudBernaille commented 2 months ago

Same issue.

When I check my allowance:

params = BalanceAllowanceParams(asset_type=AssetType.COLLATERAL)
allowance = client.get_balance_allowance(params)

In the response, I see 0 for all the tokens. I do have USDC in my account. Maybe they only consider other coins...

hsz0403 commented 4 weeks ago

same here. any solutions?

fshabashev commented 4 weeks ago

https://gist.github.com/poly-rodr/44313920481de58d5a3f6d1f8226bd5e

they have this code to increase allowance. I can see that the allowance has increased for me, however the balance stays 0, no idea why.

prod-ric commented 3 weeks ago

Same here

Same issue.

When I check my allowance:

params = BalanceAllowanceParams(asset_type=AssetType.COLLATERAL)
allowance = client.get_balance_allowance(params)

In the response, I see 0 for all the tokens. I do have USDC in my account. Maybe they only consider other coins...

xakbel commented 3 weeks ago

Same

xakbel commented 3 weeks ago

https://gist.github.com/poly-rodr/44313920481de58d5a3f6d1f8226bd5e

they have this code to increase allowance. I can see that the allowance has increased for me, however the balance stays 0, no idea why.

Same problem. Still 0. Any help?

joachim23344 commented 1 week ago

I also have the same problem has this been solved already?

dineshtiwari69 commented 1 day ago

Not sure if this helps , but i had similar issue with balance and allowances showing 0 despite using

clob_client.update_balance_allowance( params=BalanceAllowanceParams(asset_type=AssetType.COLLATERAL) )

I managed to solve it by adding funder and signature_type arg in client init

clob_client = ClobClient(host, key=key, chain_id=chain_id,funder=address,signature_type=1)