ds_lmax_test.go 542 B

123456789101112131415161718192021222324252627
  1. // Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved.
  2. package tick
  3. // 本文件测试lmax数据源接口
  4. import (
  5. "log"
  6. "testing"
  7. )
  8. func TestLmaxSubMarket(t *testing.T) {
  9. lmaxConf := &DsConf{
  10. User: "wave3366",
  11. PassWord: "Tg417395",
  12. Url: "https://trade.lmaxtrader.com",
  13. SaveDir: "./",
  14. Run: true,
  15. }
  16. ds , _ := newLmaxDS(lmaxConf)
  17. go ds.Run()
  18. chmk := ds.GetMarket()
  19. for mk := range chmk {
  20. log.Println(getTime(mk.Timestamp), mk.InsId)
  21. }
  22. log.Println("@@@@@@@:go here")
  23. }