forexprovider

package
v0.0.0-...-83dca6d Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 8 Imported by: 0

README

GoCryptoTrader package Forexprovider

Build Status Software License GoDoc Coverage Status Go Report Card

This forexprovider package is part of the GoCryptoTrader codebase.

This is still in active development

You can track ideas, planned features and what's in progress on this Trello board: https://trello.com/b/ZAhMhpOy/gocryptotrader.

Join our slack to discuss all things related to GoCryptoTrader! GoCryptoTrader Slack

Current Features for forexprovider

  • Currency Converter API support
  • Currency Layer support
  • Fixer.io support
  • Open Exchange Rates support
  • ExchangeRate.host support
Please click GoDocs chevron above to view current GoDoc information for this package

Contribution

Please feel free to submit any pull requests or suggest any desired features to be added.

When submitting a PR, please abide by our coding guidelines:

  • Code must adhere to the official Go formatting guidelines (i.e. uses gofmt).
  • Code must be documented adhering to the official Go commentary guidelines.
  • Code must adhere to our coding style.
  • Pull requests need to be based on and opened against the master branch.

Donations

If this framework helped you in any way, or you would like to support the developers working on it, please donate Bitcoin to:

bc1qk0jareu4jytc0cfrhr5wgshsq8282awpavfahc

Documentation

Overview

Package forexprovider utilises foreign exchange API services to manage relational FIAT currencies

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSupportedForexProviders

func GetSupportedForexProviders() []string

GetSupportedForexProviders returns a list of supported forex providers

Types

type ForexProviders

type ForexProviders struct {
	base.FXHandler
}

ForexProviders is a foreign exchange handler type

func NewDefaultFXProvider

func NewDefaultFXProvider() *ForexProviders

NewDefaultFXProvider returns the default forex provider (currencyconverterAPI)

func StartFXService

func StartFXService(fxProviders []base.Settings) (*ForexProviders, error)

StartFXService starts the forex provider service and returns a pointer to it

func (*ForexProviders) SetProvider

func (f *ForexProviders) SetProvider(b base.IFXProvider) error

SetProvider sets provider to the FX handler

Directories

Path Synopsis
Package currencyconverter package https://free.currencyconverterapi.com/
Package currencyconverter package https://free.currencyconverterapi.com/
Package currencylayer provides a simple REST API with real-time and historical exchange rates for 168 world currencies, delivering currency pairs in universally usable JSON format - compatible with any of your applications.
Package currencylayer provides a simple REST API with real-time and historical exchange rates for 168 world currencies, delivering currency pairs in universally usable JSON format - compatible with any of your applications.

Jump to

Keyboard shortcuts

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