# Swap SDK

## Swap SDK

- [0x v4 Swap SDK](https://docs.swapsdk.xyz/readme.md): NFT Swap SDK now supports 0x Protocol v4! Try it out on Ethereum Mainnet today.
- [Quick Start](https://docs.swapsdk.xyz/readme/quick-start.md): Get started integrating the Swap SDK into your app
- [Swap NFT <> ERC-20 Example](https://docs.swapsdk.xyz/readme/swap-nft-less-than-greater-than-erc-20-example.md): End-to-end example demonstrating swap a CryptoPunk for USDC
- [Managing Orders](https://docs.swapsdk.xyz/readme/managing-orders.md): Build, approve, sign, fill, cancel and save orders with the Swap SDK.
- [Hosted Orderbook](https://docs.swapsdk.xyz/readme/hosted-orderbook.md): Trader offers a free publicly hosted orderbook to manage your 0x v4 orders automatically. The orderbook handles order status, order fills
- [ETH/Native Token support](https://docs.swapsdk.xyz/readme/eth-native-token-support.md): Sell an NFT for ETH. Buy an NFT with ETH.
- [Batch Buy NFTs](https://docs.swapsdk.xyz/readme/batch-buy-nfts.md): Buy multiple NFTs in a single transaction.
- [Royalties and Fee Configuration](https://docs.swapsdk.xyz/readme/royalties-and-fee-configuration.md): 0x v4 supports configurable royalties and fees.
- [Collection-based/Floor-based orders](https://docs.swapsdk.xyz/readme/collection-based-floor-based-orders.md): NFT Swap SDK supports Collection-based orders. Allows users to bid on any NFT from a specified collection.
- [Other Resources](https://docs.swapsdk.xyz/readme/other-resources.md)
- [0x v3 Swap SDK](https://docs.swapsdk.xyz/readme-1.md): Overview of Trader.xyz's swap library
- [Orderbook API](https://docs.swapsdk.xyz/orderbook-api.md): Trader.xyz hosts a free, real-time NFT orderbook that hosts buy and sell NFT orders.
- [V3 or V4 - Which version should I use?](https://docs.swapsdk.xyz/v3-or-v4-which-version-should-i-use.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://docs.swapsdk.xyz/readme.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
