swap

package
v0.0.0-...-b8d825d Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Swap

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

Swap ... main struct

func NewSwap

func NewSwap(opt ...string) *Swap

NewSwap ... configure new swap instance

func (*Swap) AddExchanger

func (b *Swap) AddExchanger(interfaceClass ex.Exchanger) *Swap

AddExchanger ... add service to the swap stack

func (*Swap) Build

func (b *Swap) Build() *Swap

Build ... build and init swap object

func (*Swap) Latest

func (b *Swap) Latest(currencyPair string) ex.Exchanger

Latest ... get latest rate exchange from the first api that respond from the swap stack

Jump to

Keyboard shortcuts

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