package main import "tickserver/api/fix" import "fmt" import "os" func main() { path := os.Getenv("GOPATH") + "/bin/data/md.cfg" fmt.Println(path) ss , err := fix.NewSessionSettings(path) if err != nil { panic(err) } sourdatach := make(chan *fix.TickFull) fix.InitBroadcast(sourdatach) app := fix.NewMarketInfoApp(sourdatach) trade, err := fix.NewAppTradeClient(app, ss) if err != nil { panic(err) } fmt.Println("run start") trade.Start() trade.Run() fmt.Println("run end") trade.Stop() trade.Free() fmt.Println("stop") }