v3.3.7: fix nesting in contract list result type

This commit is contained in:
tiagosiebler
2022-12-28 14:44:33 +00:00
parent b1e23f2d05
commit ae47d77f15
3 changed files with 7 additions and 2 deletions

View File

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