mexcWs

package module
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 13 Imported by: 0

README

MEXC WebSocket SDK for Go

A Go client for MEXC Spot WebSocket streams (public market data and user data), with protobuf and JSON message handling and channel-based subscriptions.

Features

  • Public streams: aggregated trades, klines, depth, book ticker
  • User data streams: account, order, trade updates
  • Auto listen key creation, keepalive, and close
  • Thread-safe subscribe/unsubscribe
  • Debug logging toggle

Install

go get github.com/farbodghasemlu/mexcWs@v0.2.1

Public streams quick start

package main

import (
    "log"

    mexcWs "github.com/farbodghasemlu/mexcWs"
)

func main() {
    client := mexcWs.NewClient("", "")
    client.SetDebug(true)
    defer client.Disconnect()

    if err := client.Connect(); err != nil {
        log.Fatal(err)
    }

    trades, err := client.SubscribeAggregatedTrades("BTCUSDT", "100ms")
    if err != nil {
        log.Fatal(err)
    }

    for trade := range trades {
        log.Printf("trade: %+v", trade)
    }
}

User data streams quick start

client := mexcWs.NewClient("API_KEY", "API_SECRET")
client.SetDebug(true)
if err := client.ConnectUserData(); err != nil {
    log.Fatal(err)
}

orders, err := client.SubscribeOrderUpdates()
if err != nil {
    log.Fatal(err)
}

for update := range orders {
    log.Printf("order update: %+v", update)
}

Notes

  • Subscriptions use buffered channels (size 100). If consumers are slow, messages may be dropped.
  • Call Disconnect() to close sockets and stop keepalive. It is safe to call more than once.
  • SetDebug(true) enables internal logging for troubleshooting.

Project layout

  • mexcWs.go: Client implementation and subscriptions.
  • proto/: protobuf definitions.
  • *.pb.go: generated protobuf types.
  • compile.sh: regenerates protobufs with protoc.

Package docs

License

See LICENSE.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_PrivateAccountV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PrivateDealsV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PrivateOrdersV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PublicAggreBookTickerV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PublicAggreDealsV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PublicAggreDepthsV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PublicBookTickerBatchV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PublicBookTickerV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PublicDealsV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PublicIncreaseDepthsBatchV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PublicIncreaseDepthsV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PublicLimitDepthsV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PublicMiniTickerV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PublicMiniTickersV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PublicSpotKlineV3Api_proto protoreflect.FileDescriptor
View Source
var File_proto_PushDataV3ApiWrapper_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client represents a MEXC WebSocket client

func NewClient

func NewClient(apiKey, secretKey string) *Client

NewClient creates a new MEXC WebSocket client

func (*Client) CloseListenKey

func (c *Client) CloseListenKey() error

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) ConnectUserData

func (c *Client) ConnectUserData() error

func (*Client) Disconnect

func (c *Client) Disconnect()

func (*Client) SetDebug

func (c *Client) SetDebug(enable bool)

SetDebug enables or disables debug logging

func (*Client) SubscribeAccountUpdates

func (c *Client) SubscribeAccountUpdates() (<-chan *PrivateAccountV3Api, error)

SubscribeAccountUpdates subscribes to account updates

func (*Client) SubscribeAggregatedTrades

func (c *Client) SubscribeAggregatedTrades(symbol string, interval string) (<-chan *PublicDealsV3Api, error)

SubscribeAggregatedTrades subscribes to the aggregated trades channel

func (*Client) SubscribeBookTicker

func (c *Client) SubscribeBookTicker(symbol string, interval string) (<-chan *PublicBookTickerV3Api, error)

SubscribeBookTicker subscribes to the individual symbol book ticker channel

func (*Client) SubscribeDiffDepth

func (c *Client) SubscribeDiffDepth(symbol string, interval string) (<-chan *PublicIncreaseDepthsV3Api, error)

SubscribeDiffDepth subscribes to the diff depth channel

func (*Client) SubscribeKline

func (c *Client) SubscribeKline(symbol string, interval string) (<-chan *PublicSpotKlineV3Api, error)

SubscribeKline subscribes to the kline/candlestick channel

func (*Client) SubscribeLimitDepth

func (c *Client) SubscribeLimitDepth(symbol string, levels int) (<-chan *PublicLimitDepthsV3Api, error)

SubscribeLimitDepth subscribes to the limited order book depth channel

func (*Client) SubscribeOrderUpdates

func (c *Client) SubscribeOrderUpdates() (<-chan *PrivateOrdersV3Api, error)

SubscribeOrderUpdates subscribes to order updates

func (*Client) SubscribeTradeUpdates

func (c *Client) SubscribeTradeUpdates() (<-chan *PrivateDealsV3Api, error)

SubscribeTradeUpdates subscribes to trade updates

func (*Client) Unsubscribe

func (c *Client) Unsubscribe(channel string) error

Unsubscribe from a channel

type PrivateAccountV3Api

type PrivateAccountV3Api struct {
	VcoinName           string `protobuf:"bytes,1,opt,name=vcoinName,proto3" json:"vcoinName,omitempty"`
	CoinId              string `protobuf:"bytes,2,opt,name=coinId,proto3" json:"coinId,omitempty"`
	BalanceAmount       string `protobuf:"bytes,3,opt,name=balanceAmount,proto3" json:"balanceAmount,omitempty"`
	BalanceAmountChange string `protobuf:"bytes,4,opt,name=balanceAmountChange,proto3" json:"balanceAmountChange,omitempty"`
	FrozenAmount        string `protobuf:"bytes,5,opt,name=frozenAmount,proto3" json:"frozenAmount,omitempty"`
	FrozenAmountChange  string `protobuf:"bytes,6,opt,name=frozenAmountChange,proto3" json:"frozenAmountChange,omitempty"`
	Type                string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
	Time                int64  `protobuf:"varint,8,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivateAccountV3Api) Descriptor deprecated

func (*PrivateAccountV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PrivateAccountV3Api.ProtoReflect.Descriptor instead.

func (*PrivateAccountV3Api) GetBalanceAmount

func (x *PrivateAccountV3Api) GetBalanceAmount() string

func (*PrivateAccountV3Api) GetBalanceAmountChange

func (x *PrivateAccountV3Api) GetBalanceAmountChange() string

func (*PrivateAccountV3Api) GetCoinId

func (x *PrivateAccountV3Api) GetCoinId() string

func (*PrivateAccountV3Api) GetFrozenAmount

func (x *PrivateAccountV3Api) GetFrozenAmount() string

func (*PrivateAccountV3Api) GetFrozenAmountChange

func (x *PrivateAccountV3Api) GetFrozenAmountChange() string

func (*PrivateAccountV3Api) GetTime

func (x *PrivateAccountV3Api) GetTime() int64

func (*PrivateAccountV3Api) GetType

func (x *PrivateAccountV3Api) GetType() string

func (*PrivateAccountV3Api) GetVcoinName

func (x *PrivateAccountV3Api) GetVcoinName() string

func (*PrivateAccountV3Api) ProtoMessage

func (*PrivateAccountV3Api) ProtoMessage()

func (*PrivateAccountV3Api) ProtoReflect

func (x *PrivateAccountV3Api) ProtoReflect() protoreflect.Message

func (*PrivateAccountV3Api) Reset

func (x *PrivateAccountV3Api) Reset()

func (*PrivateAccountV3Api) String

func (x *PrivateAccountV3Api) String() string

type PrivateDealsV3Api

type PrivateDealsV3Api struct {
	Price         string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	Quantity      string `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Amount        string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	TradeType     int32  `protobuf:"varint,4,opt,name=tradeType,proto3" json:"tradeType,omitempty"`
	IsMaker       bool   `protobuf:"varint,5,opt,name=isMaker,proto3" json:"isMaker,omitempty"`
	IsSelfTrade   bool   `protobuf:"varint,6,opt,name=isSelfTrade,proto3" json:"isSelfTrade,omitempty"`
	TradeId       string `protobuf:"bytes,7,opt,name=tradeId,proto3" json:"tradeId,omitempty"`
	ClientOrderId string `protobuf:"bytes,8,opt,name=clientOrderId,proto3" json:"clientOrderId,omitempty"`
	OrderId       string `protobuf:"bytes,9,opt,name=orderId,proto3" json:"orderId,omitempty"`
	FeeAmount     string `protobuf:"bytes,10,opt,name=feeAmount,proto3" json:"feeAmount,omitempty"`
	FeeCurrency   string `protobuf:"bytes,11,opt,name=feeCurrency,proto3" json:"feeCurrency,omitempty"`
	Time          int64  `protobuf:"varint,12,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivateDealsV3Api) Descriptor deprecated

func (*PrivateDealsV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PrivateDealsV3Api.ProtoReflect.Descriptor instead.

func (*PrivateDealsV3Api) GetAmount

func (x *PrivateDealsV3Api) GetAmount() string

func (*PrivateDealsV3Api) GetClientOrderId

func (x *PrivateDealsV3Api) GetClientOrderId() string

func (*PrivateDealsV3Api) GetFeeAmount

func (x *PrivateDealsV3Api) GetFeeAmount() string

func (*PrivateDealsV3Api) GetFeeCurrency

func (x *PrivateDealsV3Api) GetFeeCurrency() string

func (*PrivateDealsV3Api) GetIsMaker

func (x *PrivateDealsV3Api) GetIsMaker() bool

func (*PrivateDealsV3Api) GetIsSelfTrade

func (x *PrivateDealsV3Api) GetIsSelfTrade() bool

func (*PrivateDealsV3Api) GetOrderId

func (x *PrivateDealsV3Api) GetOrderId() string

func (*PrivateDealsV3Api) GetPrice

func (x *PrivateDealsV3Api) GetPrice() string

func (*PrivateDealsV3Api) GetQuantity

func (x *PrivateDealsV3Api) GetQuantity() string

func (*PrivateDealsV3Api) GetTime

func (x *PrivateDealsV3Api) GetTime() int64

func (*PrivateDealsV3Api) GetTradeId

func (x *PrivateDealsV3Api) GetTradeId() string

func (*PrivateDealsV3Api) GetTradeType

func (x *PrivateDealsV3Api) GetTradeType() int32

func (*PrivateDealsV3Api) ProtoMessage

func (*PrivateDealsV3Api) ProtoMessage()

func (*PrivateDealsV3Api) ProtoReflect

func (x *PrivateDealsV3Api) ProtoReflect() protoreflect.Message

func (*PrivateDealsV3Api) Reset

func (x *PrivateDealsV3Api) Reset()

func (*PrivateDealsV3Api) String

func (x *PrivateDealsV3Api) String() string

type PrivateOrdersV3Api

type PrivateOrdersV3Api struct {
	Id                 string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ClientId           string  `protobuf:"bytes,2,opt,name=clientId,proto3" json:"clientId,omitempty"`
	Price              string  `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"`
	Quantity           string  `protobuf:"bytes,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Amount             string  `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"`
	AvgPrice           string  `protobuf:"bytes,6,opt,name=avgPrice,proto3" json:"avgPrice,omitempty"`
	OrderType          int32   `protobuf:"varint,7,opt,name=orderType,proto3" json:"orderType,omitempty"`
	TradeType          int32   `protobuf:"varint,8,opt,name=tradeType,proto3" json:"tradeType,omitempty"`
	IsMaker            bool    `protobuf:"varint,9,opt,name=isMaker,proto3" json:"isMaker,omitempty"`
	RemainAmount       string  `protobuf:"bytes,10,opt,name=remainAmount,proto3" json:"remainAmount,omitempty"`
	RemainQuantity     string  `protobuf:"bytes,11,opt,name=remainQuantity,proto3" json:"remainQuantity,omitempty"`
	LastDealQuantity   *string `protobuf:"bytes,12,opt,name=lastDealQuantity,proto3,oneof" json:"lastDealQuantity,omitempty"`
	CumulativeQuantity string  `protobuf:"bytes,13,opt,name=cumulativeQuantity,proto3" json:"cumulativeQuantity,omitempty"`
	CumulativeAmount   string  `protobuf:"bytes,14,opt,name=cumulativeAmount,proto3" json:"cumulativeAmount,omitempty"`
	Status             int32   `protobuf:"varint,15,opt,name=status,proto3" json:"status,omitempty"`
	CreateTime         int64   `protobuf:"varint,16,opt,name=createTime,proto3" json:"createTime,omitempty"`
	Market             *string `protobuf:"bytes,17,opt,name=market,proto3,oneof" json:"market,omitempty"`
	TriggerType        *int32  `protobuf:"varint,18,opt,name=triggerType,proto3,oneof" json:"triggerType,omitempty"`
	TriggerPrice       *string `protobuf:"bytes,19,opt,name=triggerPrice,proto3,oneof" json:"triggerPrice,omitempty"`
	State              *int32  `protobuf:"varint,20,opt,name=state,proto3,oneof" json:"state,omitempty"`
	OcoId              *string `protobuf:"bytes,21,opt,name=ocoId,proto3,oneof" json:"ocoId,omitempty"`
	RouteFactor        *string `protobuf:"bytes,22,opt,name=routeFactor,proto3,oneof" json:"routeFactor,omitempty"`
	SymbolId           *string `protobuf:"bytes,23,opt,name=symbolId,proto3,oneof" json:"symbolId,omitempty"`
	MarketId           *string `protobuf:"bytes,24,opt,name=marketId,proto3,oneof" json:"marketId,omitempty"`
	MarketCurrencyId   *string `protobuf:"bytes,25,opt,name=marketCurrencyId,proto3,oneof" json:"marketCurrencyId,omitempty"`
	CurrencyId         *string `protobuf:"bytes,26,opt,name=currencyId,proto3,oneof" json:"currencyId,omitempty"`
	// contains filtered or unexported fields
}

func (*PrivateOrdersV3Api) Descriptor deprecated

func (*PrivateOrdersV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PrivateOrdersV3Api.ProtoReflect.Descriptor instead.

func (*PrivateOrdersV3Api) GetAmount

func (x *PrivateOrdersV3Api) GetAmount() string

func (*PrivateOrdersV3Api) GetAvgPrice

func (x *PrivateOrdersV3Api) GetAvgPrice() string

func (*PrivateOrdersV3Api) GetClientId

func (x *PrivateOrdersV3Api) GetClientId() string

func (*PrivateOrdersV3Api) GetCreateTime

func (x *PrivateOrdersV3Api) GetCreateTime() int64

func (*PrivateOrdersV3Api) GetCumulativeAmount

func (x *PrivateOrdersV3Api) GetCumulativeAmount() string

func (*PrivateOrdersV3Api) GetCumulativeQuantity

func (x *PrivateOrdersV3Api) GetCumulativeQuantity() string

func (*PrivateOrdersV3Api) GetCurrencyId

func (x *PrivateOrdersV3Api) GetCurrencyId() string

func (*PrivateOrdersV3Api) GetId

func (x *PrivateOrdersV3Api) GetId() string

func (*PrivateOrdersV3Api) GetIsMaker

func (x *PrivateOrdersV3Api) GetIsMaker() bool

func (*PrivateOrdersV3Api) GetLastDealQuantity

func (x *PrivateOrdersV3Api) GetLastDealQuantity() string

func (*PrivateOrdersV3Api) GetMarket

func (x *PrivateOrdersV3Api) GetMarket() string

func (*PrivateOrdersV3Api) GetMarketCurrencyId

func (x *PrivateOrdersV3Api) GetMarketCurrencyId() string

func (*PrivateOrdersV3Api) GetMarketId

func (x *PrivateOrdersV3Api) GetMarketId() string

func (*PrivateOrdersV3Api) GetOcoId

func (x *PrivateOrdersV3Api) GetOcoId() string

func (*PrivateOrdersV3Api) GetOrderType

func (x *PrivateOrdersV3Api) GetOrderType() int32

func (*PrivateOrdersV3Api) GetPrice

func (x *PrivateOrdersV3Api) GetPrice() string

func (*PrivateOrdersV3Api) GetQuantity

func (x *PrivateOrdersV3Api) GetQuantity() string

func (*PrivateOrdersV3Api) GetRemainAmount

func (x *PrivateOrdersV3Api) GetRemainAmount() string

func (*PrivateOrdersV3Api) GetRemainQuantity

func (x *PrivateOrdersV3Api) GetRemainQuantity() string

func (*PrivateOrdersV3Api) GetRouteFactor

func (x *PrivateOrdersV3Api) GetRouteFactor() string

func (*PrivateOrdersV3Api) GetState

func (x *PrivateOrdersV3Api) GetState() int32

func (*PrivateOrdersV3Api) GetStatus

func (x *PrivateOrdersV3Api) GetStatus() int32

func (*PrivateOrdersV3Api) GetSymbolId

func (x *PrivateOrdersV3Api) GetSymbolId() string

func (*PrivateOrdersV3Api) GetTradeType

func (x *PrivateOrdersV3Api) GetTradeType() int32

func (*PrivateOrdersV3Api) GetTriggerPrice

func (x *PrivateOrdersV3Api) GetTriggerPrice() string

func (*PrivateOrdersV3Api) GetTriggerType

func (x *PrivateOrdersV3Api) GetTriggerType() int32

func (*PrivateOrdersV3Api) ProtoMessage

func (*PrivateOrdersV3Api) ProtoMessage()

func (*PrivateOrdersV3Api) ProtoReflect

func (x *PrivateOrdersV3Api) ProtoReflect() protoreflect.Message

func (*PrivateOrdersV3Api) Reset

func (x *PrivateOrdersV3Api) Reset()

func (*PrivateOrdersV3Api) String

func (x *PrivateOrdersV3Api) String() string

type PublicAggreBookTickerV3Api

type PublicAggreBookTickerV3Api struct {
	BidPrice    string `protobuf:"bytes,1,opt,name=bidPrice,proto3" json:"bidPrice,omitempty"`
	BidQuantity string `protobuf:"bytes,2,opt,name=bidQuantity,proto3" json:"bidQuantity,omitempty"`
	AskPrice    string `protobuf:"bytes,3,opt,name=askPrice,proto3" json:"askPrice,omitempty"`
	AskQuantity string `protobuf:"bytes,4,opt,name=askQuantity,proto3" json:"askQuantity,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicAggreBookTickerV3Api) Descriptor deprecated

func (*PublicAggreBookTickerV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PublicAggreBookTickerV3Api.ProtoReflect.Descriptor instead.

func (*PublicAggreBookTickerV3Api) GetAskPrice

func (x *PublicAggreBookTickerV3Api) GetAskPrice() string

func (*PublicAggreBookTickerV3Api) GetAskQuantity

func (x *PublicAggreBookTickerV3Api) GetAskQuantity() string

func (*PublicAggreBookTickerV3Api) GetBidPrice

func (x *PublicAggreBookTickerV3Api) GetBidPrice() string

func (*PublicAggreBookTickerV3Api) GetBidQuantity

func (x *PublicAggreBookTickerV3Api) GetBidQuantity() string

func (*PublicAggreBookTickerV3Api) ProtoMessage

func (*PublicAggreBookTickerV3Api) ProtoMessage()

func (*PublicAggreBookTickerV3Api) ProtoReflect

func (*PublicAggreBookTickerV3Api) Reset

func (x *PublicAggreBookTickerV3Api) Reset()

func (*PublicAggreBookTickerV3Api) String

func (x *PublicAggreBookTickerV3Api) String() string

type PublicAggreDealsV3Api

type PublicAggreDealsV3Api struct {
	Deals     []*PublicAggreDealsV3ApiItem `protobuf:"bytes,1,rep,name=deals,proto3" json:"deals,omitempty"`
	EventType string                       `protobuf:"bytes,2,opt,name=eventType,proto3" json:"eventType,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicAggreDealsV3Api) Descriptor deprecated

func (*PublicAggreDealsV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PublicAggreDealsV3Api.ProtoReflect.Descriptor instead.

func (*PublicAggreDealsV3Api) GetDeals

func (*PublicAggreDealsV3Api) GetEventType

func (x *PublicAggreDealsV3Api) GetEventType() string

func (*PublicAggreDealsV3Api) ProtoMessage

func (*PublicAggreDealsV3Api) ProtoMessage()

func (*PublicAggreDealsV3Api) ProtoReflect

func (x *PublicAggreDealsV3Api) ProtoReflect() protoreflect.Message

func (*PublicAggreDealsV3Api) Reset

func (x *PublicAggreDealsV3Api) Reset()

func (*PublicAggreDealsV3Api) String

func (x *PublicAggreDealsV3Api) String() string

type PublicAggreDealsV3ApiItem

type PublicAggreDealsV3ApiItem struct {
	Price     string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	Quantity  string `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	TradeType int32  `protobuf:"varint,3,opt,name=tradeType,proto3" json:"tradeType,omitempty"`
	Time      int64  `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicAggreDealsV3ApiItem) Descriptor deprecated

func (*PublicAggreDealsV3ApiItem) Descriptor() ([]byte, []int)

Deprecated: Use PublicAggreDealsV3ApiItem.ProtoReflect.Descriptor instead.

func (*PublicAggreDealsV3ApiItem) GetPrice

func (x *PublicAggreDealsV3ApiItem) GetPrice() string

func (*PublicAggreDealsV3ApiItem) GetQuantity

func (x *PublicAggreDealsV3ApiItem) GetQuantity() string

func (*PublicAggreDealsV3ApiItem) GetTime

func (x *PublicAggreDealsV3ApiItem) GetTime() int64

func (*PublicAggreDealsV3ApiItem) GetTradeType

func (x *PublicAggreDealsV3ApiItem) GetTradeType() int32

func (*PublicAggreDealsV3ApiItem) ProtoMessage

func (*PublicAggreDealsV3ApiItem) ProtoMessage()

func (*PublicAggreDealsV3ApiItem) ProtoReflect

func (*PublicAggreDealsV3ApiItem) Reset

func (x *PublicAggreDealsV3ApiItem) Reset()

func (*PublicAggreDealsV3ApiItem) String

func (x *PublicAggreDealsV3ApiItem) String() string

type PublicAggreDepthV3ApiItem

type PublicAggreDepthV3ApiItem struct {
	Price    string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	Quantity string `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicAggreDepthV3ApiItem) Descriptor deprecated

func (*PublicAggreDepthV3ApiItem) Descriptor() ([]byte, []int)

Deprecated: Use PublicAggreDepthV3ApiItem.ProtoReflect.Descriptor instead.

func (*PublicAggreDepthV3ApiItem) GetPrice

func (x *PublicAggreDepthV3ApiItem) GetPrice() string

func (*PublicAggreDepthV3ApiItem) GetQuantity

func (x *PublicAggreDepthV3ApiItem) GetQuantity() string

func (*PublicAggreDepthV3ApiItem) ProtoMessage

func (*PublicAggreDepthV3ApiItem) ProtoMessage()

func (*PublicAggreDepthV3ApiItem) ProtoReflect

func (*PublicAggreDepthV3ApiItem) Reset

func (x *PublicAggreDepthV3ApiItem) Reset()

func (*PublicAggreDepthV3ApiItem) String

func (x *PublicAggreDepthV3ApiItem) String() string

type PublicAggreDepthsV3Api

type PublicAggreDepthsV3Api struct {
	Asks        []*PublicAggreDepthV3ApiItem `protobuf:"bytes,1,rep,name=asks,proto3" json:"asks,omitempty"`
	Bids        []*PublicAggreDepthV3ApiItem `protobuf:"bytes,2,rep,name=bids,proto3" json:"bids,omitempty"`
	EventType   string                       `protobuf:"bytes,3,opt,name=eventType,proto3" json:"eventType,omitempty"`
	FromVersion string                       `protobuf:"bytes,4,opt,name=fromVersion,proto3" json:"fromVersion,omitempty"`
	ToVersion   string                       `protobuf:"bytes,5,opt,name=toVersion,proto3" json:"toVersion,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicAggreDepthsV3Api) Descriptor deprecated

func (*PublicAggreDepthsV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PublicAggreDepthsV3Api.ProtoReflect.Descriptor instead.

func (*PublicAggreDepthsV3Api) GetAsks

func (*PublicAggreDepthsV3Api) GetBids

func (*PublicAggreDepthsV3Api) GetEventType

func (x *PublicAggreDepthsV3Api) GetEventType() string

func (*PublicAggreDepthsV3Api) GetFromVersion

func (x *PublicAggreDepthsV3Api) GetFromVersion() string

func (*PublicAggreDepthsV3Api) GetToVersion

func (x *PublicAggreDepthsV3Api) GetToVersion() string

func (*PublicAggreDepthsV3Api) ProtoMessage

func (*PublicAggreDepthsV3Api) ProtoMessage()

func (*PublicAggreDepthsV3Api) ProtoReflect

func (x *PublicAggreDepthsV3Api) ProtoReflect() protoreflect.Message

func (*PublicAggreDepthsV3Api) Reset

func (x *PublicAggreDepthsV3Api) Reset()

func (*PublicAggreDepthsV3Api) String

func (x *PublicAggreDepthsV3Api) String() string

type PublicBookTickerBatchV3Api

type PublicBookTickerBatchV3Api struct {
	Items []*PublicBookTickerV3Api `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicBookTickerBatchV3Api) Descriptor deprecated

func (*PublicBookTickerBatchV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PublicBookTickerBatchV3Api.ProtoReflect.Descriptor instead.

func (*PublicBookTickerBatchV3Api) GetItems

func (*PublicBookTickerBatchV3Api) ProtoMessage

func (*PublicBookTickerBatchV3Api) ProtoMessage()

func (*PublicBookTickerBatchV3Api) ProtoReflect

func (*PublicBookTickerBatchV3Api) Reset

func (x *PublicBookTickerBatchV3Api) Reset()

func (*PublicBookTickerBatchV3Api) String

func (x *PublicBookTickerBatchV3Api) String() string

type PublicBookTickerV3Api

type PublicBookTickerV3Api struct {
	BidPrice    string `protobuf:"bytes,1,opt,name=bidPrice,proto3" json:"bidPrice,omitempty"`
	BidQuantity string `protobuf:"bytes,2,opt,name=bidQuantity,proto3" json:"bidQuantity,omitempty"`
	AskPrice    string `protobuf:"bytes,3,opt,name=askPrice,proto3" json:"askPrice,omitempty"`
	AskQuantity string `protobuf:"bytes,4,opt,name=askQuantity,proto3" json:"askQuantity,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicBookTickerV3Api) Descriptor deprecated

func (*PublicBookTickerV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PublicBookTickerV3Api.ProtoReflect.Descriptor instead.

func (*PublicBookTickerV3Api) GetAskPrice

func (x *PublicBookTickerV3Api) GetAskPrice() string

func (*PublicBookTickerV3Api) GetAskQuantity

func (x *PublicBookTickerV3Api) GetAskQuantity() string

func (*PublicBookTickerV3Api) GetBidPrice

func (x *PublicBookTickerV3Api) GetBidPrice() string

func (*PublicBookTickerV3Api) GetBidQuantity

func (x *PublicBookTickerV3Api) GetBidQuantity() string

func (*PublicBookTickerV3Api) ProtoMessage

func (*PublicBookTickerV3Api) ProtoMessage()

func (*PublicBookTickerV3Api) ProtoReflect

func (x *PublicBookTickerV3Api) ProtoReflect() protoreflect.Message

func (*PublicBookTickerV3Api) Reset

func (x *PublicBookTickerV3Api) Reset()

func (*PublicBookTickerV3Api) String

func (x *PublicBookTickerV3Api) String() string

type PublicDealsV3Api

type PublicDealsV3Api struct {
	Deals     []*PublicDealsV3ApiItem `protobuf:"bytes,1,rep,name=deals,proto3" json:"deals,omitempty"`
	EventType string                  `protobuf:"bytes,2,opt,name=eventType,proto3" json:"eventType,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicDealsV3Api) Descriptor deprecated

func (*PublicDealsV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PublicDealsV3Api.ProtoReflect.Descriptor instead.

func (*PublicDealsV3Api) GetDeals

func (x *PublicDealsV3Api) GetDeals() []*PublicDealsV3ApiItem

func (*PublicDealsV3Api) GetEventType

func (x *PublicDealsV3Api) GetEventType() string

func (*PublicDealsV3Api) ProtoMessage

func (*PublicDealsV3Api) ProtoMessage()

func (*PublicDealsV3Api) ProtoReflect

func (x *PublicDealsV3Api) ProtoReflect() protoreflect.Message

func (*PublicDealsV3Api) Reset

func (x *PublicDealsV3Api) Reset()

func (*PublicDealsV3Api) String

func (x *PublicDealsV3Api) String() string

type PublicDealsV3ApiItem

type PublicDealsV3ApiItem struct {
	Price     string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	Quantity  string `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	TradeType int32  `protobuf:"varint,3,opt,name=tradeType,proto3" json:"tradeType,omitempty"`
	Time      int64  `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicDealsV3ApiItem) Descriptor deprecated

func (*PublicDealsV3ApiItem) Descriptor() ([]byte, []int)

Deprecated: Use PublicDealsV3ApiItem.ProtoReflect.Descriptor instead.

func (*PublicDealsV3ApiItem) GetPrice

func (x *PublicDealsV3ApiItem) GetPrice() string

func (*PublicDealsV3ApiItem) GetQuantity

func (x *PublicDealsV3ApiItem) GetQuantity() string

func (*PublicDealsV3ApiItem) GetTime

func (x *PublicDealsV3ApiItem) GetTime() int64

func (*PublicDealsV3ApiItem) GetTradeType

func (x *PublicDealsV3ApiItem) GetTradeType() int32

func (*PublicDealsV3ApiItem) ProtoMessage

func (*PublicDealsV3ApiItem) ProtoMessage()

func (*PublicDealsV3ApiItem) ProtoReflect

func (x *PublicDealsV3ApiItem) ProtoReflect() protoreflect.Message

func (*PublicDealsV3ApiItem) Reset

func (x *PublicDealsV3ApiItem) Reset()

func (*PublicDealsV3ApiItem) String

func (x *PublicDealsV3ApiItem) String() string

type PublicIncreaseDepthV3ApiItem

type PublicIncreaseDepthV3ApiItem struct {
	Price    string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	Quantity string `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicIncreaseDepthV3ApiItem) Descriptor deprecated

func (*PublicIncreaseDepthV3ApiItem) Descriptor() ([]byte, []int)

Deprecated: Use PublicIncreaseDepthV3ApiItem.ProtoReflect.Descriptor instead.

func (*PublicIncreaseDepthV3ApiItem) GetPrice

func (x *PublicIncreaseDepthV3ApiItem) GetPrice() string

func (*PublicIncreaseDepthV3ApiItem) GetQuantity

func (x *PublicIncreaseDepthV3ApiItem) GetQuantity() string

func (*PublicIncreaseDepthV3ApiItem) ProtoMessage

func (*PublicIncreaseDepthV3ApiItem) ProtoMessage()

func (*PublicIncreaseDepthV3ApiItem) ProtoReflect

func (*PublicIncreaseDepthV3ApiItem) Reset

func (x *PublicIncreaseDepthV3ApiItem) Reset()

func (*PublicIncreaseDepthV3ApiItem) String

type PublicIncreaseDepthsBatchV3Api

type PublicIncreaseDepthsBatchV3Api struct {
	Items     []*PublicIncreaseDepthsV3Api `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	EventType string                       `protobuf:"bytes,2,opt,name=eventType,proto3" json:"eventType,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicIncreaseDepthsBatchV3Api) Descriptor deprecated

func (*PublicIncreaseDepthsBatchV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PublicIncreaseDepthsBatchV3Api.ProtoReflect.Descriptor instead.

func (*PublicIncreaseDepthsBatchV3Api) GetEventType

func (x *PublicIncreaseDepthsBatchV3Api) GetEventType() string

func (*PublicIncreaseDepthsBatchV3Api) GetItems

func (*PublicIncreaseDepthsBatchV3Api) ProtoMessage

func (*PublicIncreaseDepthsBatchV3Api) ProtoMessage()

func (*PublicIncreaseDepthsBatchV3Api) ProtoReflect

func (*PublicIncreaseDepthsBatchV3Api) Reset

func (x *PublicIncreaseDepthsBatchV3Api) Reset()

func (*PublicIncreaseDepthsBatchV3Api) String

type PublicIncreaseDepthsV3Api

type PublicIncreaseDepthsV3Api struct {
	Asks      []*PublicIncreaseDepthV3ApiItem `protobuf:"bytes,1,rep,name=asks,proto3" json:"asks,omitempty"`
	Bids      []*PublicIncreaseDepthV3ApiItem `protobuf:"bytes,2,rep,name=bids,proto3" json:"bids,omitempty"`
	EventType string                          `protobuf:"bytes,3,opt,name=eventType,proto3" json:"eventType,omitempty"`
	Version   string                          `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicIncreaseDepthsV3Api) Descriptor deprecated

func (*PublicIncreaseDepthsV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PublicIncreaseDepthsV3Api.ProtoReflect.Descriptor instead.

func (*PublicIncreaseDepthsV3Api) GetAsks

func (*PublicIncreaseDepthsV3Api) GetBids

func (*PublicIncreaseDepthsV3Api) GetEventType

func (x *PublicIncreaseDepthsV3Api) GetEventType() string

func (*PublicIncreaseDepthsV3Api) GetVersion

func (x *PublicIncreaseDepthsV3Api) GetVersion() string

func (*PublicIncreaseDepthsV3Api) ProtoMessage

func (*PublicIncreaseDepthsV3Api) ProtoMessage()

func (*PublicIncreaseDepthsV3Api) ProtoReflect

func (*PublicIncreaseDepthsV3Api) Reset

func (x *PublicIncreaseDepthsV3Api) Reset()

func (*PublicIncreaseDepthsV3Api) String

func (x *PublicIncreaseDepthsV3Api) String() string

type PublicLimitDepthV3ApiItem

type PublicLimitDepthV3ApiItem struct {
	Price    string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	Quantity string `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicLimitDepthV3ApiItem) Descriptor deprecated

func (*PublicLimitDepthV3ApiItem) Descriptor() ([]byte, []int)

Deprecated: Use PublicLimitDepthV3ApiItem.ProtoReflect.Descriptor instead.

func (*PublicLimitDepthV3ApiItem) GetPrice

func (x *PublicLimitDepthV3ApiItem) GetPrice() string

func (*PublicLimitDepthV3ApiItem) GetQuantity

func (x *PublicLimitDepthV3ApiItem) GetQuantity() string

func (*PublicLimitDepthV3ApiItem) ProtoMessage

func (*PublicLimitDepthV3ApiItem) ProtoMessage()

func (*PublicLimitDepthV3ApiItem) ProtoReflect

func (*PublicLimitDepthV3ApiItem) Reset

func (x *PublicLimitDepthV3ApiItem) Reset()

func (*PublicLimitDepthV3ApiItem) String

func (x *PublicLimitDepthV3ApiItem) String() string

type PublicLimitDepthsV3Api

type PublicLimitDepthsV3Api struct {
	Asks      []*PublicLimitDepthV3ApiItem `protobuf:"bytes,1,rep,name=asks,proto3" json:"asks,omitempty"`
	Bids      []*PublicLimitDepthV3ApiItem `protobuf:"bytes,2,rep,name=bids,proto3" json:"bids,omitempty"`
	EventType string                       `protobuf:"bytes,3,opt,name=eventType,proto3" json:"eventType,omitempty"`
	Version   string                       `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicLimitDepthsV3Api) Descriptor deprecated

func (*PublicLimitDepthsV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PublicLimitDepthsV3Api.ProtoReflect.Descriptor instead.

func (*PublicLimitDepthsV3Api) GetAsks

func (*PublicLimitDepthsV3Api) GetBids

func (*PublicLimitDepthsV3Api) GetEventType

func (x *PublicLimitDepthsV3Api) GetEventType() string

func (*PublicLimitDepthsV3Api) GetVersion

func (x *PublicLimitDepthsV3Api) GetVersion() string

func (*PublicLimitDepthsV3Api) ProtoMessage

func (*PublicLimitDepthsV3Api) ProtoMessage()

func (*PublicLimitDepthsV3Api) ProtoReflect

func (x *PublicLimitDepthsV3Api) ProtoReflect() protoreflect.Message

func (*PublicLimitDepthsV3Api) Reset

func (x *PublicLimitDepthsV3Api) Reset()

func (*PublicLimitDepthsV3Api) String

func (x *PublicLimitDepthsV3Api) String() string

type PublicMiniTickerV3Api

type PublicMiniTickerV3Api struct {

	// 交易对名
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// 最新价格
	Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"`
	// utc+8时区涨跌幅
	Rate string `protobuf:"bytes,3,opt,name=rate,proto3" json:"rate,omitempty"`
	// 时区涨跌幅
	ZonedRate string `protobuf:"bytes,4,opt,name=zonedRate,proto3" json:"zonedRate,omitempty"`
	// 滚动最高价
	High string `protobuf:"bytes,5,opt,name=high,proto3" json:"high,omitempty"`
	// 滚动最低价
	Low string `protobuf:"bytes,6,opt,name=low,proto3" json:"low,omitempty"`
	// 滚动成交额
	Volume string `protobuf:"bytes,7,opt,name=volume,proto3" json:"volume,omitempty"`
	// 滚动成交量
	Quantity string `protobuf:"bytes,8,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// utc+8时区上期收盘价模式涨跌幅
	LastCloseRate string `protobuf:"bytes,9,opt,name=lastCloseRate,proto3" json:"lastCloseRate,omitempty"`
	// 上期收盘价模式时区涨跌幅
	LastCloseZonedRate string `protobuf:"bytes,10,opt,name=lastCloseZonedRate,proto3" json:"lastCloseZonedRate,omitempty"`
	// 上期收盘价模式滚动最高价
	LastCloseHigh string `protobuf:"bytes,11,opt,name=lastCloseHigh,proto3" json:"lastCloseHigh,omitempty"`
	// 上期收盘价模式滚动最低价
	LastCloseLow string `protobuf:"bytes,12,opt,name=lastCloseLow,proto3" json:"lastCloseLow,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicMiniTickerV3Api) Descriptor deprecated

func (*PublicMiniTickerV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PublicMiniTickerV3Api.ProtoReflect.Descriptor instead.

func (*PublicMiniTickerV3Api) GetHigh

func (x *PublicMiniTickerV3Api) GetHigh() string

func (*PublicMiniTickerV3Api) GetLastCloseHigh

func (x *PublicMiniTickerV3Api) GetLastCloseHigh() string

func (*PublicMiniTickerV3Api) GetLastCloseLow

func (x *PublicMiniTickerV3Api) GetLastCloseLow() string

func (*PublicMiniTickerV3Api) GetLastCloseRate

func (x *PublicMiniTickerV3Api) GetLastCloseRate() string

func (*PublicMiniTickerV3Api) GetLastCloseZonedRate

func (x *PublicMiniTickerV3Api) GetLastCloseZonedRate() string

func (*PublicMiniTickerV3Api) GetLow

func (x *PublicMiniTickerV3Api) GetLow() string

func (*PublicMiniTickerV3Api) GetPrice

func (x *PublicMiniTickerV3Api) GetPrice() string

func (*PublicMiniTickerV3Api) GetQuantity

func (x *PublicMiniTickerV3Api) GetQuantity() string

func (*PublicMiniTickerV3Api) GetRate

func (x *PublicMiniTickerV3Api) GetRate() string

func (*PublicMiniTickerV3Api) GetSymbol

func (x *PublicMiniTickerV3Api) GetSymbol() string

func (*PublicMiniTickerV3Api) GetVolume

func (x *PublicMiniTickerV3Api) GetVolume() string

func (*PublicMiniTickerV3Api) GetZonedRate

func (x *PublicMiniTickerV3Api) GetZonedRate() string

func (*PublicMiniTickerV3Api) ProtoMessage

func (*PublicMiniTickerV3Api) ProtoMessage()

func (*PublicMiniTickerV3Api) ProtoReflect

func (x *PublicMiniTickerV3Api) ProtoReflect() protoreflect.Message

func (*PublicMiniTickerV3Api) Reset

func (x *PublicMiniTickerV3Api) Reset()

func (*PublicMiniTickerV3Api) String

func (x *PublicMiniTickerV3Api) String() string

type PublicMiniTickersV3Api

type PublicMiniTickersV3Api struct {
	Items []*PublicMiniTickerV3Api `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicMiniTickersV3Api) Descriptor deprecated

func (*PublicMiniTickersV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PublicMiniTickersV3Api.ProtoReflect.Descriptor instead.

func (*PublicMiniTickersV3Api) GetItems

func (*PublicMiniTickersV3Api) ProtoMessage

func (*PublicMiniTickersV3Api) ProtoMessage()

func (*PublicMiniTickersV3Api) ProtoReflect

func (x *PublicMiniTickersV3Api) ProtoReflect() protoreflect.Message

func (*PublicMiniTickersV3Api) Reset

func (x *PublicMiniTickersV3Api) Reset()

func (*PublicMiniTickersV3Api) String

func (x *PublicMiniTickersV3Api) String() string

type PublicSpotKlineV3Api

type PublicSpotKlineV3Api struct {

	// K线周期(Min1,Min5,Min15,Min30,Min60,Hour4,Hour8,Day1,Week1,Month1)
	Interval string `protobuf:"bytes,1,opt,name=interval,proto3" json:"interval,omitempty"`
	// 窗口开始时间戳(秒时间戳)
	WindowStart int64 `protobuf:"varint,2,opt,name=windowStart,proto3" json:"windowStart,omitempty"`
	// 开盘价
	OpeningPrice string `protobuf:"bytes,3,opt,name=openingPrice,proto3" json:"openingPrice,omitempty"`
	// 收盘价
	ClosingPrice string `protobuf:"bytes,4,opt,name=closingPrice,proto3" json:"closingPrice,omitempty"`
	// 最高价
	HighestPrice string `protobuf:"bytes,5,opt,name=highestPrice,proto3" json:"highestPrice,omitempty"`
	// 最低价
	LowestPrice string `protobuf:"bytes,6,opt,name=lowestPrice,proto3" json:"lowestPrice,omitempty"`
	// 成交量
	Volume string `protobuf:"bytes,7,opt,name=volume,proto3" json:"volume,omitempty"`
	// 成交额
	Amount string `protobuf:"bytes,8,opt,name=amount,proto3" json:"amount,omitempty"`
	// 窗口结束时间戳(秒时间戳)
	WindowEnd int64 `protobuf:"varint,9,opt,name=windowEnd,proto3" json:"windowEnd,omitempty"`
	// contains filtered or unexported fields
}

func (*PublicSpotKlineV3Api) Descriptor deprecated

func (*PublicSpotKlineV3Api) Descriptor() ([]byte, []int)

Deprecated: Use PublicSpotKlineV3Api.ProtoReflect.Descriptor instead.

func (*PublicSpotKlineV3Api) GetAmount

func (x *PublicSpotKlineV3Api) GetAmount() string

func (*PublicSpotKlineV3Api) GetClosingPrice

func (x *PublicSpotKlineV3Api) GetClosingPrice() string

func (*PublicSpotKlineV3Api) GetHighestPrice

func (x *PublicSpotKlineV3Api) GetHighestPrice() string

func (*PublicSpotKlineV3Api) GetInterval

func (x *PublicSpotKlineV3Api) GetInterval() string

func (*PublicSpotKlineV3Api) GetLowestPrice

func (x *PublicSpotKlineV3Api) GetLowestPrice() string

func (*PublicSpotKlineV3Api) GetOpeningPrice

func (x *PublicSpotKlineV3Api) GetOpeningPrice() string

func (*PublicSpotKlineV3Api) GetVolume

func (x *PublicSpotKlineV3Api) GetVolume() string

func (*PublicSpotKlineV3Api) GetWindowEnd

func (x *PublicSpotKlineV3Api) GetWindowEnd() int64

func (*PublicSpotKlineV3Api) GetWindowStart

func (x *PublicSpotKlineV3Api) GetWindowStart() int64

func (*PublicSpotKlineV3Api) ProtoMessage

func (*PublicSpotKlineV3Api) ProtoMessage()

func (*PublicSpotKlineV3Api) ProtoReflect

func (x *PublicSpotKlineV3Api) ProtoReflect() protoreflect.Message

func (*PublicSpotKlineV3Api) Reset

func (x *PublicSpotKlineV3Api) Reset()

func (*PublicSpotKlineV3Api) String

func (x *PublicSpotKlineV3Api) String() string

type PushDataV3ApiWrapper

type PushDataV3ApiWrapper struct {

	// *
	// 频道
	Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	// *
	// 数据,NOTE:因为不能重复,所以类型和变量名尽量使用全名
	//
	// Types that are valid to be assigned to Body:
	//
	//	*PushDataV3ApiWrapper_PublicDeals
	//	*PushDataV3ApiWrapper_PublicIncreaseDepths
	//	*PushDataV3ApiWrapper_PublicLimitDepths
	//	*PushDataV3ApiWrapper_PrivateOrders
	//	*PushDataV3ApiWrapper_PublicBookTicker
	//	*PushDataV3ApiWrapper_PrivateDeals
	//	*PushDataV3ApiWrapper_PrivateAccount
	//	*PushDataV3ApiWrapper_PublicSpotKline
	//	*PushDataV3ApiWrapper_PublicMiniTicker
	//	*PushDataV3ApiWrapper_PublicMiniTickers
	//	*PushDataV3ApiWrapper_PublicBookTickerBatch
	//	*PushDataV3ApiWrapper_PublicIncreaseDepthsBatch
	//	*PushDataV3ApiWrapper_PublicAggreDepths
	//	*PushDataV3ApiWrapper_PublicAggreDeals
	//	*PushDataV3ApiWrapper_PublicAggreBookTicker
	Body isPushDataV3ApiWrapper_Body `protobuf_oneof:"body"`
	// *
	// 交易对
	Symbol *string `protobuf:"bytes,3,opt,name=symbol,proto3,oneof" json:"symbol,omitempty"`
	// *
	// 交易对ID
	SymbolId *string `protobuf:"bytes,4,opt,name=symbolId,proto3,oneof" json:"symbolId,omitempty"`
	// *
	// 消息生成时间
	CreateTime *int64 `protobuf:"varint,5,opt,name=createTime,proto3,oneof" json:"createTime,omitempty"`
	// *
	// 消息推送时间
	SendTime *int64 `protobuf:"varint,6,opt,name=sendTime,proto3,oneof" json:"sendTime,omitempty"`
	// contains filtered or unexported fields
}

func (*PushDataV3ApiWrapper) Descriptor deprecated

func (*PushDataV3ApiWrapper) Descriptor() ([]byte, []int)

Deprecated: Use PushDataV3ApiWrapper.ProtoReflect.Descriptor instead.

func (*PushDataV3ApiWrapper) GetBody

func (x *PushDataV3ApiWrapper) GetBody() isPushDataV3ApiWrapper_Body

func (*PushDataV3ApiWrapper) GetChannel

func (x *PushDataV3ApiWrapper) GetChannel() string

func (*PushDataV3ApiWrapper) GetCreateTime

func (x *PushDataV3ApiWrapper) GetCreateTime() int64

func (*PushDataV3ApiWrapper) GetPrivateAccount

func (x *PushDataV3ApiWrapper) GetPrivateAccount() *PrivateAccountV3Api

func (*PushDataV3ApiWrapper) GetPrivateDeals

func (x *PushDataV3ApiWrapper) GetPrivateDeals() *PrivateDealsV3Api

func (*PushDataV3ApiWrapper) GetPrivateOrders

func (x *PushDataV3ApiWrapper) GetPrivateOrders() *PrivateOrdersV3Api

func (*PushDataV3ApiWrapper) GetPublicAggreBookTicker

func (x *PushDataV3ApiWrapper) GetPublicAggreBookTicker() *PublicAggreBookTickerV3Api

func (*PushDataV3ApiWrapper) GetPublicAggreDeals

func (x *PushDataV3ApiWrapper) GetPublicAggreDeals() *PublicAggreDealsV3Api

func (*PushDataV3ApiWrapper) GetPublicAggreDepths

func (x *PushDataV3ApiWrapper) GetPublicAggreDepths() *PublicAggreDepthsV3Api

func (*PushDataV3ApiWrapper) GetPublicBookTicker

func (x *PushDataV3ApiWrapper) GetPublicBookTicker() *PublicBookTickerV3Api

func (*PushDataV3ApiWrapper) GetPublicBookTickerBatch

func (x *PushDataV3ApiWrapper) GetPublicBookTickerBatch() *PublicBookTickerBatchV3Api

func (*PushDataV3ApiWrapper) GetPublicDeals

func (x *PushDataV3ApiWrapper) GetPublicDeals() *PublicDealsV3Api

func (*PushDataV3ApiWrapper) GetPublicIncreaseDepths

func (x *PushDataV3ApiWrapper) GetPublicIncreaseDepths() *PublicIncreaseDepthsV3Api

func (*PushDataV3ApiWrapper) GetPublicIncreaseDepthsBatch

func (x *PushDataV3ApiWrapper) GetPublicIncreaseDepthsBatch() *PublicIncreaseDepthsBatchV3Api

func (*PushDataV3ApiWrapper) GetPublicLimitDepths

func (x *PushDataV3ApiWrapper) GetPublicLimitDepths() *PublicLimitDepthsV3Api

func (*PushDataV3ApiWrapper) GetPublicMiniTicker

func (x *PushDataV3ApiWrapper) GetPublicMiniTicker() *PublicMiniTickerV3Api

func (*PushDataV3ApiWrapper) GetPublicMiniTickers

func (x *PushDataV3ApiWrapper) GetPublicMiniTickers() *PublicMiniTickersV3Api

func (*PushDataV3ApiWrapper) GetPublicSpotKline

func (x *PushDataV3ApiWrapper) GetPublicSpotKline() *PublicSpotKlineV3Api

func (*PushDataV3ApiWrapper) GetSendTime

func (x *PushDataV3ApiWrapper) GetSendTime() int64

func (*PushDataV3ApiWrapper) GetSymbol

func (x *PushDataV3ApiWrapper) GetSymbol() string

func (*PushDataV3ApiWrapper) GetSymbolId

func (x *PushDataV3ApiWrapper) GetSymbolId() string

func (*PushDataV3ApiWrapper) ProtoMessage

func (*PushDataV3ApiWrapper) ProtoMessage()

func (*PushDataV3ApiWrapper) ProtoReflect

func (x *PushDataV3ApiWrapper) ProtoReflect() protoreflect.Message

func (*PushDataV3ApiWrapper) Reset

func (x *PushDataV3ApiWrapper) Reset()

func (*PushDataV3ApiWrapper) String

func (x *PushDataV3ApiWrapper) String() string

type PushDataV3ApiWrapper_PrivateAccount

type PushDataV3ApiWrapper_PrivateAccount struct {
	PrivateAccount *PrivateAccountV3Api `protobuf:"bytes,307,opt,name=privateAccount,proto3,oneof"`
}

type PushDataV3ApiWrapper_PrivateDeals

type PushDataV3ApiWrapper_PrivateDeals struct {
	PrivateDeals *PrivateDealsV3Api `protobuf:"bytes,306,opt,name=privateDeals,proto3,oneof"`
}

type PushDataV3ApiWrapper_PrivateOrders

type PushDataV3ApiWrapper_PrivateOrders struct {
	PrivateOrders *PrivateOrdersV3Api `protobuf:"bytes,304,opt,name=privateOrders,proto3,oneof"`
}

type PushDataV3ApiWrapper_PublicAggreBookTicker

type PushDataV3ApiWrapper_PublicAggreBookTicker struct {
	PublicAggreBookTicker *PublicAggreBookTickerV3Api `protobuf:"bytes,315,opt,name=publicAggreBookTicker,proto3,oneof"`
}

type PushDataV3ApiWrapper_PublicAggreDeals

type PushDataV3ApiWrapper_PublicAggreDeals struct {
	PublicAggreDeals *PublicAggreDealsV3Api `protobuf:"bytes,314,opt,name=publicAggreDeals,proto3,oneof"`
}

type PushDataV3ApiWrapper_PublicAggreDepths

type PushDataV3ApiWrapper_PublicAggreDepths struct {
	PublicAggreDepths *PublicAggreDepthsV3Api `protobuf:"bytes,313,opt,name=publicAggreDepths,proto3,oneof"`
}

type PushDataV3ApiWrapper_PublicBookTicker

type PushDataV3ApiWrapper_PublicBookTicker struct {
	PublicBookTicker *PublicBookTickerV3Api `protobuf:"bytes,305,opt,name=publicBookTicker,proto3,oneof"`
}

type PushDataV3ApiWrapper_PublicBookTickerBatch

type PushDataV3ApiWrapper_PublicBookTickerBatch struct {
	PublicBookTickerBatch *PublicBookTickerBatchV3Api `protobuf:"bytes,311,opt,name=publicBookTickerBatch,proto3,oneof"`
}

type PushDataV3ApiWrapper_PublicDeals

type PushDataV3ApiWrapper_PublicDeals struct {
	PublicDeals *PublicDealsV3Api `protobuf:"bytes,301,opt,name=publicDeals,proto3,oneof"`
}

type PushDataV3ApiWrapper_PublicIncreaseDepths

type PushDataV3ApiWrapper_PublicIncreaseDepths struct {
	PublicIncreaseDepths *PublicIncreaseDepthsV3Api `protobuf:"bytes,302,opt,name=publicIncreaseDepths,proto3,oneof"`
}

type PushDataV3ApiWrapper_PublicIncreaseDepthsBatch

type PushDataV3ApiWrapper_PublicIncreaseDepthsBatch struct {
	PublicIncreaseDepthsBatch *PublicIncreaseDepthsBatchV3Api `protobuf:"bytes,312,opt,name=publicIncreaseDepthsBatch,proto3,oneof"`
}

type PushDataV3ApiWrapper_PublicLimitDepths

type PushDataV3ApiWrapper_PublicLimitDepths struct {
	PublicLimitDepths *PublicLimitDepthsV3Api `protobuf:"bytes,303,opt,name=publicLimitDepths,proto3,oneof"`
}

type PushDataV3ApiWrapper_PublicMiniTicker

type PushDataV3ApiWrapper_PublicMiniTicker struct {
	PublicMiniTicker *PublicMiniTickerV3Api `protobuf:"bytes,309,opt,name=publicMiniTicker,proto3,oneof"`
}

type PushDataV3ApiWrapper_PublicMiniTickers

type PushDataV3ApiWrapper_PublicMiniTickers struct {
	PublicMiniTickers *PublicMiniTickersV3Api `protobuf:"bytes,310,opt,name=publicMiniTickers,proto3,oneof"`
}

type PushDataV3ApiWrapper_PublicSpotKline

type PushDataV3ApiWrapper_PublicSpotKline struct {
	PublicSpotKline *PublicSpotKlineV3Api `protobuf:"bytes,308,opt,name=publicSpotKline,proto3,oneof"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL