UNPKG

bybit-api

Version:

Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.

61 lines (60 loc) 1.52 kB
import { PermissionsV5 } from '../shared-v5'; export interface CreateSubMemberParamsV5 { username: string; password?: string; /** * 1: normal, 6: custodial */ memberType: 1 | 6; /** * 0: quick login disabled (default), 1: quick login enabled */ switch?: 0 | 1; isUta?: boolean; note?: string; } export interface CreateSubApiKeyParamsV5 { subuid: number; note?: string; readOnly: 0 | 1; ips?: string; permissions: PermissionsV5; } export interface UpdateApiKeyParamsV5 { apikey?: string; readOnly?: 0 | 1; permissions: PermissionsV5; } export interface UpdateSubApiKeyUpdateParamsV5 { readOnly?: number; ips?: string[]; permissions: PermissionsV5; } export interface DeleteSubMemberParamsV5 { subMemberId: string; } export interface GetSubAccountAllApiKeysParamsV5 { subMemberId: string; limit?: number; cursor?: string; } export interface GetAffiliateUserListParamsV5 { size?: number; cursor?: string; needDeposit?: boolean; need30?: boolean; need365?: boolean; startDate?: string; endDate?: string; } /** Get Friend Referrals - invitation relationship status. 0: alive; 1: invalid */ export interface GetFriendReferralsParamsV5 { status?: string; size?: string; cursor?: string; } /** Sign Agreement - 2: Metals commodity contracts (XAUUSDT, XAGUSDT Perpetuals). Only master account. */ export interface SignAgreementParamsV5 { category: 2; agree: true; }