diff --git a/packages/orderbook/src/orderbook.ts b/packages/orderbook/src/orderbook.ts index 39c0d237a4..db5b29ccdd 100644 --- a/packages/orderbook/src/orderbook.ts +++ b/packages/orderbook/src/orderbook.ts @@ -38,6 +38,8 @@ import { ListBidsParams, ListBidsResult, ListingResult, + ListCollectionBidsParams, + ListCollectionBidsResult, ListListingsParams, ListListingsResult, ListTradesParams, @@ -209,6 +211,22 @@ export class Orderbook { }; } + /** + * List collection bids. This method is used to get a list of collection bids filtered + * by conditions specified in the params object. + * @param {ListCollectionBidsParams} listOrderParams - Filtering, ordering and page parameters. + * @return {ListCollectionBidsResult} The paged collection bids. + */ + async listCollectionBids( + listOrderParams: ListCollectionBidsParams, + ): Promise { + const apiCollectionBids = await this.apiClient.listCollectionBids(listOrderParams); + return { + page: mapFromOpenApiPage(apiCollectionBids.page), + result: apiCollectionBids.result.map(mapCollectionBidFromOpenApiOrder), + }; + } + /** * List trades. This method is used to get a list of trades filtered by conditions specified * in the params object