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 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
@@ -0,0 +1,2 @@
1
+ // index.js
2
+ export * from './types';
package/package.json CHANGED
@@ -1,16 +1,21 @@
1
- {
2
- "name": "cryptobot-types",
3
- "version": "1.0.0",
4
- "description": "",
5
- "main": "index.js",
6
- "types": "types/index.d.ts",
7
- "scripts": {
8
- "build": "tsc -b"
9
- },
10
- "author": "",
11
- "license": "ISC",
12
- "dependencies": {
13
- "@types/node": "^20.8.0",
14
- "okx-api": "^1.1.3"
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
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/mongodb.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
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;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/strategy.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/dist/trading.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
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
- }