Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
BitgetLimited
GitHub Repository: BitgetLimited/V3-bitget-api-sdk
Path: blob/master/bitget-golang-sdk-api/constants/constants.go
732 views
1
package constants
2
3
const (
4
/*
5
* http headers
6
*/
7
ContentType = "Content-Type"
8
BgAccessKey = "ACCESS-KEY"
9
BgAccessSign = "ACCESS-SIGN"
10
BgAccessTimestamp = "ACCESS-TIMESTAMP"
11
BgAccessPassphrase = "ACCESS-PASSPHRASE"
12
ApplicationJson = "application/json"
13
14
EN_US = "en_US"
15
ZH_CN = "zh_CN"
16
LOCALE = "locale="
17
18
/*
19
* http methods
20
*/
21
GET = "GET"
22
POST = "POST"
23
24
/*
25
* websocket
26
*/
27
WsAuthMethod = "GET"
28
WsAuthPath = "/user/verify"
29
WsOpLogin = "login"
30
WsOpUnsubscribe = "unsubscribe"
31
WsOpSubscribe = "subscribe"
32
TimerIntervalSecond = 5
33
ReconnectWaitSecond = 60
34
35
/*
36
* SignType
37
*/
38
RSA = "RSA"
39
SHA256 = "SHA256"
40
)
41
42