---
updatedAt: 2025-06-25T21:55:22.000Z
agentTools:
  projectIndex: https://docs.nftgo.io/llms.txt
---

# Build a Trading bot

This guide will enable you to build a trading bot using the NFTGo API.

# What is the Trading bot?

An NFT trading bot is a program that is designed to execute trades of NFTs on various NFT marketplaces automatically. These bots are typically used to automate the process of buying, selling, and exchanging NFTs, saving time and effort.

NFT trading bots can be programmed to perform various functions, such as monitoring NFT prices, identifying trading opportunities, executing buy and sell orders, and managing a portfolio of NFT assets. They can also be configured to use various trading strategies, such as trend following, arbitrage, and market making. Our aggregator can be used to build the trading bot.

# Pre-requisites

* Kindly take some time to grasp the [core concepts](https://docs.nftgo.io/docs/core-concept) of business, it's vital to the integration.
* Your API Key is prepared, make sure you have access to the endpoints. Get your API key [here](https://nftgo.io/developers).

# Best Practice

## Fetch orders

1. Build a trading aggregator, ensuring you have access to all the orders from 3rd-party marketplaces. check [Build a Trading Aggregator](https://docs.nftgo.io/docs/create-an-nft-marketplace-with-aggregated-order-books) to learn more.
2. Use the APIs below to query and filter the listings and offer orders:
   * [Get Orders by Contract](https://docs.nftgo.io/reference/post_orderbook-v1-orders-get-orders-by-contract): get all the orders of the specific collection. Use the parameter `order type`to filter listing and offer orders. Use the parameter `order book name`to filter the marketplaces.
   * [Get Orders by NFT](https://docs.nftgo.io/reference/post_orderbook-v1-orders-get-orders-by-nft): get orders of the specific NFT, you can use it when trading a specific NFT. Use the parameter `order type`to filter listing and offer orders. Use the parameter `order book name`to filter the marketplaces.
   * [Get Offers Feed By NFT](https://docs.nftgo.io/reference/post_orderbook-v1-orders-get-offers-feed-by-nft): get the token offer order of the NFT, Use the parameter `order book name`to filter the marketplaces. Use the parameter`traits`to filter traits.

## Fetch best listing and best offer of NFT

* Use the API [Batch Get NFT Best Listing](https://docs.nftgo.io/reference/post_orderbook-v1-orders-batch-get-nft-best-listing) to get the best listings of NFTs.
* Use the API [Get NFTs by collection](https://docs.nftgo.io/reference/eth_v2_collection_collection_filtered_nfts) to get NFTs of a collection, along with the best listing and best offer of NFTs.
* Use the API [Get Received Best Offers By Wallet](https://docs.nftgo.io/reference/post_orderbook-v1-orders-get-wallet-received-best-offers) to get the best offers of a specific address.

## Update the order status

* Use the API [Get Orders by Id](https://docs.nftgo.io/reference/post_orderbook-v1-orders-get-orders-by-ids) or [Get Orders By Order Hashes](https://docs.nftgo.io/reference/post_orderbook-v1-orders-get-orders-by-order-hashes) to query specific groups of orders and their latest status.

## Enable trade through multiple marketplaces

* Check [Enable Buy, List, and Offer](https://docs.nftgo.io/docs/enable-buy-list-and-offer-trading-function) to get the implementation details.

## Fetch a wallet's order

* Use the API [Get Orders by Maker](https://docs.nftgo.io/reference/post_orderbook-v1-orders-get-orders-by-maker) to get orders from the wallet address. Use the parameter `order type`to filter listing and offer orders. Use the parameter `order book name`to filter the marketplaces.