Skip to main content

Using Testnet API Keys for Simulated Trading

Use testnet API keys in Gunbot to simulate trading against an exchange-provided test environment, with real API calls but virtual funds.

Info

A testnet is a simulated trading environment provided by many cryptocurrency exchanges. It allows users to test trading strategies with virtual funds, mimicking live market operations without risking real assets.

Setting Up Testnet API Credentials

To start testing with a testnet:

  1. Create testnet API credentials on your chosen exchange. Each exchange has its own setup process for issuing testnet keys.

Configuring Gunbot for Testnet Trading

To configure Gunbot for testnet trading:

  1. Navigate to 'Manage API Slots' in your Gunbot interface.
  2. Add a new API slot or choose to edit an existing one.
  3. Ensure you select the 'Use testnet' option when entering your API credentials. This directs Gunbot to connect to the exchange's testnet instead of the live market.

Understanding Testnets vs. Gunbot Simulator

Testnets and the Gunbot simulator both help you validate strategies, but they operate differently.

  • Testnets are exchange-provided environments with their own order books. They let you test strategies in a simulated market that may not mirror live conditions.

  • Gunbot Simulator uses historical or live market data to simulate trades without placing real orders or using a testnet account. You can run multiple Gunbot instances against the same market data to compare strategy variations, which is harder with testnets because order history and balances are shared.

Choose the tool that matches your testing needs and the level of realism you want.