123456789101112131415161718192021222324252627 |
- // +build linux
- // Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved.
- package tick
- import (
- "log"
- //"market"
- "testing"
- )
- func TestSaxo(t *testing.T) {
- conf := &DsConf{
- CfgFile: "saxo-mk.cfg",
- SymbolsFile: "saxo-symbols.csv",
- }
- ds, err := newSaxoDS(conf)
- if err != nil {
- t.Fatal(err)
- }
- go ds.Run()
- chmk := ds.GetMarket()
- for mk := range chmk {
- log.Println(getTime(mk.Timestamp), mk.InsId)
- }
- log.Println("@@@@@@@:go here")
- }
|