Skip to content

Commit

Permalink
added explicit call to close() in async-basic.py fix ccxt#2324
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Mar 21, 2018
1 parent 0d7bcd9 commit df9bc47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/py/async-basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

async def test_gdax():
gdax = ccxt.gdax()
return await gdax.load_markets()
markets = await gdax.load_markets()
await gdax.close ()
return markets


print(asyncio.get_event_loop().run_until_complete(test_gdax()))

0 comments on commit df9bc47

Please sign in to comment.