bybit-api
Version:
Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.
90 lines (89 loc) • 2.08 kB
TypeScript
import { PermissionsV5 } from '../v5-shared';
export interface CreateSubMemberResultV5 {
uid: string;
username: string;
memberType: number;
status: number;
remark: string;
}
export interface CreateSubApiKeyResultV5 {
id: string;
note: string;
apiKey: string;
readOnly: number;
secret: string;
permissions: PermissionsV5;
}
export interface SubMemberV5 {
uid: string;
username: string;
memberType: number;
status: number;
accountMode: number;
remark: string;
}
export type ApiKeyType = 1 | 2;
export interface ApiKeyInfoV5 {
id: string;
note: string;
apiKey: string;
readOnly: 0 | 1;
secret: string;
permissions: PermissionsV5;
ips?: string[];
type: ApiKeyType;
deadlineDay?: number;
expiredAt?: string;
createdAt: string;
unified: 0 | 1;
uta: 0 | 1;
userID: number;
inviterID: number;
vipLevel?: string;
mktMakerLevel?: string;
affiliateID?: number;
isMaster: boolean;
}
export interface UpdateApiKeyResultV5 {
id: string;
note: string;
apiKey: string;
readOnly: 0 | 1;
secret: string;
permissions: PermissionsV5;
ips: string[];
}
export interface SubAccountAllApiKeysResultV5 {
result: {
id: string;
ips?: string[];
apiKey: string;
note: string;
status: number;
expiredAt?: string;
createdAt: string;
type: ApiKeyType;
permissions: PermissionsV5;
secret: string;
readOnly: 0 | 1;
deadlineDay?: number;
flag: string;
}[];
nextPageCursor: string;
}
export interface AffiliateUserInfoV5 {
uid: string;
vipLevel: string;
takerVol30Day: string;
makerVol30Day: string;
tradeVol30Day: string;
depositAmount30Day: string;
takerVol365Day: string;
makerVol365Day: string;
tradeVol365Day: string;
depositAmount365Day: string;
totalWalletBalance: '1' | '2' | '3' | '4';
depositUpdateTime: string;
volUpdateTime: string;
KycLevel: 0 | 1 | 2;
}