mirror of
https://github.com/bensema/gotdx.git
synced 2025-11-21 02:45:33 +08:00
test 完善
This commit is contained in:
@@ -63,6 +63,7 @@ func NewGetSecurityBars() *GetSecurityBars {
|
||||
obj.contentHex = "00000000000000000000"
|
||||
return obj
|
||||
}
|
||||
|
||||
func (obj *GetSecurityBars) SetParams(req *GetSecurityBarsRequest) {
|
||||
obj.request = req
|
||||
obj.request.I = 1
|
||||
@@ -87,9 +88,9 @@ func (obj *GetSecurityBars) Serialize() ([]byte, error) {
|
||||
}
|
||||
|
||||
// 结果数据都是\n,\t分隔的中文字符串,比如查询K线数据,返回的结果字符串就形如
|
||||
///“时间\t开盘价\t收盘价\t最高价\t最低价\t成交量\t成交额\n
|
||||
///20150519\t4.644000\t4.732000\t4.747000\t4.576000\t146667487\t683638848.000000\n
|
||||
///20150520\t4.756000\t4.850000\t4.960000\t4.756000\t353161092\t1722953216.000000”
|
||||
// /“时间\t开盘价\t收盘价\t最高价\t最低价\t成交量\t成交额\n
|
||||
// /20150519\t4.644000\t4.732000\t4.747000\t4.576000\t146667487\t683638848.000000\n
|
||||
// /20150520\t4.756000\t4.850000\t4.960000\t4.756000\t353161092\t1722953216.000000”
|
||||
func (obj *GetSecurityBars) UnSerialize(header interface{}, data []byte) error {
|
||||
obj.respHeader = header.(*RespHeader)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user