bitget-api 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/broker-client.d.ts +1 -1
- package/lib/futures-client.d.ts +1 -1
- package/lib/futures-client.js.map +1 -1
- package/lib/index.d.ts +5 -5
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/rest-client-v2.d.ts +528 -260
- package/lib/rest-client-v2.js +248 -248
- package/lib/rest-client-v2.js.map +1 -1
- package/lib/spot-client.d.ts +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/index.js +1 -1
- package/lib/types/index.js.map +1 -1
- package/lib/types/request/index.d.ts +5 -5
- package/lib/types/request/index.js +5 -5
- package/lib/types/request/index.js.map +1 -1
- package/lib/types/response/index.d.ts +10 -3
- package/lib/types/response/index.js +10 -3
- package/lib/types/response/index.js.map +1 -1
- package/lib/types/response/{futures.d.ts → v1/futures.d.ts} +1 -1
- package/lib/types/response/v1/futures.js.map +1 -0
- package/lib/types/response/v1/shared.js.map +1 -0
- package/lib/types/response/{spot.js.map → v1/spot.js.map} +1 -1
- package/lib/types/response/v2/broker.d.ts +135 -0
- package/lib/types/response/v2/broker.js +8 -0
- package/lib/types/response/v2/broker.js.map +1 -0
- package/lib/types/response/v2/common.d.ts +384 -0
- package/lib/types/response/v2/common.js +8 -0
- package/lib/types/response/v2/common.js.map +1 -0
- package/lib/types/response/v2/copy-trading.d.ts +385 -0
- package/lib/types/response/v2/copy-trading.js +10 -0
- package/lib/types/response/v2/copy-trading.js.map +1 -0
- package/lib/types/response/v2/earn.d.ts +294 -0
- package/lib/types/response/v2/earn.js +10 -0
- package/lib/types/response/v2/earn.js.map +1 -0
- package/lib/types/response/v2/futures.d.ts +546 -0
- package/lib/types/response/v2/futures.js +8 -0
- package/lib/types/response/v2/futures.js.map +1 -0
- package/lib/types/response/v2/margin.d.ts +277 -0
- package/lib/types/response/v2/margin.js +8 -0
- package/lib/types/response/v2/margin.js.map +1 -0
- package/lib/types/response/v2/spot.d.ts +385 -0
- package/lib/types/response/v2/spot.js +8 -0
- package/lib/types/response/v2/spot.js.map +1 -0
- package/lib/types/shared.d.ts +1 -1
- package/lib/types/websockets/events.d.ts +11 -11
- package/lib/util/BaseRestClient.js.map +1 -1
- package/lib/util/BaseWSClient.d.ts +2 -4
- package/lib/util/BaseWSClient.js +10 -9
- package/lib/util/BaseWSClient.js.map +1 -1
- package/lib/util/WsStore.js.map +1 -1
- package/lib/util/browser-support.js +1 -0
- package/lib/util/browser-support.js.map +1 -1
- package/lib/util/index.d.ts +2 -2
- package/lib/util/index.js +2 -2
- package/lib/util/index.js.map +1 -1
- package/lib/util/logger.js +1 -0
- package/lib/util/logger.js.map +1 -1
- package/lib/util/node-support.js +1 -0
- package/lib/util/node-support.js.map +1 -1
- package/lib/util/requestUtils.d.ts +1 -1
- package/lib/util/type-guards.js +1 -1
- package/lib/util/websocket-util.js +5 -3
- package/lib/util/websocket-util.js.map +1 -1
- package/lib/websocket-client-v2.js +2 -2
- package/lib/websocket-client-v2.js.map +1 -1
- package/lib/websocket-client.js +11 -10
- package/lib/websocket-client.js.map +1 -1
- package/package.json +7 -1
- package/lib/types/response/futures.js.map +0 -1
- package/lib/types/response/shared.js.map +0 -1
- /package/lib/types/response/{futures.js → v1/futures.js} +0 -0
- /package/lib/types/response/{shared.d.ts → v1/shared.d.ts} +0 -0
- /package/lib/types/response/{shared.js → v1/shared.js} +0 -0
- /package/lib/types/response/{spot.d.ts → v1/spot.d.ts} +0 -0
- /package/lib/types/response/{spot.js → v1/spot.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bitget-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Node.js & JavaScript SDK for Bitget REST APIs & WebSockets, with TypeScript & end-to-end tests.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"build:clean": "npm run clean && npm run build",
|
|
17
17
|
"build:watch": "npm run clean && tsc --watch",
|
|
18
18
|
"pack": "webpack --config webpack/webpack.config.js",
|
|
19
|
+
"lint": "eslint src",
|
|
19
20
|
"prepublish": "npm run build:clean",
|
|
20
21
|
"betapublish": "npm publish --tag beta"
|
|
21
22
|
},
|
|
@@ -29,7 +30,12 @@
|
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@types/jest": "^29.0.3",
|
|
31
32
|
"@types/node": "^18.7.23",
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "^8.18.0",
|
|
32
34
|
"eslint": "^8.24.0",
|
|
35
|
+
"eslint-config-prettier": "^9.1.0",
|
|
36
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
37
|
+
"eslint-plugin-require-extensions": "^0.1.3",
|
|
38
|
+
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
33
39
|
"jest": "^29.1.1",
|
|
34
40
|
"source-map-loader": "^4.0.0",
|
|
35
41
|
"ts-jest": "^29.0.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"futures.js","sourceRoot":"","sources":["../../../src/types/response/futures.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/types/response/shared.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|