Documentation ¶
Index ¶
- Constants
- Variables
- func GBKToUTF8(s []byte) ([]byte, error)
- type AGM
- type AUM
- type CM
- type CNYX
- type CPI
- type CUM
- type D
- type Detail
- type GCHN10
- type IM
- type LPR
- type NIM
- type PostData
- type R
- type Record
- type RecordSt
- type RegionCPI
- type RegionGDP
- type Respond
- func RespondAGM() (row []Respond)
- func RespondAUM() (row []Respond)
- func RespondCM() (row []Respond)
- func RespondCNYX() (row []Respond)
- func RespondCUM() (row []Respond)
- func RespondGCHN10() (row []Respond)
- func RespondHKDCNY() (row []Respond)
- func RespondHSI() (row []Respond)
- func RespondHT(name, condition string) (row []Respond)
- func RespondIM() (row []Respond)
- func RespondIndustryIndex(sourceTargetCode string) (row []Respond)
- func RespondMacroIndex(sourceTargetCode, targetCode string) (row []Respond)
- func RespondNIM() (row []Respond)
- func RespondSCI(pd PostData) (row []Respond)
- func RespondSCM() (row []Respond)
- func RespondShiBor(stopPage int) (row []Respond)
- func RespondSina(sourceTargetCode string) (row []Respond)
- func RespondSinaCPI() (row []Respond)
- func RespondSinaRegionCPI() (row []Respond)
- func RespondSinaRegionGDP() (row []Respond)
- func RespondTBI() (row []Respond)
- func RespondUSDCNY() (row []Respond)
- func RespondUSLibor(targetCode string) (row []Respond)
- func RespondYM() (row []Respond)
- func RespondYinHang() (row []Respond)
- type SCIData
- type SCM
- type StructIndustryIndex
- type StructLPR
- type StructSCI
- type YM
Constants ¶
View Source
const CNYXURL = "http://hq.cnindex.com.cn/market/market/getIndexRealTimeData?indexCode=CNYX"
View Source
const GCHN10URL = "https://datacenter-web.eastmoney.com/api/data/get?type=RPTA_WEB_TREASURYYIELD&sty=ALL&st=SOLAR_DATE&sr=-1&p=%d&ps=500"
View Source
const HT = "https://quote.fx678.com/symbol/%s"
View Source
const USLiborURL = "https://quote.fx678.com/rate/libor"
Variables ¶
View Source
var AGMApi = "http://futsseapi.eastmoney.com/static/113_agm_qt"
View Source
var AUMApi = "http://futsseapi.eastmoney.com/static/113_aum_qt"
View Source
var CMApi = "http://futsseapi.eastmoney.com/static/114_cm_qt"
View Source
var CUMApi = "http://futsseapi.eastmoney.com/static/113_cum_qt"
View Source
var HkdCnyApi = "https://hq.sinajs.cn/rn=1639973901502list=fx_shkdcny"
View Source
var HsiAPI = "http://hq.sinajs.cn/rn=1639970108245&list=rt_hkHSI"
View Source
var ImApi = "http://futsseapi.eastmoney.com/static/114_im_qt"
View Source
var NIMApi = "http://futsseapi.eastmoney.com/static/113_nim_qt"
View Source
var SCMApi = "http://futsseapi.eastmoney.com/static/142_scm_qt"
View Source
var UsdCnyApi = "https://hq.sinajs.cn/rn=1639973351984list=fx_susdcny"
View Source
var YMApi = "http://futsseapi.eastmoney.com/static/114_ym_qt"
Functions ¶
Types ¶
type CNYX ¶
type CNYX struct { Code int `json:"code"` Data struct { Data [][]interface{} `json:"data"` } `json:"data"` }
type PostData ¶
type PostData struct { HY string `json:"hy"` Level string `json:"level"` Path1 string `json:"path1"` Path2 string `json:"path2"` Path3 string `json:"path3"` Path4 string `json:"path4"` Type string `json:"type"` }
PostData 卓创资讯接口的请求入参
type RegionGDP ¶
type RegionGDP struct {
Data [][]string `json:"data"`
}
RegionGDP 新浪财经地区生产总值接口返回的结构体
type Respond ¶
func RespondAGM ¶
func RespondAGM() (row []Respond)
func RespondAUM ¶
func RespondAUM() (row []Respond)
func RespondCNYX ¶
func RespondCNYX() (row []Respond)
func RespondCUM ¶
func RespondCUM() (row []Respond)
func RespondGCHN10 ¶
func RespondGCHN10() (row []Respond)
func RespondHKDCNY ¶
func RespondHKDCNY() (row []Respond)
func RespondHSI ¶
func RespondHSI() (row []Respond)
func RespondIndustryIndex ¶
RespondIndustryIndex 返回东方财富行业指标数据 适用指标:中国大宗商品指数、物流业景气指数、波罗的海干散货指数
func RespondMacroIndex ¶
RespondMacroIndex 返回东方财富宏观指标数据 适用指标:工业增加值增长、社会消费品零售总额、货币供应量、居民消费价格指数(CPI)、国内生产总值(GDP) 采购经理人指数(PMI)、工业品出厂价格指数(PPI)、贷款基准利率LPR、海关进出口
func RespondNIM ¶
func RespondNIM() (row []Respond)
func RespondSCM ¶
func RespondSCM() (row []Respond)
func RespondShiBor ¶
RespondShiBor 返回东方财富的数据 适用指标:上海银行间同业拆放利率
func RespondSina ¶
RespondSina 返回新浪财经的数据 适用指标:人民币汇率、美元指数
func RespondSinaCPI ¶
func RespondSinaCPI() (row []Respond)
RespondSinaCPI 返回新浪财经的居民消费价格指数 // 适用指标:居民消费价格指数
func RespondSinaRegionCPI ¶
func RespondSinaRegionCPI() (row []Respond)
RespondSinaRegionCPI 返回新浪财经的地区居民消费价格指数 TODO(IMPORTANT):因为地区居民消费价格指数有几百页,首次入库全量,后期每次5页 适用指标:地区居民消费价格指数
func RespondSinaRegionGDP ¶
func RespondSinaRegionGDP() (row []Respond)
RespondSinaRegionGDP 返回新浪财经的地区生产总值数据 适用指标:地区生产总值
func RespondUSDCNY ¶
func RespondUSDCNY() (row []Respond)
func RespondUSLibor ¶
func RespondYinHang ¶
func RespondYinHang() (row []Respond)
type StructIndustryIndex ¶
StructIndustryIndex 东方财富行业指标接口返回的数据结构
Click to show internal directories.
Click to hide internal directories.