package fix_test import "tickserver/api/fix" import "testing" import "fmt" func TestMarketData(t *testing.T) { path := "./SessionCfgMk.cfg" fmt.Println(path) ss , err := fix.NewSessionSettings(path) if err != nil { panic(err) } app := &fix.AppBase{} trade, err := fix.NewAppTradeClient(app, ss) if err != nil { panic(err) } trade.Start() fmt.Println("run start") trade.Run() fmt.Println("run end") trade.Stop() trade.Free() fmt.Println("stop") }