v3.2.1: add instrument info response type. add cursor example with unified margin request

This commit is contained in:
tiagosiebler
2022-11-15 15:26:57 +00:00
parent 42a9ef10d7
commit c46645713e
5 changed files with 78 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ import {
InternalTransferRequest,
UMExchangeCoinsRequest,
UMBorrowHistoryRequest,
UMInstrumentInfoResult,
} from './types';
import { REST_CLIENT_TYPE_ENUM } from './util';
import BaseRestClient from './util/BaseRestClient';
@@ -78,7 +79,7 @@ export class UnifiedMarginClient extends BaseRestClient {
/** Get trading rules per symbol/contract, incl price/amount/value/leverage filters */
getInstrumentInfo(
params: UMInstrumentInfoRequest
): Promise<APIResponseV3<any>> {
): Promise<APIResponseV3<UMInstrumentInfoResult>> {
return this.get('/derivatives/v3/public/instruments-info', params);
}