Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bitgetlimited
GitHub Repository: bitgetlimited/v3-bitget-api-sdk
Path: blob/master/bitget-node-sdk-api/src/lib/model/Config.ts
518 views
1
export class Config{
2
private _apiUri!:string;
3
private _apiKey!: string;
4
private _secretKey!: string;
5
private _passphrase!: string;
6
7
8
constructor(apiUri: string, apiKey: string, secretKey: string, passphrase: string) {
9
this._apiUri = apiUri;
10
this._apiKey = apiKey;
11
this._secretKey = secretKey;
12
this._passphrase = passphrase;
13
}
14
15
get apiUri(): string {
16
return this._apiUri;
17
}
18
19
set apiUri(value: string) {
20
this._apiUri = value;
21
}
22
23
get apiKey(): string {
24
return this._apiKey;
25
}
26
27
set apiKey(value: string) {
28
this._apiKey = value;
29
}
30
31
get secretKey(): string {
32
return this._secretKey;
33
}
34
35
set secretKey(value: string) {
36
this._secretKey = value;
37
}
38
39
get passphrase(): string {
40
return this._passphrase;
41
}
42
43
set passphrase(value: string) {
44
this._passphrase = value;
45
}
46
}
47