openex

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Latest(params LatestParams) (*rsp.SingleDate, error)
	SingleDate(params SingleDateParams) (*rsp.SingleDate, error)
	History(params HistoryParams) (*rsp.History, error)
}

func NewDefaultClient

func NewDefaultClient() Client

type Config

type Config struct {
	BaseUrl  string
	Protocol string
	Port     string
}

type HistoryParams

type HistoryParams struct {
	StartAt time.Gexc `json:"start_at" url:"start_at"`
	EndAt   time.Gexc `json:"end_at" url:"end_at"`
	Base    string    `json:"base" url:"base"`
	Symbols []string  `json:"symbols" url:"symbols"`
}

type LatestParams

type LatestParams struct {
	Base    string   `json:"base" url:"base"`
	Symbols []string `json:"symbols" url:"symbols"`
}

type SingleDateParams

type SingleDateParams struct {
	Date    time.Gexc `json:"date"`
	Base    string    `json:"base" url:"base"`
	Symbols []string  `json:"symbols" url:"symbols"`
}

Jump to

Keyboard shortcuts

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