bisq

package
v0.0.0-...-caa1f43 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveMarket

func SaveMarket(db *leveldb.DB, market Market, truncate string, debug bool) (err error)

Types

type Currency

type Currency struct {
	CurrencyCode string  `json:"currencyCode"`
	Price        float64 `json:"price"`
	TimestampSec int64   `json:"timestampSec"`
	Provider     string  `json"provider"`
}

func BtcJpy

func BtcJpy(db *leveldb.DB, in int64, truncate string, debug bool) (out Currency, err error)

func BtcJpyArray

func BtcJpyArray(db *leveldb.DB, start, end int64, truncate string, debug bool) (out []Currency, err error)

func BtcUsd

func BtcUsd(db *leveldb.DB, in int64, truncate string, debug bool) (out Currency, err error)

func BtcUsdArray

func BtcUsdArray(db *leveldb.DB, start, end int64, truncate string, debug bool) (out []Currency, err error)

type Market

type Market struct {
	Data []Currency `json:"data"`
}

func GetAllMarketPrices

func GetAllMarketPrices() (market Market, err error)

type Price

type Price int
const (
	USD Price = iota
	JPY
)

func (Price) String

func (p Price) String() string

Jump to

Keyboard shortcuts

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