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