Skip to content

Instantly share code, notes, and snippets.

@artiya4u
Created July 31, 2024 15:36
Show Gist options
  • Save artiya4u/abe6427565d3fd764bc7c97137aa56eb to your computer and use it in GitHub Desktop.
Save artiya4u/abe6427565d3fd764bc7c97137aa56eb to your computer and use it in GitHub Desktop.
import asyncio
import ccxt.pro as ccxt
async def main():
exchange = ccxt.hyperliquid({'walletAddress': '0x0614d36e9ed9456817b209b3ed1e5d709c120dd5'})
while True:
trades = await exchange.watch_my_trades()
print('trades count:', len(trades))
# TODO Filter out old trades
# TODO Notify trades
if __name__ == '__main__':
asyncio.new_event_loop().run_until_complete(main())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment