Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ import type {
OrderBookSummary,
OrderMarketCancelParams,
OrderPayload,
OrderResponse,
OrderScoring,
OrderScoringParams,
OrdersScoring,
Expand Down Expand Up @@ -936,7 +937,7 @@ export class ClobClient {
orderType: T = OrderType.GTC as T,
deferExec = false,
postOnly = false,
): Promise<any> {
): Promise<OrderResponse> {
const order = await this.createOrder(userOrder, options);
return this.postOrder(order, orderType, deferExec, postOnly);
}
Expand All @@ -946,7 +947,7 @@ export class ClobClient {
options?: Partial<CreateOrderOptions>,
orderType: T = OrderType.FOK as T,
deferExec = false,
): Promise<any> {
): Promise<OrderResponse> {
const order = await this.createMarketOrder(userMarketOrder, options);
return this.postOrder(order, orderType, deferExec);
}
Expand Down Expand Up @@ -1001,7 +1002,7 @@ export class ClobClient {
orderType: T = OrderType.GTC as T,
deferExec = false,
postOnly = false,
): Promise<any> {
): Promise<OrderResponse> {
this.canL2Auth();
const endpoint = POST_ORDER;
const orderPayload = orderToJson(
Expand Down Expand Up @@ -1043,7 +1044,7 @@ export class ClobClient {
args: PostOrdersArgs[],
deferExec = false,
defaultPostOnly = false,
): Promise<any> {
): Promise<OrderResponse[]> {
this.canL2Auth();
const endpoint = POST_ORDERS;
const ordersPayload: NewOrder<any>[] = [];
Expand Down