binance

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelAllOpenOrderBySymbol added in v0.1.10

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

func CancelOrderByID added in v0.1.10

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

func CloseUserStream added in v0.1.10

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

func CreateOrder added in v0.1.10

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

func GetAccount added in v0.1.10

func GetAccount(binanceClient *binance.Client)

func GetAllAssetBalance added in v0.1.10

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 added in v0.1.10

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

func GetBinanceServerTime added in v0.1.10

func GetBinanceServerTime(binanceClient *binance.Client)

func GetBookTicketPricesBySymbol added in v0.1.10

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

func GetExchangeInfo added in v0.1.10

func GetExchangeInfo(binanceClient *binance.Client)

func GetSymbolLotSize added in v0.1.10

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

func GetSymbolPrice added in v0.1.10

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

func KeepAliveUserStream added in v0.1.10

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

func ListAggregateTradeBySymbol added in v0.1.10

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

func ListAllAssetDetails added in v0.1.10

func ListAllAssetDetails(binanceClient *binance.Client)

func ListAllDeposit added in v0.1.10

func ListAllDeposit(binanceClient *binance.Client)

func ListAllMktFilledTradesBySymbol added in v0.1.10

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

func ListAllOpenOrdersBySymbol added in v0.1.10

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

func ListAllOrdersBySymbol added in v0.1.10

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

func ListAllTicketPrices added in v0.1.10

func ListAllTicketPrices(binanceClient *binance.Client)

func ListAllTradesBySymbol added in v0.1.10

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

func ListAvgPriceBySymbol added in v0.1.10

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

func ListDepositAddress added in v0.1.10

func ListDepositAddress(binanceClient *binance.Client)

func ListKlinesBySymbolByInterval added in v0.1.10

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

func ListOrderbyID added in v0.1.10

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

func ListRecentTradeBySymbol added in v0.1.10

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

func ListTicketPricesChangeStatsBySymbol added in v0.1.10

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

func PingBinance added in v0.1.10

func PingBinance(binanceClient *binance.Client)

func PrintAllAssetBalance added in v0.1.10

func PrintAllAssetBalance(binanceClient *binance.Client)

func SetBinanceServerTime added in v0.1.10

func SetBinanceServerTime(binanceClient *binance.Client)

func ShowPriceDepthBySymbol added in v0.1.10

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

func StartUserStream added in v0.1.10

func StartUserStream(binanceClient *binance.Client) string

func WsAggTradeStreams added in v0.1.10

func WsAggTradeStreams(symbol string)

WsAggTradeStreams serve websocket aggregate handler with a symbol

func WsAllBookTickerStreams added in v0.1.10

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 added in v0.1.10

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 WsCombinedAggTradeStreams added in v0.1.10

func WsCombinedAggTradeStreams(symbols []string)

WsCombinedAggTradeStreams is similar to WsAggTradeServe, but it handles multiple symbolx

func WsCombinedKlineStream added in v0.1.10

func WsCombinedKlineStream(symbolIntervalPair map[string]string)

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

func WsCombinedMarketStatStream added in v0.1.10

func WsCombinedMarketStatStream(symbol []string)

WsCombinedMarketStatStream is similar to WsMarketStatServe, but it handles multiple symbol

func WsCombinedPriceDepthStreams added in v0.1.10

func WsCombinedPriceDepthStreams(symbols []string)

WsCombinedPriceDepthStreams is similar to WsDepthServe, but it for multiple symbols

func WsKlineStream added in v0.1.10

func WsKlineStream(symbol string, interval string)

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

func WsMarketStatStream added in v0.1.10

func WsMarketStatStream(symbol string)

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

func WsPriceDepthStreams added in v0.1.10

func WsPriceDepthStreams(symbol string)

WsPriceDepthStreams serve websocket depth handler with an arbitrary endpoint address

func WsTradeStreams added in v0.1.10

func WsTradeStreams(symbol string)

WsTradeStreams serve websocket handler with a symbol

func WsUserDataStream added in v0.1.10

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