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 3.1.1 to 3.1.2

1

lib/constants/enum.d.ts

@@ -22,2 +22,3 @@ export declare const linearPositionModeEnum: {

readonly ACCOUNT_NOT_UNIFIED: 10020;
readonly UNKNOWN_ERROR: 12000;
readonly BALANCE_INSUFFICIENT_SPOT_V3: 12131;

@@ -24,0 +25,0 @@ readonly ORDER_NOT_FOUND_SPOT_V3: 12213;

@@ -25,2 +25,3 @@ "use strict";

ACCOUNT_NOT_UNIFIED: 10020,
UNKNOWN_ERROR: 12000,
BALANCE_INSUFFICIENT_SPOT_V3: 12131,

@@ -27,0 +28,0 @@ ORDER_NOT_FOUND_SPOT_V3: 12213,

4

lib/spot-client-v3.d.ts

@@ -47,5 +47,5 @@ import { APIResponseWithTime, APIResponseV3, SpotOrderQueryById, SpotBalances, KlineInterval, NewSpotOrderV3, SpotMyTradesRequest, SpotLeveragedTokenPRHistoryRequest, SpotCrossMarginBorrowingInfoRequest, SpotCrossMarginRepaymentHistoryRequest, SpotCancelOrderBatchRequest } from './types';

/** Get open orders */
getOpenOrders(symbol?: string, orderId?: string, limit?: number): Promise<APIResponseV3<any>>;
getOpenOrders(symbol?: string, orderId?: string, limit?: number, orderCategory?: 0 | 1): Promise<APIResponseV3<any>>;
/** Get order history */
getPastOrders(symbol?: string, orderId?: string, limit?: number): Promise<APIResponseV3<any>>;
getPastOrders(symbol?: string, orderId?: string, limit?: number, orderCategory?: 0 | 1): Promise<APIResponseV3<any>>;
/**

@@ -52,0 +52,0 @@ * Get your trade history.

@@ -112,3 +112,3 @@ "use strict";

/** Get open orders */
getOpenOrders(symbol, orderId, limit) {
getOpenOrders(symbol, orderId, limit, orderCategory) {
return this.getPrivate('/spot/v3/private/open-orders', {

@@ -118,6 +118,7 @@ symbol,

limit,
orderCategory,
});
}
/** Get order history */
getPastOrders(symbol, orderId, limit) {
getPastOrders(symbol, orderId, limit, orderCategory) {
return this.getPrivate('/spot/v3/private/history-orders', {

@@ -124,0 +125,0 @@ symbol,

@@ -28,2 +28,3 @@ import { numberInString, OrderSide } from '../shared';

orderTypes: OrderTypeSpot[];
orderCategory?: 0 | 1;
}

@@ -33,2 +34,3 @@ export interface SpotOrderQueryById {

orderLinkId?: string;
orderCategory?: 0 | 1;
}

@@ -35,0 +37,0 @@ export interface SpotSymbolInfo {

@@ -55,3 +55,3 @@ import { KlineIntervalV3, OrderSide } from '../shared';

side: OrderSide;
positionIdx?: '0';
positionIdx?: '0' | '1' | '2';
orderType: UMOrderType;

@@ -58,0 +58,0 @@ qty: string;

{
"name": "bybit-api",
"version": "3.1.1",
"version": "3.1.2",
"description": "Complete & robust node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.",

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

@@ -56,10 +56,16 @@ # Node.js & Typescript Bybit API SDK

|:------------------------------------------------------------------: |:----------------------------------------------------------------------------------------------------------------------------: |
| [ **Derivatives v3** ] | The Derivatves v3 APIs (successor to the Futures V2 APIs) |
| [UnifiedMarginClient](src/unified-margin-client.ts) | [Derivatives (v3) Unified Margin APIs](https://bybit-exchange.github.io/docs/derivativesV3/unified_margin/#t-introduction) |
| [ContractClient](src/contract-client.ts) | [Derivatives (v3) Contract APIs](https://bybit-exchange.github.io/docs/derivativesV3/contract). |
| [ **Futures v2** ] | The Futures v2 APIs |
| [InverseClient](src/inverse-client.ts) | [Inverse Perpetual Futures (v2) APIs](https://bybit-exchange.github.io/docs/futuresV2/inverse/) |
| [LinearClient](src/linear-client.ts) | [USDT Perpetual Futures (v2) APIs](https://bybit-exchange.github.io/docs/futuresV2/linear/#t-introduction) |
| [InverseFuturesClient](src/inverse-futures-client.ts) | [Inverse Futures (v2) APIs](https://bybit-exchange.github.io/docs/futuresV2/inverse_futures/#t-introduction) |
| [ **Spot** ] | The spot APIs |
| [SpotClientV3](src/spot-client-v3.ts) | [Spot Market (v3) APIs](https://bybit-exchange.github.io/docs/spot/v3/#t-introduction) |
| [~SpotClient~](src/spot-client.ts) (deprecated, SpotClientV3 recommended)| [Spot Market (v1) APIs](https://bybit-exchange.github.io/docs/spot/v1/#t-introduction) |
| [ **USDC Contract** ] | The USDC Contract APIs |
| [USDCPerpetualClient](src/usdc-perpetual-client.ts) | [USDC Perpetual APIs](https://bybit-exchange.github.io/docs/usdc/option/?console#t-querydeliverylog) |
| [USDCOptionClient](src/usdc-option-client.ts) | [USDC Option APIs](https://bybit-exchange.github.io/docs/usdc/option/#t-introduction) |
| [UnifiedMarginClient](src/unified-margin-client.ts) | [Derivatives (v3) unified margin APIs](https://bybit-exchange.github.io/docs/derivativesV3/unified_margin/#t-introduction) |
| [SpotClientV3](src/spot-client-v3.ts) | [Spot Market (v3) APIs](https://bybit-exchange.github.io/docs/spot/v3/#t-introduction) |
| [~SpotClient~](src/spot-client.ts) (deprecated, v3 client recommended)| [Spot Market (v1) APIs](https://bybit-exchange.github.io/docs/spot/v1/#t-introduction) |
| [ **Other** ] | Other standalone API groups |
| [AccountAssetClient](src/account-asset-client.ts) | [Account Asset APIs](https://bybit-exchange.github.io/docs/account_asset/#t-introduction) |

@@ -66,0 +72,0 @@ | [CopyTradingClient](src/copy-trading-client.ts) | [Copy Trading APIs](https://bybit-exchange.github.io/docs/copy_trading/#t-introduction) |

Sorry, the diff of this file is not supported yet

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