gitee.com/quant1x/engine@v1.8.4/trader/holdingorders_test.go (about) 1 package trader 2 3 import ( 4 "encoding/json" 5 "fmt" 6 "gitee.com/quant1x/gox/api" 7 "testing" 8 ) 9 10 func Test_lazyLoadHoldingOrder(t *testing.T) { 11 lazyLoadHoldingOrder() 12 data, err := json.Marshal(holdingOrders) 13 fmt.Println(data, err) 14 if err != nil { 15 return 16 } 17 text := api.Bytes2String(data) 18 fmt.Println(text) 19 }