ccxt / ccxt

A JavaScript / TypeScript / Python / C# / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
https://docs.ccxt.com
MIT License
33.39k stars 7.57k forks source link

Bitvavo watch_orders doesn't work #21390

Closed apollace closed 9 months ago

apollace commented 9 months ago

Operating System

Ubuntu 22.04

Programming Languages

Python

CCXT Version

ccxtpro 1.0.1 ccxt 4.2.48

Description

The watch_orders feature for Bitvavo is implemented but never returns.

Step to reproduce:

Can you help?

Code

  async def main():
    bitvavo_ordering = ccxt.pro.bitvavo({'enableRateLimit': True})

    bitvavo_ordering.apiKey = os.getenv("API_KEY")
    bitvavo_ordering.secret = os.getenv("API_SECRET")
    await bitvavo_ordering.authenticate()
    while True:
        orders = await bitvavo_ordering.watch_orders("BTC/EUR")
        print(orders)

if __name__ == "__main__":
    asyncio.run(main())
apollace commented 9 months ago

I looks like an issue with the authentication, the watch_ticker works without authentication, after the authentication however I observe the same issue.

sc0Vu commented 9 months ago

@apollace

Please remove await bitvavo_ordering.authenticate() from your code. We already call that in watch_orders.

apollace commented 9 months ago

it works, thanks for the help