Hello,
I can't figure out which socket should I use so that my code below returns me the transactions and cancellations of several traders that I identify on binance.
Can someone help me please ?
import asyncio
import json
from binance import AsyncClient, BinanceSocketManager
async def user_listener(client):
bm = BinanceSocketManager(client)
async with bm.trade_socket('BTCUSD') as tscm:
while True:
res = await tscm.recv()
print(res)
Hello, I can't figure out which socket should I use so that my code below returns me the transactions and cancellations of several traders that I identify on binance. Can someone help me please ?
import asyncio import json
from binance import AsyncClient, BinanceSocketManager
async def user_listener(client): bm = BinanceSocketManager(client) async with bm.trade_socket('BTCUSD') as tscm: while True: res = await tscm.recv() print(res)
async def main():
if name == "main":