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

okx-api

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

okx-api - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

lib/rest-client.d.ts

@@ -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

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