Orderbook API
Trader.xyz hosts a free, real-time NFT orderbook that hosts buy and sell NFT orders.
Overview
Trader.xyz hosts the official orderbook for 0x v4 NFT orders.
Trader.xyz orderbook is an open orderbook that keeps track of off-NFT chain orders and order statuses in real-time. Anyone can add orders to the orderbook as long as they are valid 0x v4 orders.
Having an open orderbook for NFT orders makes it much easier for integrators to build NFT marketplaces and swapping apps -- bring your own frontend and leverage the trader infrastructure. No lock-in and the open orderbook is completely free to use!
Routes:
Get Orders
GET
https://api.trader.xyz/orderbook/orders
Fetch NFT buy and sell orders that can be filled via 0x v4
Use query params to filter for orders
Query Parameters
Name | Type | Description |
---|---|---|
nftToken | String | Contract address for the NFT (e.g. |
nftTokenId | String | Token ID for the NFT |
erc20Token | String | Contract address for the ERC20 (e.g. |
chainId | String | Chain Id (https://chainid.network/) |
maker | String | Maker wallet address |
taker | String | Taker wallet address |
nonce | String | Unique nonce for order |
sellOrBuyNft | String | Filter for either buys (bids) or sells (asks) of NFTs Accepted filter values: 'sell' or 'buy' |
status | String | Filter by real-time order status Accepted values: 'open' | 'filled' | 'expired' | 'cancelled' | 'all' |
visibility | String | Filter by whether an order is public or private (private meaning the order has a specific taker address) Accepted values: 'public' | 'private' |
offset | String | Offset fetching orders Defaults to |
limit | String | Amount of orders to fetch Defaults to |
Upon finding an order you like. use the order field as the order object to fill on 0x v4.
Posting orders
POST
https://api.trader.xyz/orderbook/order
Add a signed 0x V4 NFT order to the open orderbook
Request Body
Name | Type | Description |
---|---|---|
chainId* | String | Chain that the order is for (e.g. |
order* | String | Signed, Fillable 0x v4 NFT order |
Last updated