querier

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaumQuerier

type DaumQuerier struct {
}

DaumQuerier scrapes entity list and price from Daum portal

func (*DaumQuerier) GetQuotes added in v0.0.3

func (q *DaumQuerier) GetQuotes(symbolCode string, perPage, page int) ([]entity.Quote, error)

func (*DaumQuerier) GetStocks added in v0.0.3

func (q *DaumQuerier) GetStocks(marketType entity.MarketType) ([]entity.Stock, error)

type Querier

type Querier interface {
	GetStocks(entity.MarketType) ([]entity.Stock, error)
	GetQuotes(string, int, int) ([]entity.Quote, error)
}

Querier interface defines how to retrieve KOSPI and KOSDAQ entity list and price

Jump to

Keyboard shortcuts

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