forked from singlesly/bingx-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbingx-cancel-order-endpoint.ts
More file actions
32 lines (30 loc) · 925 Bytes
/
Copy pathbingx-cancel-order-endpoint.ts
File metadata and controls
32 lines (30 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { AccountInterface } from '../account/account.interface';
import { DefaultSignatureParameters } from '../account/default-signature-parameters';
import { SignatureParametersInterface } from '../account/signature-parameters.interface';
import { Endpoint } from './endpoint';
import { EndpointInterface } from './endpoint.interface';
export class BingxCancelOrderEndpoint<R = unknown>
extends Endpoint
implements EndpointInterface<R>
{
constructor(
account: AccountInterface,
private readonly orderId: string,
private readonly symbol: string,
) {
super(account);
}
method(): 'get' | 'post' | 'put' | 'patch' | 'delete' {
return 'delete';
}
parameters(): SignatureParametersInterface {
return new DefaultSignatureParameters({
orderId: this.orderId,
symbol: this.symbol,
});
}
path(): string {
return '/openApi/swap/v2/trade/order';
}
readonly t!: R;
}