kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
27 lines (26 loc) • 1.04 kB
TypeScript
/**
* KcSigner contains information about `apiKey`, `apiSecret`, `apiPassPhrase`, and `apiKeyVersion`
* and provides methods to sign and generate headers for API requests.
*/
export declare class KcSigner {
private readonly apiKey;
private readonly apiSecret;
private readonly apiPassphrase;
private readonly brokerName;
private readonly brokerPartner;
private readonly brokerKey;
constructor(apiKey?: string, apiSecret?: string, apiPassphrase?: string, brokerName?: string, brokerPartner?: string, brokerKey?: string);
/**
* Sign the input data with the given key using HMAC-SHA256
*/
private sign;
/**
* Headers method generates and returns a map of signature headers needed for API authorization
* It takes a plain string as an argument to help form the signature
*/
headers(plain: string): Record<string, string>;
/**
* Generate broker-specific headers including partner verification
*/
brokerHeaders(plain: string): Record<string, string>;
}