ds_easyforex_test.go 421 B

1234567891011121314151617181920212223
  1. // Copyright 2013-2014 Fuzamei tech Ltd. All rights reserved.
  2. package tick
  3. import (
  4. "log"
  5. //"market"
  6. "testing"
  7. )
  8. func TestEasyForex(t *testing.T) {
  9. conf := &DsConf{}
  10. ds , _ := newEasyForexDS(conf) //, err
  11. //if err != nil {
  12. //t.Fatal(err)
  13. //}
  14. go ds.Run()
  15. chmk := ds.GetMarket()
  16. for mk := range chmk {
  17. log.Println(getTime(mk.Timestamp), mk.InsId)
  18. }
  19. log.Println("@@@@@@@:go here")
  20. }