@qso-soft/shared
Version:
Shared library for QSO-soft
44 lines (43 loc) • 976 B
TypeScript
import type { LoggerType } from '../../../logger';
import { NumberRange } from '../../../types';
export interface OkxApiSecrets {
apiKey: string;
secret: string;
password: string;
}
export interface OkxRandom {
withdrawToAmount: NumberRange;
withdrawFees: number;
incrBaseSleepDelay?: number;
}
export interface OkxGlobal {
accountName: string;
proxy: string;
accounts: {
[key: string]: OkxApiSecrets;
};
}
export interface OkxConstructor {
logger?: LoggerType;
random?: OkxRandom;
amount?: number;
hideExtraLogs?: boolean;
}
export interface TransferBalanceFromSubToMain {
symbol: string;
amount: number;
subAccName: string;
}
type Method = 'GET' | 'POST';
export interface GetSignatureProps {
timeStamp: string;
method: Method;
requestPath: string;
body: string;
}
export interface GetAuthHeadersProps {
requestPath: string;
method?: Method;
body?: string;
}
export {};