fix additional encoding issue for cursor with equals symbol. Add contract client return type. Add additional cursor e2e test.

This commit is contained in:
tiagosiebler
2022-11-16 14:58:56 +00:00
parent c3f7ecb30e
commit 909e36347e
7 changed files with 75 additions and 6 deletions

View File

@@ -21,6 +21,8 @@ import {
ContractUserExecutionHistoryRequest,
ContractClosedPNLRequest,
ContractWalletFundRecordRequest,
PaginatedResult,
ContractHistoricOrder,
} from './types';
import { REST_CLIENT_TYPE_ENUM } from './util';
import BaseRestClient from './util/BaseRestClient';
@@ -148,7 +150,7 @@ export class ContractClient extends BaseRestClient {
/** Query order history. As order creation/cancellation is asynchronous, the data returned from the interface may be delayed. To access order information in real-time, call getActiveOrders() */
getHistoricOrders(
params: ContractHistoricOrdersRequest
): Promise<APIResponseV3<any>> {
): Promise<APIResponseV3<PaginatedResult<ContractHistoricOrder>>> {
return this.getPrivate('/contract/v3/private/order/list', params);
}