16 lines
337 B
Go
16 lines
337 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
bybit "github.com/wuhewuhe/bybit.go.api"
|
|
)
|
|
|
|
func main() {
|
|
ws := bybit.NewBybitPrivateWebSocket("wss://stream-testnet.bybit.com/v5/private", "YOUR_API_KEY", "YOUR_API_SECRET", func(message string) error {
|
|
fmt.Println("Received:", message)
|
|
return nil
|
|
})
|
|
_ = ws.Connect([]string{"order"})
|
|
select {}
|
|
}
|