examples/

directory
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT

README

Examples

All examples use the module github.com/Slrrxx/binance-go.

export BINANCE_API_KEY=
export BINANCE_API_SECRET=
go run ./examples/ticker

Never commit real keys. Public market examples work with empty credentials.

Example
ticker public price
order / test_order live / validate-only order
account spot account
historical_klines candle iterator
websocket_trade / websocket_depth market streams
websocket_facade WebSocket().Trade
wsapi WebSocket API
user_stream authenticated user data
futures_order USD-M on testnet
margin margin account
testnet ping + test order

Jump to

Keyboard shortcuts

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