pair

package
v0.0.0-...-3099d22 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: AGPL-3.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pair

type Pair struct {
	BaseSymbol  string `json:"base_symbol"`
	QuoteSymbol string `json:"quote_symbol"`
}

func New

func New(baseSymbol, quoteSymbol string) Pair

func UniqueArray

func UniqueArray(pair1, pair2 []Pair) []Pair

func (Pair) String

func (p Pair) String() string

type Request

type Request struct {
	// in:query
	//
	// Pairs exchange
	// Required: false
	Exchange *string `json:"exchange" schema:"exchange,ruired"`
}

Pairs request payload swagger:parameters pairs

type Response

type Response struct {
	// in:body
	// The pairs array
	// Required: true
	Pairs []Pair `json:"pairs"`
	// The list generation time (in UTC)
	// Required: true
	Time time.Time `json:"time"`
}

swagger:model PairsList

Jump to

Keyboard shortcuts

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