Documentation ¶
Overview ¶
Package avanza is a Go Unoffical API Client for Avanza Bank AB
Please note that I am not affiliated with Avanza Bank AB in any way. The underlying API can be taken down or changed without warning at any point in time.
To install the package simply run
go get github.com/open-wallstreet/go-avanza
You can create a new client simply like this
func main() { client := avanza.New() defer client.Close() }
Or if you need to debug http responses
func main() { client := avanza.New(avanza.WithDebug(true)) defer client.Close() }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDebug ¶
func WithDebug(debug bool) func(a *AvanzaClient)
Types ¶
type AvanzaClient ¶
type AvanzaClient struct { *client.Client Auth *auth.AuthClient Account *account.AccountClient Market *market.MarketClient Order *order.OrderClient Websocket *websocket.WebsocketClient }
func New ¶
func New(opts ...func(a *AvanzaClient)) *AvanzaClient
func (*AvanzaClient) Close ¶
func (a *AvanzaClient) Close()
Click to show internal directories.
Click to hide internal directories.