mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 17:13:51 +00:00
18 lines
421 B
Go
18 lines
421 B
Go
package kucoinapi
|
|
|
|
import "encoding/json"
|
|
|
|
type WebSocketCommand struct {
|
|
Id int64 `json:"id"`
|
|
Type string `json:"type"`
|
|
Topic string `json:"topic"`
|
|
PrivateChannel bool `json:"privateChannel"`
|
|
Response bool `json:"response"`
|
|
}
|
|
|
|
func (c *WebSocketCommand) JSON() ([]byte, error) {
|
|
type tt WebSocketCommand
|
|
var a = (*tt)(c)
|
|
return json.Marshal(a)
|
|
}
|