Documentation
¶
Index ¶
- Constants
- func NewSpotSymbol(base, quote string) exchange.SpotSymbol
- func NewSwapSymbol(index string) exchange.SwapSymbol
- func ParseSwapSymbol(sym string) (exchange.SwapSymbol, error)
- func ParseTime(timestamp string) (time.Time, error)
- func SubscribeCB(channel string, cb ResponseParseCB)
- type CodeC
- type ResponseParseCB
- type RestClient
- type SpotSymbol
- type SwapSymbol
- type TradeFee
- type WSClient
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 NewSwapSymbol ¶
func NewSwapSymbol(index string) exchange.SwapSymbol
func ParseSwapSymbol ¶
func ParseSwapSymbol(sym string) (exchange.SwapSymbol, error)
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 SwapSymbol ¶
type SwapSymbol struct {
*exchange.BaseSwapSymbol
}
func (*SwapSymbol) String ¶
func (ss *SwapSymbol) 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.