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 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.
Best Practice
Fetch orders
- Build a trading aggregator, ensuring you have access to all the orders from 3rd-party marketplaces. check Build a Trading Aggregator to learn more.
- Use the APIs below to query and filter the listings and offer 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 parameterorder book name
to filter the marketplaces. - 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 parameterorder book name
to filter the marketplaces. - 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 parametertraits
to filter traits.
- Get Orders by Contract: get all the orders of the specific collection. Use the parameter
Fetch best listing and best offer of NFT
- Use the API Batch Get NFT Best Listing to get the best listings of NFTs.
- Use the API Get NFTs by collection 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 to get the best offers of a specific address.
Update the order status
- Use the API Get Orders by Id or 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 to get the implementation details.
Fetch a wallet's order
- Use the API Get Orders by Maker to get orders from the wallet address. Use the parameter
order type
to filter listing and offer orders. Use the parameterorder book name
to filter the marketplaces.