123456789101112131415161718192021222324252627 |
- // Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved.
- package tick
- // 本文件测试lmax数据源接口
- import (
- "log"
- "testing"
- )
- func TestLmaxSubMarket(t *testing.T) {
- lmaxConf := &DsConf{
- User: "wave3366",
- PassWord: "Tg417395",
- Url: "https://trade.lmaxtrader.com",
- SaveDir: "./",
- Run: true,
- }
- ds , _ := newLmaxDS(lmaxConf)
- go ds.Run()
- chmk := ds.GetMarket()
- for mk := range chmk {
- log.Println(getTime(mk.Timestamp), mk.InsId)
- }
- log.Println("@@@@@@@:go here")
- }
|