From e242e1da83ad8afcc7cde6bdf6502364b73c9d43 Mon Sep 17 00:00:00 2001 From: 0xtygra Date: Thu, 25 Sep 2025 19:18:05 +1000 Subject: [PATCH] Update api.ts comments to reflect omitted limit as well as omit error-throwing orderBy option --- src/api/api.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/api/api.ts b/src/api/api.ts index ce5d5f125..e0d4c94f0 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -120,8 +120,6 @@ export class OpenSeaAPI { * @param options.side The side of the order (listing or offer) * @param options.protocol The protocol, typically seaport, to query orders for * @param options.orderDirection The direction to sort the orders - * @param options.orderBy The field to sort the orders by - * @param options.limit The number of orders to retrieve * @param options.maker Filter by the wallet address of the order maker * @param options.taker Filter by wallet address of the order taker * @param options.asset_contract_address Address of the NFT's contract @@ -136,14 +134,13 @@ export class OpenSeaAPI { side, protocol = "seaport", orderDirection = "desc", - orderBy = "created_date", ...restOptions - }: Omit): Promise { + }: Omit): Promise { const { orders } = await this.get( getOrdersAPIPath(this.chain, protocol, side), serializeOrdersQueryOptions({ limit: 1, - orderBy, + orderBy: "created_date", orderDirection, ...restOptions, }), @@ -161,7 +158,6 @@ export class OpenSeaAPI { * @param options.protocol The protocol, typically seaport, to query orders for * @param options.orderDirection The direction to sort the orders * @param options.orderBy The field to sort the orders by - * @param options.limit The number of orders to retrieve * @param options.maker Filter by the wallet address of the order maker * @param options.taker Filter by wallet address of the order taker * @param options.asset_contract_address Address of the NFT's contract