Skip to content

Commit

Permalink
chore(): add order type
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosiebler committed Sep 13, 2024
1 parent 67226b2 commit 643a31b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib/BaseRestClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import axios, { AxiosRequestConfig, AxiosResponse, Method } from 'axios';
import https from 'https';
import { nanoid } from 'nanoid';

import { SubmitAdvTradeOrderRequest } from '../types/request/advanced-trade-client.js';
import {
CloseAdvTradePositionRequest,
SubmitAdvTradeOrderRequest,
} from '../types/request/advanced-trade-client.js';
import { CustomOrderIdProperty } from '../types/shared.types.js';
import { signJWT } from './jwtNode.js';
import { neverGuard } from './misc-util.js';
Expand Down Expand Up @@ -268,7 +271,7 @@ export abstract class BaseRestClient {
* Validate syntax meets requirements set by binance. Log warning if not.
*/
protected validateOrderId(
params: SubmitAdvTradeOrderRequest,
params: SubmitAdvTradeOrderRequest | CloseAdvTradePositionRequest,
orderIdProperty: CustomOrderIdProperty,
): void {
if (!params[orderIdProperty]) {
Expand Down

0 comments on commit 643a31b

Please sign in to comment.