Skip to content

v0.24 - Advanced orderbook filtering

Choose a tag to compare

@johnrjj johnrjj released this 27 Apr 04:28
· 32 commits to main since this release

Adds more search filtering options for the public orderbook.
Notably, passing in arrays for token addresses and ids, as well as chains is now supported.

interface SearchOrdersParams {
  nftTokenId: string | string[];
  erc20Token: string | string[];
  nftToken: string | string[];
  nftType: 'ERC721' | 'ERC1155';
  chainId: string | number | string[] | number[];
  maker: string;
  taker: string;
  nonce: string | string[];
  offset: string | number;
  limit: string | number;
  sellOrBuyNft: 'sell' | 'buy';
  direction: '0' | '1';
  // Defaults to only 'open' orders
  status: 'open' | 'filled' | 'expired' | 'cancelled' | 'all';
  visibility: 'public' | 'private';
  valid: 'valid' | 'all';
}