Versions in this module Expand all Collapse all v1 v1.0.6 Sep 27, 2019 Changes in this version + const ACCOUNT_URI + const API_BASE_URL + const API_V1 + const API_V3 + const DEPTH_URI + const KLINE_URI + const ORDER_URI + const SERVER_TIME_URL + const TICKERS_URI + const TICKER_URI + const UNFINISHED_ORDERS_INFO + type AggTrade struct + FirstBreakdownTradeID int64 + LastBreakdownTradeID int64 + TradeTime int64 + type Binance struct + func New(client *http.Client, api_key, secret_key string) *Binance + func (bn *Binance) CancelOrder(orderId string, currencyPair CurrencyPair) (bool, error) + func (bn *Binance) GetAccount() (*Account, error) + func (bn *Binance) GetDepth(size int, currencyPair CurrencyPair) (*Depth, error) + func (bn *Binance) GetExchangeName() string + func (bn *Binance) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error) + func (bn *Binance) GetOneOrder(orderId string, currencyPair CurrencyPair) (*Order, error) + func (bn *Binance) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error) + func (bn *Binance) GetTicker(currency CurrencyPair) (*Ticker, error) + func (bn *Binance) GetTradeSymbols(currencyPair CurrencyPair) (*TradeSymbol, error) + func (bn *Binance) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error) + func (bn *Binance) GetUnfinishOrders(currencyPair CurrencyPair) ([]Order, error) + func (bn *Binance) LimitBuy(amount, price string, currencyPair CurrencyPair) (*Order, error) + func (bn *Binance) LimitSell(amount, price string, currencyPair CurrencyPair) (*Order, error) + func (bn *Binance) MarketBuy(amount, price string, currencyPair CurrencyPair) (*Order, error) + func (bn *Binance) MarketSell(amount, price string, currencyPair CurrencyPair) (*Order, error) + type BinanceWs struct + func NewBinanceWs() *BinanceWs + func (bnWs *BinanceWs) ProxyUrl(proxyUrl string) + func (bnWs *BinanceWs) SetBaseUrl(baseURL string) + func (bnWs *BinanceWs) SetCallbacks(tickerCallback func(*Ticker), depthCallback func(*Depth), ...) + func (bnWs *BinanceWs) SetCombinedBaseURL(combinedBaseURL string) + func (bnWs *BinanceWs) SubscribeAggTrade(pair CurrencyPair, tradeCallback func(*Trade)) error + func (bnWs *BinanceWs) SubscribeDepth(pair CurrencyPair, size int) error + func (bnWs *BinanceWs) SubscribeDiffDepth(pair CurrencyPair, depthCallback func(*Depth)) error + func (bnWs *BinanceWs) SubscribeKline(pair CurrencyPair, period int) error + func (bnWs *BinanceWs) SubscribeTicker(pair CurrencyPair) error + func (bnWs *BinanceWs) SubscribeTrade(pair CurrencyPair) error + type DiffDepth struct + FirstUpdateID int64 + UpdateID int64 + type ExchangeInfo struct + ExchangeFilters []interface{} + RateLimits []RateLimit + ServerTime int + Symbols []TradeSymbol + Timezone string + type Filter struct + FilterType string + MaxPrice string + MinPrice string + TickSize string + type RateLimit struct + Interval string + IntervalNum int + Limit int + RateLimitType string + type RawTrade struct + BuyerOrderID int64 + SellerOrderID int64 + type TradeSymbol struct + BaseAsset string + BaseAssetPrecision int + Filters []Filter + IcebergAllowed bool + IsMarginTradingAllowed bool + IsSpotTradingAllowed bool + OcoAllowed bool + OrderTypes []string + QuoteAsset string + QuotePrecision int + Status string + Symbol string