Merge pull request #183 from twxia/patch-1

missing unifiedPrivate in WS_AUTH_ON_CONNECT_KEYS
This commit is contained in:
Tiago
2022-10-12 10:35:06 +01:00
committed by GitHub
4 changed files with 5 additions and 3 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "2.3.0", "version": "3.1.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "bybit-api", "name": "bybit-api",
"version": "2.3.0", "version": "3.1.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^0.21.0", "axios": "^0.21.0",

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "3.1.0", "version": "3.1.1",
"description": "Complete & robust node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", "description": "Complete & robust node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

View File

@@ -18,6 +18,7 @@ export const API_ERROR_CODE = {
PARAMS_MISSING_OR_WRONG: 10001, PARAMS_MISSING_OR_WRONG: 10001,
INVALID_API_KEY_OR_PERMISSIONS: 10003, INVALID_API_KEY_OR_PERMISSIONS: 10003,
INCORRECT_API_KEY_PERMISSIONS: 10005, INCORRECT_API_KEY_PERMISSIONS: 10005,
INCORRECT_PRIVATE_OPERATIONS: 3303001,
/** Account not unified margin, update required */ /** Account not unified margin, update required */
ACCOUNT_NOT_UNIFIED: 10020, ACCOUNT_NOT_UNIFIED: 10020,
BALANCE_INSUFFICIENT_SPOT_V3: 12131, BALANCE_INSUFFICIENT_SPOT_V3: 12131,

View File

@@ -145,6 +145,7 @@ export const WS_AUTH_ON_CONNECT_KEYS: WsKey[] = [
WS_KEY_MAP.spotV3Private, WS_KEY_MAP.spotV3Private,
WS_KEY_MAP.usdcOptionPrivate, WS_KEY_MAP.usdcOptionPrivate,
WS_KEY_MAP.usdcPerpPrivate, WS_KEY_MAP.usdcPerpPrivate,
WS_KEY_MAP.unifiedPrivate,
]; ];
export const PUBLIC_WS_KEYS = [ export const PUBLIC_WS_KEYS = [