This repository has been archived on 2022-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
tacitus/gdax/request.go

18 lines
421 B
Go

package gdax
const Subscribe = RequestType("subscribe")
const Unsubscribe = RequestType("unsubscribe")
type RequestType string
type Request struct {
Type RequestType `json:"type"`
ProductIds []string `json:"product_ids,omitempty"`
Channels []Channel `json:"channels,omitempty"`
}
type Channel struct {
Name string `json:"name,omitempty"`
ProductIds []string `json:"product_ids,omitempty"`
}