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

     1  package okex
     2  
     3  import "net/http"
     4  
     5  /*
     6   OKEX api config info
     7   @author Tony Tian
     8   @date 2018-03-17
     9   @version 1.0.0
    10  */
    11  
    12  type Config struct {
    13  	// Rest api endpoint url. eg: http://www.okex.com/
    14  	Endpoint string
    15  
    16  	// Rest websocket api endpoint url. eg: ws://192.168.80.113:10442/
    17  	WSEndpoint string
    18  
    19  	// The user's api key provided by OKEx.
    20  	ApiKey string
    21  	// The user's secret key provided by OKEx. The secret key used to sign your request data.
    22  	SecretKey string
    23  	// The Passphrase will be provided by you to further secure your API access.
    24  	Passphrase string
    25  	// Http request timeout.
    26  	TimeoutSecond int
    27  	// Whether to print API information
    28  	IsPrint bool
    29  	// Internationalization @see file: constants.go
    30  	I18n string
    31  	// 设置代理 http://127.0.0.1:1080
    32  	ProxyURL string
    33  	// Custom http client
    34  	HTTPClient *http.Client
    35  }