Closed git85588 closed 1 week ago
Message that will be displayed on users first issue
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
tradesCh := make(chan *public.Trades) err = client.Ws.Public.Trades(ws_public_requests.Trades{ InstID: "ETH-USDT-SWAP", }, tradesCh) if err != nil { log.Fatalln(err) }
case t := <-tradesCh: ch, := t.Arg.Get("channel") log.Printf("[Event]\t%s", ch) for , trade := range t.Trades { log.Printf("\t\tTrade\tPrice: %s, Size: %s, Side: %s", trade.Px, trade.Sz, trade.Side) }
I get nothing, how to fix it ? how can i get the ws public trade data ?