Skip to content

Commit

Permalink
Merge pull request #377 from t0chk/master
Browse files Browse the repository at this point in the history
NewOrder type fixing
  • Loading branch information
tiagosiebler authored Dec 7, 2023
2 parents 99c0ecf + 23159a1 commit 40f2463
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/coinm-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export class CoinMClient extends BaseRestClient {

submitNewOrder(
params: NewFuturesOrderParams,
): Promise<NewOrderResult | NewOrderError> {
): Promise<NewOrderResult> {
this.validateOrderId(params, 'newClientOrderId');
return this.postPrivate('dapi/v1/order', params);
}
Expand Down
2 changes: 1 addition & 1 deletion src/usdm-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export class USDMClient extends BaseRestClient {

submitNewOrder(
params: NewFuturesOrderParams,
): Promise<NewOrderResult | NewOrderError> {
): Promise<NewOrderResult> {
this.validateOrderId(params, 'newClientOrderId');
return this.postPrivate('fapi/v1/order', params);
}
Expand Down

0 comments on commit 40f2463

Please sign in to comment.