Documentation ¶
Index ¶
Constants ¶
View Source
const ( OkexWSAddr = "wss://real.okex.com:8443/ws/v3" OkexTESTWSAddr = "wss://real.okex.com:8443/ws/v3?brokerId=9999" OKEX = "okex" )
Variables ¶
This section is empty.
Functions ¶
func NewSpotSymbol ¶
func NewSpotSymbol(base, quote string) exchange.SpotSymbol
func SubscribeCB ¶
func SubscribeCB(channel string, cb ResponseParseCB)
Types ¶
type CodeC ¶
type CodeC struct {
LastSUBID string //okex op fail do not return operate type. we have to record
}
type ResponseParseCB ¶
type RestClient ¶
type RestClient struct {
// contains filtered or unexported fields
}
func NewRestClient ¶
func NewRestClient(key, secret, passPhrase string) *RestClient
func NewTESTRestClient ¶
func NewTESTRestClient(key, secret, passPhrase string) *RestClient
type SpotSymbol ¶
type SpotSymbol struct {
*exchange.BaseSpotSymbol
}
func (*SpotSymbol) String ¶
func (ss *SpotSymbol) String() string
type WSClient ¶
type WSClient struct { *exchange.WSClient Key string Secret string PassPhrase string // contains filtered or unexported fields }
func NewTESTWSClient ¶
NewTESTWSClient return a wsclient for okex testnet
func NewWSClient ¶
Click to show internal directories.
Click to hide internal directories.