Comparing version 1.0.1 to 1.0.2
@@ -179,3 +179,3 @@ import { AxiosRequestConfig } from 'axios'; | ||
getAccountRiskState(): Promise<unknown[]>; | ||
borrowRepayVIPLoan(ccy: string, side: 'borrow' | 'repay', amt: numberInString): Promise<unknown[]>; | ||
borrowRepayVIPLoan(ccy: string, side: 'borrow' | 'repay', amt: numberInString, ordId?: string): Promise<unknown[]>; | ||
getVIPLoanBorrowRepayHistory(params?: unknown): Promise<unknown[]>; | ||
@@ -182,0 +182,0 @@ getBorrowInterestLimits(params?: { |
@@ -387,4 +387,9 @@ "use strict"; | ||
} | ||
borrowRepayVIPLoan(ccy, side, amt) { | ||
return this.postPrivate('/api/v5/account/borrow-repay', { ccy, side, amt }); | ||
borrowRepayVIPLoan(ccy, side, amt, ordId) { | ||
return this.postPrivate('/api/v5/account/borrow-repay', { | ||
ccy, | ||
side, | ||
amt, | ||
ordId, | ||
}); | ||
} | ||
@@ -391,0 +396,0 @@ getVIPLoanBorrowRepayHistory(params) { |
{ | ||
"name": "okx-api", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Node.js connector for OKX REST APIs and WebSockets, with TypeScript & integration tests.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -31,2 +31,3 @@ # Node.js & Typescript OKX (OKEX) API SDK | ||
- [bybit-api](https://www.npmjs.com/package/bybit-api) | ||
- [bitget-api](https://www.npmjs.com/package/bitget-api) | ||
- [okx-api](https://www.npmjs.com/package/okx-api) | ||
@@ -33,0 +34,0 @@ - [ftx-api](https://www.npmjs.com/package/ftx-api) |
Sorry, the diff of this file is not supported yet
232440
4285
131