Created
July 31, 2024 15:36
-
-
Save artiya4u/abe6427565d3fd764bc7c97137aa56eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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