Skip to content

Commit

Permalink
v3.9.2: fix(#315) orderbook level type
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosiebler committed Feb 13, 2024
1 parent bfaec5e commit 1bf357b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
19 changes: 10 additions & 9 deletions src/types/response/v5-market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1bf357b

Please sign in to comment.