ofx

package
v0.0.0-...-f545d20 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ofx

type Ofx struct {
	// contains filtered or unexported fields
}

func New

func New(baseURL string) *Ofx

func (*Ofx) Read

func (ofx *Ofx) Read(
	pair common.AssetPair,
	since time.Time,
	interval time.Duration,
) []common.TxOHCHistory

func (*Ofx) SetExchangeName

func (ofx *Ofx) SetExchangeName(name string)

type Point

type Point struct {
	Time        int64   `json:"PointInTime"`
	Rate        float64 `json:"InterbankRate"`
	InverseRate float64 `json:"InverseInterbankRate"`
}

type Response

type Response struct {
	CurrentRate        float64 `json:"CurrentInterbankRate"`
	CurrentInverseRate float64 `json:"CurrentInverseInterbankRate"`
	Average            float64 `json:"Average"`
	Historical         []Point `json:"HistoricalPoints"`
}

Jump to

Keyboard shortcuts

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