Documentation
¶
Index ¶
- func NewEtSpotWsSingle(wsURL, proxyURL string) (sw SpotWebsocket, err error)
- func NewSpotAPI(client *http.Client, apiKey, secretKey string) SpotAPI
- func NewSpotWebsocket(wsURL, proxyURL string) (sw SpotWebsocket, err error)
- type ErrorStruct
- type Et
- func (et *Et) Cancel(orderId string, pair CurrencyPair) (bool, error)
- func (et *Et) GetAccount() (*Account, error)
- func (et *Et) GetAllCurrencyPair() (map[string]SymbolSetting, error)
- func (et *Et) GetAllCurrencyStatus() (all map[string]CurrencyStatus, err error)
- func (et *Et) GetAllTicker() ([]Ticker, error)
- func (et *Et) GetCurrencyStatus(currency Currency) (CurrencyStatus, error)
- func (et *Et) GetDepth(pair CurrencyPair, size int, step int) (*Depth, error)
- func (et *Et) GetExchangeName() string
- func (et *Et) GetFinishedOrders(pair CurrencyPair) ([]Order, error)
- func (et *Et) GetKlineRecords(pair CurrencyPair, period KlinePeriod, size, since int) ([]Kline, error)
- func (et *Et) GetOrder(orderId string, pair CurrencyPair) (*Order, error)
- func (et *Et) GetOrderDeal(orderId string, pair CurrencyPair) ([]OrderDeal, error)
- func (et *Et) GetPendingOrders(pair CurrencyPair) ([]Order, error)
- func (et *Et) GetTicker(pair CurrencyPair) (*Ticker, error)
- func (et *Et) GetTradeFee() (tf *TradeFee, err error)
- func (et *Et) GetTrades(pair CurrencyPair, size int) ([]Trade, error)
- func (et *Et) GetURL() string
- func (et *Et) GetUserTrades(pair CurrencyPair) ([]Trade, error)
- func (et *Et) LimitBuy(pair CurrencyPair, price, amount string) (*Order, error)
- func (et *Et) LimitSell(pair CurrencyPair, price, amount string) (*Order, error)
- func (et *Et) MarketBuy(pair CurrencyPair, amount string) (*Order, error)
- func (et *Et) MarketSell(pair CurrencyPair, amount string) (*Order, error)
- func (et *Et) SetURL(exurl string)
- type EtSpotWs
- func (ws *EtSpotWs) FormatTopicName(topic string, pair CurrencyPair) string
- func (ws *EtSpotWs) FormatTopicSubData(topic string, pair CurrencyPair) []byte
- func (ws *EtSpotWs) FormatTopicUnsubData(topic string, pair CurrencyPair) []byte
- func (ws *EtSpotWs) GetExchangeName() string
- func (ws *EtSpotWs) OnMessage(data []byte) (err error)
- func (ws *EtSpotWs) SubDepth(pair CurrencyPair, cb func(*Depth) error) (err error)
- func (ws *EtSpotWs) SubTicker(pair CurrencyPair, cb func(*Ticker) error) (err error)
- func (ws *EtSpotWs) SubTrade(pair CurrencyPair, cb func([]Trade) error) (err error)
- type EtSpotWsSingle
- func (ws *EtSpotWsSingle) FormatTopicName(topic string, pair CurrencyPair) string
- func (ws *EtSpotWsSingle) FormatTopicSubData(topic string, pair CurrencyPair) []byte
- func (ws *EtSpotWsSingle) FormatTopicUnsubData(topic string, pair CurrencyPair) []byte
- func (ws *EtSpotWsSingle) GetExchangeName() string
- func (ws *EtSpotWsSingle) OnMessage(data []byte) (err error)
- type RspOrders
- type RspOrdersOrders
- type TradeFee
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEtSpotWsSingle ¶
func NewSpotAPI ¶
func NewSpotWebsocket ¶
Types ¶
type ErrorStruct ¶
type Et ¶
type Et struct {
// contains filtered or unexported fields
}
func (*Et) GetAccount ¶
func (*Et) GetAllCurrencyPair ¶
func (*Et) GetAllCurrencyStatus ¶
func (*Et) GetAllTicker ¶
func (*Et) GetCurrencyStatus ¶
func (*Et) GetExchangeName ¶
func (*Et) GetFinishedOrders ¶
func (*Et) GetKlineRecords ¶
func (*Et) GetOrderDeal ¶
func (*Et) GetPendingOrders ¶
func (*Et) GetTradeFee ¶
func (*Et) GetUserTrades ¶
func (*Et) MarketSell ¶
type EtSpotWs ¶
type EtSpotWs struct { SpotWsBase // contains filtered or unexported fields }
func (*EtSpotWs) FormatTopicName ¶
格式化流名称
func (*EtSpotWs) FormatTopicSubData ¶
格式化流订阅消息
func (*EtSpotWs) FormatTopicUnsubData ¶
格式化流取消订阅消息
func (*EtSpotWs) GetExchangeName ¶
type EtSpotWsSingle ¶
type EtSpotWsSingle struct { SpotWsBase // contains filtered or unexported fields }
func (*EtSpotWsSingle) FormatTopicName ¶
func (ws *EtSpotWsSingle) FormatTopicName(topic string, pair CurrencyPair) string
格式化流名称
func (*EtSpotWsSingle) FormatTopicSubData ¶
func (ws *EtSpotWsSingle) FormatTopicSubData(topic string, pair CurrencyPair) []byte
格式化流订阅消息
func (*EtSpotWsSingle) FormatTopicUnsubData ¶
func (ws *EtSpotWsSingle) FormatTopicUnsubData(topic string, pair CurrencyPair) []byte
格式化流取消订阅消息
func (*EtSpotWsSingle) GetExchangeName ¶
func (ws *EtSpotWsSingle) GetExchangeName() string
func (*EtSpotWsSingle) OnMessage ¶
func (ws *EtSpotWsSingle) OnMessage(data []byte) (err error)
type RspOrders ¶
type RspOrders struct { Status uint8 Orders []RspOrdersOrders }
type RspOrdersOrders ¶
Click to show internal directories.
Click to hide internal directories.