cryptobot-types 1.0.0 → 1.0.2
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/README.md +11 -1
- package/index.js +2 -0
- package/package.json +21 -16
- package/.gitattributes +0 -2
- package/dist/indicators.js +0 -2
- package/dist/mongodb.js +0 -2
- package/dist/okx.js +0 -15
- package/dist/orderHelper.js +0 -2
- package/dist/strategy.js +0 -2
- package/dist/trading.js +0 -2
- package/tsconfig.json +0 -13
package/README.md
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
# cryptobot-types
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
This package contains TypeScript type definitions for use with a crypto trading framework and dashboard.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
You can install this package using npm:
|
|
8
|
+
`npm install cryptobot-types`
|
|
9
|
+
|
|
10
|
+
## About
|
|
11
|
+
|
|
12
|
+
These types are designed to be used with a crypto trading framework and dashboard, and provide type definitions for common data structures and functions used in these applications.
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cryptobot-types",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"types": "types/index.d.ts",
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "cryptobot-types",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "types/index.d.ts",
|
|
7
|
+
"registry": "https://registry.npmjs.org/",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc -b"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"index.js",
|
|
13
|
+
"types"
|
|
14
|
+
],
|
|
15
|
+
"author": "",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@types/node": "^20.8.0",
|
|
19
|
+
"okx-api": "^1.1.3"
|
|
20
|
+
}
|
|
21
|
+
}
|
package/.gitattributes
DELETED
package/dist/indicators.js
DELETED
package/dist/mongodb.js
DELETED
package/dist/okx.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isOrderUpdateEvent = exports.isPositionUpdateEvent = exports.isTickerUpdateEvent = void 0;
|
|
4
|
-
const isTickerUpdateEvent = (event) => {
|
|
5
|
-
return event.arg.channel === "tickers";
|
|
6
|
-
};
|
|
7
|
-
exports.isTickerUpdateEvent = isTickerUpdateEvent;
|
|
8
|
-
const isPositionUpdateEvent = (event) => {
|
|
9
|
-
return event.arg.channel === "positions";
|
|
10
|
-
};
|
|
11
|
-
exports.isPositionUpdateEvent = isPositionUpdateEvent;
|
|
12
|
-
const isOrderUpdateEvent = (event) => {
|
|
13
|
-
return event.arg.channel === "orders";
|
|
14
|
-
};
|
|
15
|
-
exports.isOrderUpdateEvent = isOrderUpdateEvent;
|
package/dist/orderHelper.js
DELETED
package/dist/strategy.js
DELETED
package/dist/trading.js
DELETED
package/tsconfig.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es6",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"outDir": "dist",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
"forceConsistentCasingInFileNames": true
|
|
10
|
-
},
|
|
11
|
-
"include": ["types/**/*"],
|
|
12
|
-
"exclude": ["node_modules", "**/*.spec.ts"]
|
|
13
|
-
}
|