add v5 user rest endpoints

This commit is contained in:
tiagosiebler
2023-02-16 15:30:01 +00:00
parent e312491968
commit d4add6d964
7 changed files with 231 additions and 0 deletions

View File

@@ -13,3 +13,4 @@ export * from './v5-asset';
export * from './v5-market';
export * from './v5-position';
export * from './v5-trade';
export * from './v5-user';

View File

@@ -127,3 +127,10 @@ export interface WithdrawParamsV5 {
forceChain?: number;
accountType?: string;
}
export interface CreateSubMemberParamsV5 {
username: string;
memberType: 1 | 6;
switch?: 0 | 1;
note?: string;
}

View File

@@ -0,0 +1,21 @@
import { PermissionsV5 } from '../v5-shared';
export interface CreateSubApiKeyParamsV5 {
subuid: number;
note?: string;
readOnly: 0 | 1;
ips?: string[];
permissions: PermissionsV5;
}
export interface UpdateApiKeyParamsV5 {
readOnly?: 0 | 1;
ips?: string[];
permissions: PermissionsV5;
}
export interface UpdateSubApiKeyUpdateParamsV5 {
readOnly?: number;
ips?: string[];
permissions: PermissionsV5;
}