|
@@ -49,6 +49,29 @@ type FutureGoodEdbDataItem struct {
|
|
|
CreateTime time.Time
|
|
|
}
|
|
|
|
|
|
+// FutureGoodDataFromThs 同花顺期货数据
|
|
|
+type FutureGoodDataFromThs struct {
|
|
|
+ DataVol int64 `json:"dataVol"`
|
|
|
+ Errmsg string `json:"errmsg"`
|
|
|
+ Errorcode int64 `json:"errorcode"`
|
|
|
+ Perf interface{} `json:"perf"`
|
|
|
+ Tables FutureGoodDataTables `json:"tables"`
|
|
|
+}
|
|
|
+
|
|
|
+// FutureGoodDataTables 同花顺表格数据
|
|
|
+type FutureGoodDataTables struct {
|
|
|
+ //TradeCode []string `json:"id"`
|
|
|
+ Time []string `json:"time"`
|
|
|
+ Open []float64 `json:"open"`
|
|
|
+ High []float64 `json:"high"`
|
|
|
+ Low []float64 `json:"low"`
|
|
|
+ Close []float64 `json:"close"`
|
|
|
+ Volume []float64 `json:"volume"`
|
|
|
+ Amount []float64 `json:"amount"`
|
|
|
+ Ccl []float64 `json:"ccl"`
|
|
|
+ Settlement []float64 `json:"settlement"`
|
|
|
+}
|
|
|
+
|
|
|
// GetFutureGoodEdbDataList 获取期货指标数据列表
|
|
|
func GetFutureGoodEdbDataList(condition string, pars []interface{}) (list []*FutureGoodEdbDataItem, err error) {
|
|
|
o := orm.NewOrm()
|