Documentation ¶
Index ¶
Constants ¶
View Source
const ( ApiURL = "https://api.binance.com" SpotApiURL = "https://sapi.binance.com" CFuturesApiURL = "https://dapi.binance.com" UFuturesApiURL = "https://fapi.binance.com" StreamHostURL = "wss://stream.binance.com:9443" RawStreamEndpoint = "/ws" CombinedStreamEndpoint = "/stream?streams=%s" ExchangeInfo = "/api/v3/exchangeInfo" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Binance ¶
type Binance struct {
common.BaseBroker
}
Binance : is Object that will hold the connection and configuration with the Binance Service.
func (*Binance) Initialize ¶
func (b *Binance) Initialize()
Initialize : will initialize the broker config and setup
func (*Binance) OnWSMessage ¶
OnWSMessage : will be triggered when a message is received from the Financial Broker
func (*Binance) RegisterWebsocketClient ¶
type Kpi ¶
type Kpi struct { KStartTime int64 `json:"t"` KSEndTime int64 `json:"T"` Symbol string `json:"s"` Interval string `json:"i"` FirstTradeID int `json:"f"` LastTradeID int `json:"L"` OpenPrice string `json:"o"` ClosePrice string `json:"c"` HighestPrice string `json:"h"` LowestPrice string `json:"l"` BassAssetVolume string `json:"v"` NoOfTrade int `json:"n"` IsKlineClosed bool `json:"x"` QuoteAssetVolume string `json:"q"` Buy string `json:"V"` Quote string `json:"Q"` Ignore string `json:"B"` }
type WebSocketRequest ¶
Click to show internal directories.
Click to hide internal directories.