sina

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package sina 新浪财经接口封装

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchResult

type SearchResult struct {
	// 数字代码
	SecurityCode string
	// 带后缀的代码
	Secucode string
	// 股票名称
	Name string
	// 股市类型: 11=A股 31=港股 41=美股 103=英股
	Market int
}

SearchResult 搜索结果

type Sina

type Sina struct {
	// http 客户端
	HTTPClient *http.Client
}

Sina 新浪财经数据源

func NewSina

func NewSina() Sina

NewSina 创建 Sina 实例

func (Sina) KeywordSearch

func (s Sina) KeywordSearch(ctx context.Context, kw string) (results []SearchResult, err error)

KeywordSearch 关键词搜索, 股票、代码、拼音

Jump to

Keyboard shortcuts

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