v3.5.5: fix() add missing wallet balance response type properties

This commit is contained in:
tiagosiebler
2023-04-02 10:45:01 +01:00
parent 2761e972ca
commit f43b731b62
2 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "3.5.4", "version": "3.5.5",
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.", "description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

View File

@@ -11,6 +11,8 @@ export interface WalletBalanceV5Coin {
equity: string; equity: string;
usdValue: string; usdValue: string;
walletBalance: string; walletBalance: string;
free: string; // spot only
locked: string; // spot only
borrowAmount: string; borrowAmount: string;
availableToBorrow: string; availableToBorrow: string;
availableToWithdraw: string; availableToWithdraw: string;
@@ -20,10 +22,12 @@ export interface WalletBalanceV5Coin {
totalPositionMM: string; totalPositionMM: string;
unrealisedPnl: string; unrealisedPnl: string;
cumRealisedPnl: string; cumRealisedPnl: string;
bonus: string;
} }
export interface WalletBalanceV5 { export interface WalletBalanceV5 {
accountType: AccountTypeV5; accountType: AccountTypeV5;
accountLTV: string;
accountIMRate: string; accountIMRate: string;
accountMMRate: string; accountMMRate: string;
totalEquity: string; totalEquity: string;