price

package
v0.0.0-...-3792732 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Symbols    []string `json:"symbols"`
	Multiplier uint64   `json:"multiplier"`
}

type Output

type Output struct {
	Pxs []uint64 `json:"pxs"`
}

type Price

type Price struct {
	Symbol      string          `json:"symbol"`
	Multiplier  uint64          `json:"multiplier"`
	Px          uint64          `json:"px"`
	RequestID   types.RequestID `json:"request_id"`
	ResolveTime int64           `json:"resolve_time"`
}

func NewPrice

func NewPrice(symbol string, multiplier, px uint64, reqID types.RequestID, resolveTime int64) Price

type Response

type Response struct {
	Symbol       string `json:"symbol"`
	ResponseCode uint8  `json:"response_code"`
	Rate         uint64 `json:"rate"`
}

type SymbolInput

type SymbolInput struct {
	Symbols            []string `json:"symbols"`
	MinimumSourceCount uint8    `json:"minimum_source_count"`
}

type SymbolOutput

type SymbolOutput struct {
	Responses []Response `json:"responses"`
}

Jump to

Keyboard shortcuts

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