Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Trade subscription get nothing #45

Closed
git85588 opened this issue Aug 17, 2024 · 2 comments
Closed

[BUG] Trade subscription get nothing #45

git85588 opened this issue Aug 17, 2024 · 2 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@git85588
Copy link

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 ?

@git85588 git85588 added the bug Something isn't working label Aug 17, 2024
Copy link

Message that will be displayed on users first issue

Copy link

stale bot commented Aug 28, 2024

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.

@stale stale bot added the wontfix This will not be worked on label Aug 28, 2024
@stale stale bot closed this as completed Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant