binance

package
v0.0.0-...-4822ebe Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggTradeScraper

func AggTradeScraper(binanceClient *binance.Client, symbolList []string)

func CancelAllOpenOrderBySymbol

func CancelAllOpenOrderBySymbol(binanceClient *binance.Client, symbol string)

func CancelOrderByID

func CancelOrderByID(binanceClient *binance.Client, orderID int64, symbol string)

func CloseUserStream

func CloseUserStream(binanceClient *binance.Client, listenKey string)

func CreateOrder

func CreateOrder(binanceClient *binance.Client, symbol string, sidetype binance.SideType, ordertype binance.OrderType, quantity string) (*binance.CreateOrderResponse, error)

func GetAccount

func GetAccount(binanceClient *binance.Client)

func GetAllAssetBalance

func GetAllAssetBalance(binanceClient *binance.Client) []binance.Balance

func GetAllSymbolList

func GetAllSymbolList(binanceClient *binance.Client) ([]string, []float64)

func GetAllUSDTSymbolList

func GetAllUSDTSymbolList(binanceClient *binance.Client) ([]string, []float64)

func GetAssetBalance

func GetAssetBalance(binanceClient *binance.Client, coin string) (free float64, locked float64)

func GetBinanceServerTime

func GetBinanceServerTime(binanceClient *binance.Client)

func GetBookTicketPricesBySymbol

func GetBookTicketPricesBySymbol(binanceClient *binance.Client, symbol string)

func GetExchangeInfo

func GetExchangeInfo(binanceClient *binance.Client)

func GetSymbolLotSize

func GetSymbolLotSize(binanceClient *binance.Client, symbol string) float64

func GetSymbolPrice

func GetSymbolPrice(binanceClient *binance.Client, symbol string) float64

func KeepAliveUserStream

func KeepAliveUserStream(binanceClient *binance.Client, listenKey string)

func KlineScraper

func KlineScraper(binanceClient *binance.Client, symbolList []string)

func ListAggregateTradeBySymbol

func ListAggregateTradeBySymbol(binanceClient *binance.Client, symbol string)

func ListAllAssetDetails

func ListAllAssetDetails(binanceClient *binance.Client, redisClient *redis.Client)

func ListAllDeposit

func ListAllDeposit(binanceClient *binance.Client)

func ListAllMktFilledTradesBySymbol

func ListAllMktFilledTradesBySymbol(binanceClient *binance.Client, symbol string)

func ListAllOpenOrdersBySymbol

func ListAllOpenOrdersBySymbol(binanceClient *binance.Client, symbol string)

func ListAllOrdersBySymbol

func ListAllOrdersBySymbol(binanceClient *binance.Client, symbol string)

func ListAllTicketPrices

func ListAllTicketPrices(binanceClient *binance.Client)

func ListAllTradesBySymbol

func ListAllTradesBySymbol(binanceClient *binance.Client, symbol string)

func ListAvgPriceBySymbol

func ListAvgPriceBySymbol(binanceClient *binance.Client, symbol string)

func ListDepositAddress

func ListDepositAddress(binanceClient *binance.Client)

func ListKlinesBySymbolByInterval

func ListKlinesBySymbolByInterval(binanceClient *binance.Client, symbol string, interval string)

func ListOrderbyID

func ListOrderbyID(binanceClient *binance.Client, orderID int64, symbol string)

func ListRecentTradeBySymbol

func ListRecentTradeBySymbol(binanceClient *binance.Client, symbol string)

func ListTicketPricesChangeStatsBySymbol

func ListTicketPricesChangeStatsBySymbol(binanceClient *binance.Client, symbol string)

func PingBinance

func PingBinance(binanceClient *binance.Client)

func PriceDepthScraper

func PriceDepthScraper(binanceClient *binance.Client, symbolList []string)

func PrintAllAssetBalance

func PrintAllAssetBalance(binanceClient *binance.Client)

func SetBinanceServerTime

func SetBinanceServerTime(binanceClient *binance.Client)

func ShowPriceDepthBySymbol

func ShowPriceDepthBySymbol(binanceClient *binance.Client, symbol string)

func StartUserStream

func StartUserStream(binanceClient *binance.Client) string

func WsAggTradeStreams

func WsAggTradeStreams(symbol string)

WsAggTradeStreams serve websocket aggregate handler with a symbol

func WsAggTradeStreamsDataMessageQueue

func WsAggTradeStreamsDataMessageQueue(symbol string)

func WsAllBookTickerStreams

func WsAllBookTickerStreams()

WsAllBookTickerStreams serve websocket that pushes updates to the best bid or ask price or quantity in real-time for all symbols.

func WsBookTickerStreams

func WsBookTickerStreams(symbol string)

WsBookTickerStreams serve websocket that pushes updates to the best bid or ask price or quantity in real-time for a specified symbol.

func WsCombinedAggTradeStreamDataMessageQueue

func WsCombinedAggTradeStreamDataMessageQueue(symbols []string)

func WsCombinedAggTradeStreams

func WsCombinedAggTradeStreams(symbols []string)

WsCombinedAggTradeStreams is similar to WsAggTradeServe, but it handles multiple symbolx

func WsCombinedKlineStream

func WsCombinedKlineStream(symbolIntervalPair map[string]string)

WsCombinedKlineStream is similar to WsKlineServe, but it handles multiple symbols with it interval

func WsCombinedKlineStreamDataMessageQueue

func WsCombinedKlineStreamDataMessageQueue(symbolIntervalPair map[string]string)

func WsCombinedMarketStatStream

func WsCombinedMarketStatStream(symbol []string)

WsCombinedMarketStatStream is similar to WsMarketStatServe, but it handles multiple symbol

func WsCombinedPriceDepthStreamDataMessageQueue

func WsCombinedPriceDepthStreamDataMessageQueue(symbols []string)

func WsCombinedPriceDepthStreams

func WsCombinedPriceDepthStreams(symbols []string)

WsCombinedPriceDepthStreams is similar to WsDepthServe, but it for multiple symbols

func WsKlineStream

func WsKlineStream(symbol string, interval string)

WsKlineStream serve websocket kline handler with a symbol and interval like 15m, 30s

func WsKlineStreamDataMessageQueue

func WsKlineStreamDataMessageQueue(symbol string, interval string)

func WsMarketStatStream

func WsMarketStatStream(symbol string)

WsMarketStatStream serve websocket that push 24hr statistics for single market every second

func WsPriceDepthStreams

func WsPriceDepthStreams(symbol string)

WsPriceDepthStreams serve websocket depth handler with an arbitrary endpoint address

func WsTradeStreams

func WsTradeStreams(symbol string)

WsTradeStreams serve websocket handler with a symbol

func WsUserDataStream

func WsUserDataStream(listenKey string)

WsUserDataStream serve user data handler with listen key

Types

This section is empty.

Jump to

Keyboard shortcuts

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