Categorygithub.com/xenking/binance-api-client
modulepackage
0.0.0-20200820095739-f051f2e5e616
Repository: https://github.com/xenking/binance-api-client.git
Documentation: pkg.go.dev

# README

binance-api-client

# Packages

No description provided by the author

# Functions

FormatTimestamp formats a time into Unix timestamp in milliseconds, as requested by Binance.
NewClient initialize an API client instance with API key and secret key.
WithRecvWindow set recvWindow param for the request.
WsBookTickerServe serve websocket partial depth handler with a symbol.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

WebsocketKeepalive enables sending ping/pong messages to check the connection stability.
baseFutureURL = "wss://fstream.binance.com/ws"combinedBaseURL = "wss://stream.binance.com:9443/stream?streams=" WebsocketTimeout is an interval for sending ping/pong messages if WebsocketKeepalive is enabled.

# Structs

CancelOCOResponse define response of canceling OCO order.
CancelOCOService cancel an OCO order.
Client define API client.
CreateOCOResponse define create OCO order response.
CreateOCOService create OCO order.
GetOCOService get an OCO order.
ListOCOService all account orders; active, canceled, or filled.
ListOpenOCOService list opened OCO orders.
OCOOrder may be returned in an array of OCOOrder in a CreateOCOResponse.
OCOOrderReport may be returned in an array of OCOOrderReport in a CreateOCOResponse.
OCOResponse define OCO order response.
PingService ping server.
ServerTimeService get server time.
SetServerTimeService set server time.
WsBookTickerEvent define websocket individual book ticker event.
WsConfig webservice configuration.

# Type aliases

ErrHandler handles errors.
NewOrderRespType define response JSON verbosity.
No description provided by the author
No description provided by the author
OrderStatusType define order status type.
OrderType define order type.
RequestOption define option type for request.
SideType define side type of order.
TimeInForceType define time in force type of order.
WsBookTickerHandler handle websocket partial depth event.
WsHandler handle raw websocket message.