Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 854 Bytes

README.md

File metadata and controls

42 lines (33 loc) · 854 Bytes

Build Status

Bitstamp

Package bitstamp implements the Bitstamp HTTP API. For full documentation, see the godoc page.

Examples

Ticker (unauthenticated)

	conn, err := bitstamp.NewConn()
	if err != nil {
		return err
	}
	defer conn.Close()

	ticker, err := conn.GetTicker(currencyPair)
	if err != nil {
		return err
	}
	fmt.Printf("%+v\n", ticker)

Account Balance (authenticated)

	conn, err := bitstamp.NewAuthConn(apiKey, apiSecret, customerID)
	if err != nil {
		return err
	}
	defer conn.Close()

	balance, err := conn.PostBalance(currencyPair)
	if err != nil {
		return err
	}
	fmt.Printf("%+v\n", balance)