This commit is contained in:
钱纯净
2024-10-14 22:56:54 +08:00
parent f26c8027d0
commit 68a04b7ed7
4 changed files with 66 additions and 7 deletions

21
protocol/model_test.go Normal file
View File

@@ -0,0 +1,21 @@
package protocol
import (
"testing"
)
/*
0c00000000011a001a003e05050000000000000002000030303030303101363030303038
0c02000000011a001a003e05050000000000000002000030303030303101363030303038
*/
func TestNewSecurityQuotes(t *testing.T) {
f, err := NewSecurityQuotes(map[Exchange]string{
ExchangeSH: "000001",
ExchangeSZ: "600008",
})
if err != nil {
t.Error(err)
return
}
t.Log(f.Bytes().HEX())
}