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 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

  1. Build a trading aggregator, ensuring you have access to all the orders from 3rd-party marketplaces. check Build a Trading Aggregator to learn more.
  2. 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 typeto filter listing and offer orders. Use the parameter order book nameto 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 typeto filter listing and offer orders. Use the parameter order book nameto filter the marketplaces.
    • Get Offers Feed By NFT: get the token offer order of the NFT, Use the parameter order book nameto filter the marketplaces. Use the parametertraitsto filter traits.

Fetch best listing and best offer of NFT

Update the order status

Enable trade through multiple marketplaces

Fetch a wallet's order

  • Use the API Get Orders by Maker to get orders from the wallet address. Use the parameter order typeto filter listing and offer orders. Use the parameter order book nameto filter the marketplaces.