github.com/frankrap/okex-api@v1.0.4/index_api_test.go (about)

     1  package okex
     2  
     3  import "testing"
     4  
     5  func TestGetIndexConstituents(t *testing.T) {
     6  	c := NewTestClient()
     7  	result, err := c.GetIndexConstituents("BTC-USDT")
     8  	if err != nil {
     9  		t.Error(err)
    10  		return
    11  	}
    12  	t.Logf("%#v", result)
    13  }