v3.9.2: fix(#315) orderbook level type

This commit is contained in:
tiagosiebler
2024-02-13 10:15:55 +00:00
parent bfaec5e18d
commit 1bf357b5cf
2 changed files with 11 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "bybit-api",
"version": "3.9.1",
"version": "3.9.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

@@ -112,18 +112,19 @@ export interface SpotInstrumentInfoV5 {
}
type InstrumentInfoV5Mapping = {
linear: LinearInverseInstrumentInfoV5[],
inverse: LinearInverseInstrumentInfoV5[],
option: OptionInstrumentInfoV5[],
spot: SpotInstrumentInfoV5[]
linear: LinearInverseInstrumentInfoV5[];
inverse: LinearInverseInstrumentInfoV5[];
option: OptionInstrumentInfoV5[];
spot: SpotInstrumentInfoV5[];
};
export type InstrumentInfoResponseV5<C extends CategoryV5> = CategoryCursorListV5<InstrumentInfoV5Mapping[C], C>;
export type InstrumentInfoResponseV5<C extends CategoryV5> =
CategoryCursorListV5<InstrumentInfoV5Mapping[C], C>;
export default interface OrderbookLevelV5 {
price: string;
size: string;
}
/**
* [price, size]
*/
export type OrderbookLevelV5 = [string, string];
export interface OrderbookResponseV5 {
s: string;