Constructors
constructor
- new BaseClient(apiKey: string, apiSecret: string, apiUrl: string): BaseClient
-
Parameters
-
apiKey: string
-
apiSecret: string
-
apiUrl: string
Methods
calculateSign
- calculateSign<T>(data: T): { postdata: string; sign: string }
-
Type parameters
Parameters
Returns { postdata: string; sign: string }
-
postdata: string
-
sign: string
getRequest
- getRequest<T>(apiPath: string): Promise<T>
-
Type parameters
Parameters
Returns Promise<T>
postRequest
- postRequest<T>(url: string, data?: {}): Promise<T>
-
Type parameters
Parameters
-
url: string
-
data: {} = ...
Returns Promise<T>