bbgo_origin/pkg/exchange/bitget/bitgetapi/v2/client.go

23 lines
439 B
Go
Raw Normal View History

2023-11-05 15:41:57 +00:00
package bitgetapi
import (
"github.com/c9s/requestgen"
"github.com/c9s/bbgo/pkg/exchange/bitget/bitgetapi"
)
2023-11-10 13:56:18 +00:00
const (
PrivateWebSocketURL = "wss://ws.bitget.com/v2/ws/private"
2024-08-12 15:07:32 +00:00
PublicWebSocketURL = "wss://ws.bitget.com/v2/ws/public"
2023-11-10 13:56:18 +00:00
)
2023-11-05 15:41:57 +00:00
type APIResponse = bitgetapi.APIResponse
type Client struct {
Client requestgen.AuthenticatedAPIClient
}
func NewClient(client *bitgetapi.RestClient) *Client {
return &Client{Client: client}
}