Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bybit-api

Package Overview
Dependencies
Maintainers
1
Versions
126
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.1.8 to 1.1.9

.jshintrc

12

doc/rest-client.md

@@ -77,2 +77,5 @@ # Rest API

#### async getAssetExchangeRecords(params)
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-assetexchangerecords)
#### async getWalletBalance(params)

@@ -107,2 +110,11 @@ [See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-balance)

#### async getOpenInterest(params)
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-marketopeninterest)
#### async getLatestBigDeal(params)
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-marketbigdeal)
#### async getLongShortRatio(params)
[See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-marketaccountratio)
#### async getLatestInformation()

@@ -109,0 +121,0 @@ [See bybit documentation](https://bybit-exchange.github.io/docs/inverse/#t-latestsymbolinfo)

@@ -155,2 +155,6 @@

async getAssetExchangeRecords(params) {
return await this.request.get('v2/private/exchange-order/list', params);
}
async getWalletBalance(params) {

@@ -218,2 +222,25 @@ assert(params, 'No params passed');

async getOpenInterest(params) {
assert(params, 'No params passed');
assert(params.symbol, 'Parameter symbol is required');
assert(params.period, 'Parameter period is required');
return await this.request.get('v2/public/open-interest', params);
}
async getLatestBigDeal(params) {
assert(params, 'No params passed');
assert(params.symbol, 'Parameter symbol is required');
return await this.request.get('v2/public/big-deal', params);
}
async getLongShortRatio(params) {
assert(params, 'No params passed');
assert(params.symbol, 'Parameter symbol is required');
assert(params.period, 'Parameter period is required');
return await this.request.get('v2/public/account-ratio', params);
}
async getLatestInformation() {

@@ -220,0 +247,0 @@ return await this.request.get('v2/public/tickers');

2

package.json
{
"name": "bybit-api",
"version": "1.1.8",
"version": "1.1.9",
"description": "An unofficial node.js lowlevel wrapper for the Bybit Cryptocurrency Derivative exchange API",

@@ -5,0 +5,0 @@ "main": "index.js",

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