candlegrp

package
v0.0.0-...-c46be8d Latest Latest
Warning

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

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

Documentation

Overview

Package candlegrp maintains the group of handlers for candle access.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	Candle candle.Core
}

Handlers manages the set of candle endpoints.

func (Handlers) Query

Query returns a list of products with paging.

func (Handlers) QueryByID

func (h Handlers) QueryByID(ctx context.Context, w http.ResponseWriter, r *http.Request) error

QueryByID returns a candle by its ID.

func (Handlers) QueryBySymbolAndInterval

func (h Handlers) QueryBySymbolAndInterval(ctx context.Context, w http.ResponseWriter, r *http.Request) error

QueryBySymbolAndInterval returns a list of candles matching with symbol and interval, with paging.

Jump to

Keyboard shortcuts

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