amir-the-h / okex

Golang API wrapper of OkEX
Apache License 2.0
100 stars 97 forks source link

[BUG] Trade subscription get nothing #45

Closed git85588 closed 1 week ago

git85588 commented 4 weeks ago

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 ?

github-actions[bot] commented 4 weeks ago

Message that will be displayed on users first issue

stale[bot] commented 2 weeks ago

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.