coinbase-api 0.3.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 ADDED
@@ -0,0 +1,50 @@
1
+ # coinbase-api
2
+
3
+ [![npm version](https://img.shields.io/npm/v/coinbase-api)][1] [![npm size](https://img.shields.io/bundlephobia/min/coinbase-api/latest)][1] [![npm downloads](https://img.shields.io/npm/dt/coinbase-api)][1]
4
+ [![last commit](https://img.shields.io/github/last-commit/tiagosiebler/coinbase-api)][1]
5
+ [![CodeFactor](https://www.codefactor.io/repository/github/tiagosiebler/coinbase-api/badge)](https://www.codefactor.io/repository/github/tiagosiebler/coinbase-api)
6
+
7
+ [1]: https://www.npmjs.com/package/coinbase-api
8
+
9
+ WARNING: This package is still early beta, following the designs of my other connectors. If you want to stay informed when this may be ready for testing, please get in touch via telegram.
10
+
11
+ Node.js connector for the coinbase APIs and WebSockets, with TypeScript & browser support.
12
+
13
+ ## Installation
14
+
15
+ `npm install --save coinbase-api`
16
+
17
+ ## Issues & Discussion
18
+
19
+ - Issues? Check the [issues tab](https://github.com/tiagosiebler/coinbase-api/issues).
20
+ - Discuss & collaborate with other node devs? Join our [Node.js Algo Traders](https://t.me/nodetraders) engineering community on telegram.
21
+
22
+ ## Related projects
23
+
24
+ Check out my related JavaScript/TypeScript/Node.js projects:
25
+
26
+ - Try my API & WebSocket SDKs:
27
+ - [Bybit-api Node.js SDK](https://www.npmjs.com/package/bybit-api)
28
+ - [Binance Node.js SDK](https://www.npmjs.com/package/binance)
29
+ - [Okx-api Node.js SDK](https://www.npmjs.com/package/okx-api)
30
+ - [Bitget-api Node.js SDK](https://www.npmjs.com/package/bitget-api)
31
+ - [Bitmart-api Nodejs SDK](https://www.npmjs.com/package/bitmart-api)
32
+ - Try my misc utilities:
33
+ - [orderbooks node.js](https://www.npmjs.com/package/orderbooks)
34
+ - [accountstate](https://www.npmjs.com/package/accountstate)
35
+ - Check out my examples:
36
+ - [awesome-crypto-examples](https://github.com/tiagosiebler/awesome-crypto-examples)
37
+
38
+ ## Structure
39
+
40
+ This project uses typescript. Resources are stored in 3 key structures:
41
+
42
+ - [src](./src) - the whole connector written in typescript
43
+ - [dist](./dist) - the javascript version of the project (compiled from typescript). This should not be edited directly, as it will be overwritten with each release.
44
+ - [examples](./examples) - some implementation examples & demonstrations. Contributions are welcome!
45
+
46
+ ---
47
+
48
+ # Usage
49
+
50
+ TODO
package/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = require('lib/index');
package/lib/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare const HELLO = "HELLO";
package/lib/index.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ // export * from './inverse-client';
3
+ // export * from './inverse-futures-client';
4
+ // export * from './linear-client';
5
+ // export * from './spot-client';
6
+ // export * from './websocket-client';
7
+ // export * from './logger';
8
+ // export * from './types/shared';
9
+ // export * from './types/spot';
10
+ // export * from './util/WsStore';
11
+ // export * from './constants/enum';
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.HELLO = void 0;
14
+ // Package under development
15
+ exports.HELLO = 'HELLO';
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;AACpC,4CAA4C;AAC5C,mCAAmC;AACnC,iCAAiC;AACjC,sCAAsC;AACtC,4BAA4B;AAC5B,kCAAkC;AAClC,gCAAgC;AAChC,kCAAkC;AAClC,oCAAoC;;;AAEpC,4BAA4B;AACf,QAAA,KAAK,GAAG,OAAO,CAAC"}
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "coinbase-api",
3
+ "version": "0.3.2",
4
+ "description": "EARLY BETA. Node.js connector for coinbase's REST APIs and WebSockets, with TypeScript & end-to-end tests.",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
7
+ "files": [
8
+ "lib/*",
9
+ "index.js"
10
+ ],
11
+ "scripts": {
12
+ "test": "jest",
13
+ "test:watch": "jest --watch",
14
+ "clean": "rm -rf lib dist",
15
+ "build": "tsc",
16
+ "build:clean": "npm run clean && npm run build",
17
+ "build:watch": "npm run clean && tsc --watch",
18
+ "pack": "webpack --config webpack/webpack.config.js",
19
+ "prepublish": "npm run build:clean",
20
+ "betapublish": "npm publish --tag beta"
21
+ },
22
+ "author": "Tiago Siebler (https://github.com/tiagosiebler)",
23
+ "contributors": [],
24
+ "dependencies": {
25
+ "axios": "^0.21.0",
26
+ "isomorphic-ws": "^4.0.1",
27
+ "ws": "^7.4.0"
28
+ },
29
+ "devDependencies": {
30
+ "@types/jest": "^26.0.23",
31
+ "@types/node": "^14.14.7",
32
+ "eslint": "^7.10.0",
33
+ "jest": "^27.0.4",
34
+ "source-map-loader": "^2.0.0",
35
+ "ts-jest": "^27.0.3",
36
+ "ts-loader": "^8.0.11",
37
+ "typescript": "^4.0.5",
38
+ "webpack": "^5.4.0",
39
+ "webpack-bundle-analyzer": "^4.1.0",
40
+ "webpack-cli": "^4.2.0"
41
+ },
42
+ "keywords": [
43
+ "coinbase",
44
+ "coinbase api",
45
+ "coinbase node",
46
+ "coinbase node api",
47
+ "api",
48
+ "sdk",
49
+ "coinbase sdk",
50
+ "websocket",
51
+ "rest",
52
+ "rest api",
53
+ "trading bots",
54
+ "nodejs",
55
+ "trading",
56
+ "cryptocurrency",
57
+ "bitcoin",
58
+ "best"
59
+ ],
60
+ "funding": {
61
+ "type": "individual",
62
+ "url": "https://github.com/sponsors/tiagosiebler"
63
+ },
64
+ "license": "MIT",
65
+ "repository": {
66
+ "type": "git",
67
+ "url": "git+https://github.com/tiagosiebler/coinbase-api.git"
68
+ },
69
+ "bugs": {
70
+ "url": "https://github.com/tiagosiebler/coinbase-api/issues"
71
+ },
72
+ "homepage": "https://github.com/tiagosiebler/coinbase-api#readme"
73
+ }