v3.3.7: fix nesting in contract list result type
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user