avanza

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 6 Imported by: 0

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()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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