v3.7.2: fix() response type for v5 open interest endpoint

This commit is contained in:
tiagosiebler
2023-08-18 15:17:49 +01:00
parent f8be8a6279
commit 9bc1ff89c6
3 changed files with 7 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "bybit-api",
"version": "3.7.1",
"version": "3.7.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "bybit-api",
"version": "3.7.1",
"version": "3.7.2",
"license": "MIT",
"dependencies": {
"axios": "^0.21.0",

View File

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

View File

@@ -219,7 +219,10 @@ export interface PublicTradeV5 {
* - openInterest string Open interest
* - timestamp string The timestamp (ms)
*/
export type OpenInterestV5 = [string, string];
export type OpenInterestV5 = {
openInterest: string;
timestamp: string;
};
export interface OpenInterestResponseV5 {
category: 'linear' | 'inverse';