Files
injoyai-tdx/protocol/model_history_minute_trade_test.go
2024-11-04 23:54:28 +08:00

23 lines
474 B
Go

package protocol
import (
"testing"
)
func Test_stockHistoryMinuteTrade_Frame(t *testing.T) {
// 预期 0c 02000000 00 1200 1200 b50f 84da3401 0000 30303030303100006400
// 0c000000000112001200b50f84da3401000030303030303100006400
f, err := MHistoryMinuteTrade.Frame(HistoryMinuteTradeReq{
Date: "20241028",
Exchange: ExchangeSZ,
Code: "000001",
Start: 0,
Count: 100,
})
if err != nil {
t.Error(err)
return
}
t.Log(f.Bytes().HEX())
}