Skip to content

Commit

Permalink
Merge pull request #347 from karimsan/master
Browse files Browse the repository at this point in the history
v3.10.5: Update `UpdateApiKeyParamsV5`
  • Loading branch information
tiagosiebler authored Jun 5, 2024
2 parents 23edc9e + ceae8a5 commit 996c347
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
7 changes: 4 additions & 3 deletions src/rest-client-v5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1345,10 +1345,11 @@ export class RestClientV5 extends BaseRestClient {

/**
* This endpoint modifies the settings of a sub API key.
* Use the API key pending to be modified to call the endpoint.
* Only the API key that calls this interface can be modified.
* 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.
* 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(
params: UpdateApiKeyParamsV5,
Expand Down
1 change: 1 addition & 0 deletions src/types/request/v5-user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export interface CreateSubApiKeyParamsV5 {
}

export interface UpdateApiKeyParamsV5 {
apikey?: string;
readOnly?: 0 | 1;
ips?: string[];
permissions: PermissionsV5;
Expand Down

0 comments on commit 996c347

Please sign in to comment.