v1

package
v1.0.31 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLastPrice

func GetLastPrice(wc *dataproviders.Workers, db *dbconnectors.Db, query *PriceQuery) (data *dataproviders.Data, err error)

func Ping

func Ping(_ *gin.Context) (res handlers.Result, err error)

Types

type CollectQuery

type CollectQuery struct {
	From     string `json:"fsym" form:"fsym" binding:"required,crypto"`
	To       string `json:"tsym" form:"tsym" binding:"required,common"`
	Interval int    `json:"interval" form:"interval,default=60"`
}

type PriceQuery

type PriceQuery struct {
	From string `json:"fsym" form:"fsym" binding:"required,crypto"`
	To   string `json:"tsym" form:"tsym" binding:"required,common"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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