Merge pull request #212 from tiagosiebler/typoticker

fix contract symbol ticker response typo
This commit is contained in:
Tiago
2022-12-28 15:00:26 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "3.3.7", "version": "3.3.8",
"description": "Complete & robust node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", "description": "Complete & robust node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.",
"main": "lib/index.js", "main": "lib/index.js",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",

View File

@@ -71,7 +71,7 @@ export class ContractClient extends BaseRestClient {
getSymbolTicker( getSymbolTicker(
category: UMCategory | '', category: UMCategory | '',
symbol?: string symbol?: string
): Promise<APIResponseV3<ContractListResult<ContractSymbolTicker[]>>> { ): Promise<APIResponseV3<ContractListResult<ContractSymbolTicker>>> {
return this.get('/derivatives/v3/public/tickers', { category, symbol }); return this.get('/derivatives/v3/public/tickers', { category, symbol });
} }