question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

watch balance spot gateio broken?

See original GitHub issue
  • OS: linux
  • Programming Language version: python 3.10
  • CCXT version: 1.0.91

Hello, I updated to latest ccxtpro version but I cannot use watch_balance for spot gateio anymore. I tried transfer and buy and it did not print any response. can you please check?

#pylint: disable=all
import asyncio
import ccxtpro
from pprint import pprint
import sys
sys.stdout = open('error.txt', 'w')
print(ccxtpro.__version__)


exchange: ccxtpro.Exchange = getattr(ccxtpro, 'gateio')({
    'enableRateLimit': True,
    'apiKey': '',
    'secret': '',
    'uid': '',
    'options': {
        'defaultType': 'spot'
    }
})
exchange.verbose=True
async def main():
    while True:
        response = await exchange.watch_balance()
        pprint(response)
    await exchange.close()

asyncio.run(main())

watch balance not working.txt

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
carlosmieicommented, May 27, 2022

@leastchaos JFYI I’ve just opened a PR upgrading it, just bear in mind that open orders will not trigger balance update until being partially or fully filled in Gateio (for instance open limit orders won’t trigger an update), so I’m not sure that this upgrade will address your needs completely

1reaction
kroitorcommented, Apr 23, 2022

but I cannot use watch_balance for spot gateio anymore

The balance should be updated when it changes, but i don’t see any changes to the balance in your log. Which specific steps you’re taking to reproduce it ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gate Spot WebSocketAPI v4 Reference | Gate API v4 - Gate.io
Gate.io provides a simple and robust Websocket API to integrate spot trade status into your business or application. We have language bindings in...
Read more >
Guide - Customer Support & Help Center | Gate.io
Click on "Spot Trading" under "Trade" on the top navigation bar. ... percentages under the "Amount" box refer to certain percentages of the...
Read more >
Gate API v4
Welcome to Gate.io API. APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, ...
Read more >
Daily News | The Silence Has Been Broken, Crypto Tanks ... - Gate.io
Note: On the daily timeframe, we can see that Bitcoin broke within the nearest support zone on the seventh session, but rebounded from...
Read more >
Spot & Margin - Customer Support & Help Center | Gate.io
6.About Advanced Option Criteria Settings: If the available balance of the coin is within the set range, the criterion is met. That is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found