New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bybit-api

Package Overview
Dependencies
Maintainers
1
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bybit-api - npm Package Compare versions

Comparing version 1.3.0-beta.2 to 1.3.1

4

lib/websocket-client.js

@@ -80,6 +80,2 @@ "use strict";

const ws = new isomorphic_ws_1.default(url);
// ws.onopen!(this._wsOpenHandler.bind(this));
// ws.onmessage!(this._wsMessageHandler.bind(this));
// ws.onerror!(this._wsOnErrorHandler.bind(this));
// ws.onclose!(this._wsCloseHandler.bind(this));
ws.onopen = this._wsOpenHandler.bind(this);

@@ -86,0 +82,0 @@ ws.onmessage = this._wsMessageHandler.bind(this);

6

package.json
{
"name": "bybit-api",
"version": "1.3.0-beta.2",
"version": "1.3.1",
"description": "A production-ready Node.js connector for the Bybit APIs and WebSockets",

@@ -9,4 +9,3 @@ "main": "lib/index.js",

"lib/*",
"index.js",
"dist/*"
"index.js"
],

@@ -19,3 +18,2 @@ "scripts": {

"pack": "webpack --config webpack/webpack.config.js",
"prepush": "npm run build",
"prepublish": "npm run build",

@@ -22,0 +20,0 @@ "betapublish": "npm publish --tag beta"

@@ -8,3 +8,3 @@ # bybit-api

A production-ready Node.js connector for the Bybit APIs and WebSockets.
A production-ready Node.js connector for the Bybit APIs and WebSockets, with TypeScript & browser support.

@@ -14,7 +14,2 @@ ## Installation

## Usage
Create API credentials at Bybit
- [Livenet](https://bybit.com/app/user/api-management?affiliate_id=9410&language=en-US&group_id=0&group_type=1)
- [Testnet](https://testnet.bybit.com/app/user/api-management)
## Issues & Discussion

@@ -35,6 +30,19 @@ - Issues? Check the [issues tab](https://github.com/tiagosiebler/bybit-api/issues).

## Usage
Create API credentials at Bybit
- [Livenet](https://bybit.com/app/user/api-management?affiliate_id=9410&language=en-US&group_id=0&group_type=1)
- [Testnet](https://testnet.bybit.com/app/user/api-management)
### Browser Usage
Build a bundle using webpack:
- `npm install`
- `npm build`
- `npm pack`
The bundle can be found in `dist/`. Altough usage should be largely consistent, smaller differences will exist. Documentation is still TODO.
### Inverse Contracts
#### Rest client
```javascript
const {RestClient} = require('bybit-api');
const { RestClient } = require('bybit-api');

@@ -86,7 +94,7 @@ const API_KEY = 'xxx';

See inverse [rest-client.js](./lib/rest-client.js) for further information.
See inverse [rest-client.ts](./src/rest-client.ts) for further information.
#### Websocket client
```javascript
const {WebsocketClient} = require('bybit-api');
const { WebsocketClient } = require('bybit-api');

@@ -149,3 +157,3 @@ const API_KEY = 'xxx';

```
See inverse [websocket-client.js](./lib/websocket-client.js) & [ws api docs](./doc/websocket-client.md) for further information.
See inverse [websocket-client.ts](./src/websocket-client.ts) for further information.

@@ -152,0 +160,0 @@ ### Customise Logging

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc