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