mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-15 11:33:50 +00:00
23 lines
439 B
Go
23 lines
439 B
Go
package bitgetapi
|
|
|
|
import (
|
|
"github.com/c9s/requestgen"
|
|
|
|
"github.com/c9s/bbgo/pkg/exchange/bitget/bitgetapi"
|
|
)
|
|
|
|
const (
|
|
PrivateWebSocketURL = "wss://ws.bitget.com/v2/ws/private"
|
|
PublicWebSocketURL = "wss://ws.bitget.com/v2/ws/public"
|
|
)
|
|
|
|
type APIResponse = bitgetapi.APIResponse
|
|
|
|
type Client struct {
|
|
Client requestgen.AuthenticatedAPIClient
|
|
}
|
|
|
|
func NewClient(client *bitgetapi.RestClient) *Client {
|
|
return &Client{Client: client}
|
|
}
|