Merge pull request #347 from karimsan/master

v3.10.5: Update `UpdateApiKeyParamsV5`
This commit is contained in:
Tiago
2024-06-05 10:40:15 +01:00
committed by GitHub
4 changed files with 8 additions and 6 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "3.10.4", "version": "3.10.5",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bybit-api", "name": "bybit-api",
"version": "3.10.4", "version": "3.10.5",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^1.6.6", "axios": "^1.6.6",

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "3.10.4", "version": "3.10.5",
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

View File

@@ -1345,10 +1345,11 @@ export class RestClientV5 extends BaseRestClient {
/** /**
* This endpoint modifies the settings of a sub API key. * This endpoint modifies the settings of a sub API key.
* Use the API key pending to be modified to call the endpoint. * Use the API key pending to be modified to call the endpoint or use master account api key to manage its sub account api key.
* Only the API key that calls this interface can be modified. * The API key must have one of the below permissions in order to call this endpoint
* *
* The API key must own "Account Transfer" permission to be allowed to call this API endpoint. * - sub API key: "Account Transfer", "Sub Member Transfer"
* - master API Key: "Account Transfer", "Sub Member Transfer", "Withdrawal"
*/ */
updateSubApiKey( updateSubApiKey(
params: UpdateApiKeyParamsV5, params: UpdateApiKeyParamsV5,

View File

@@ -25,6 +25,7 @@ export interface CreateSubApiKeyParamsV5 {
} }
export interface UpdateApiKeyParamsV5 { export interface UpdateApiKeyParamsV5 {
apikey?: string;
readOnly?: 0 | 1; readOnly?: 0 | 1;
ips?: string[]; ips?: string[];
permissions: PermissionsV5; permissions: PermissionsV5;