test coverage for public unified margin endpoints

This commit is contained in:
tiagosiebler
2022-09-10 19:07:58 +01:00
parent 0cbdc5351c
commit 8e60d5dfdf
6 changed files with 268 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ export * from './spot-client';
export * from './spot-client-v3';
export * from './usdc-option-client';
export * from './usdc-perpetual-client';
export * from './unified-margin-client';
export * from './websocket-client';
export * from './util/logger';
export * from './types';

View File

@@ -1,5 +1,4 @@
import { OrderSide } from '../shared';
import { USDCOrderFilter } from './usdc-perp';
import { USDCAPICategory, USDCOrderType, USDCTimeInForce } from './usdc-shared';
export interface USDCOptionsContractInfoRequest {

View File

@@ -52,7 +52,7 @@ export class UnifiedMarginClient extends BaseRestClient {
/** Query order book info. Each side has a depth of 25 orders. */
getOrderBook(
symbol: string,
category?: string,
category: string,
limit?: number
): Promise<APIResponseV3<any>> {
return this.get('/derivatives/v3/public/order-book/L2', {