fix(): add submitOrder
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
BatchOrderParamsV5,
|
||||
BatchOrdersRetExtInfoV5,
|
||||
CancelOrderParamsV5,
|
||||
OrderParamsV5,
|
||||
OrderResultV5,
|
||||
} from './types';
|
||||
import { WSAPIResponse } from './types/websockets/ws-api';
|
||||
@@ -85,6 +86,22 @@ export class WebsocketAPIClient {
|
||||
* https://bybit-exchange.github.io/docs/v5/websocket/trade/guideline
|
||||
*/
|
||||
|
||||
/**
|
||||
* Submit a new order
|
||||
*
|
||||
* @param params
|
||||
* @returns
|
||||
*/
|
||||
submitNewOrder(
|
||||
params: OrderParamsV5,
|
||||
): Promise<WSAPIResponse<OrderResultV5, 'order.create'>> {
|
||||
return this.wsClient.sendWSAPIRequest(
|
||||
WS_KEY_MAP.v5PrivateTrade,
|
||||
'order.create',
|
||||
params,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Amend an order
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user