Skip to Content
NeurotraderDocs
How-to guides

Demo runs

Run an algorithm on Binance's Demo account: create the run on the Real Mode page, start it, watch it, stop it with a choice for its open orders, and read the record.

You want to know how Binance treats your algorithm's orders before real money is involved. A demo run sends the orders to Binance's Demo environment: the real exchange's rules and limits, with practice funds. This is the Live Paper Trade mode. In the app it is a Real Trade in the Demo Mode environment.

Nothing in a demo run can lose real money. Everything else works as it does with real funds, which is the point of the rehearsal.

Prerequisites

  • A Demo Mode credential is stored. See Venue account connection.
  • The Demo account holds a balance in the asset you want results measured in, or in an asset the run trades. You reset and fund the Demo balance on Binance's Demo site.
  • No orders are open at Binance on the instruments the run will trade. A run refuses to start over orders it did not place.
  • Your plan allows another live run. See Plans and quotas.
  • The algorithm has run in Live Simulation first, so you have results to compare with.

Creation

Open Real Mode in the sidebar and start a new real trade. The wizard opens with the steps Details, Data, Algorithms and Review. There is no Balances step: the account is the one at Binance, and its balance and fees are Binance's.

In Details, name the run and choose the quote asset results are measured in. Under Connection, choose the environment Binance Demo Mode.

The Credential line shows whether a matching key is stored. If it reads Not stored, Awaiting its API key or names a key for the other environment, follow Credentials in Settings and fix that first.

In Data, add the instruments, with one interval for all of them. A real trade reads its market data from the venue it trades at, so the instruments are the ones listed on Binance.

In Algorithms, add the algorithm and set its parameters. A venue account runs one algorithm. To trade several strategies on it, add them together: Neurotrader combines them into one algorithm group.

Check the Review step. It states the venue, the environment with demo funds, and the credential. Create the run.

Screenshot
The New real trade wizard on its Details step with the Connection block: the environment Binance Demo Mode selected, and the Credential line reading that a Demo Mode key is stored, with the link Credentials in Settings

The run opens under Real Mode. Where a simulation has its Account card, this page has a Connection card:

RowShows
VenueBinance Demo Mode
AccountThe account at Binance. Balances and fees are as Binance reports them
CredentialStored, Not stored, Awaiting key or Wrong environment
Valued inThe quote asset, fixed at creation
ModeReal Trade - Demo Mode

Start

Open the run and choose Go live.

Read the confirmation Start this real trade?. It states where the orders go (Binance Demo Mode · demo funds), the algorithms, the instruments and the credential. This is asked for every start and is never remembered.

Choose Start trading.

Before the first step, Neurotrader checks the connection. The start is refused, with the reason, when:

  • no credential is stored, it awaits its API key, it is not an Ed25519 key, or it was issued for another environment;
  • the key is not allowed to trade;
  • an instrument is not open for trading at Binance;
  • orders are already open at Binance on the run's instruments;
  • the account holds neither the quote asset nor any asset the run trades.

After a refusal the dialog stays open with the reason. Fix the cause and start again.

The algorithm's indicators are warmed up from recent candles before the first step, as in a live simulation. See Warm-up from recent candles.

Live view

The page is the same live view a live simulation has, described in Live simulations: heartbeat, figures, charts, Conditions, Activity and Right now. A venue run differs in four ways.

The venue notice. A line across the top reads Real Trade - Demo Mode. and states that orders go to Binance Demo Mode and use demo funds, and that fills, balances and open orders are as Binance reports them. A badge with the same words sits next to the status in the header. In a demo run both say demo funds. In the production environment they say real funds.

The numbers are Binance's. Net worth, the free balance and the amount in orders come from the account at Binance. Fills, their prices and their fees are what Binance reported. Neurotrader computes none of them. The figures cover the assets the run's instruments trade. Other assets in the account are not counted.

Orders can end in ways a simulation never shows. Binance may reject an order for one of its rules, fill it in parts, or expire it. Each of these appears in Activity with Binance's own reason. Prices and quantities are shown as they were sent: a quantity is rounded down to the step Binance allows for the instrument. See Binance.

Conditions matters more here. Besides the data feed, it reports the connection to Binance dropping and coming back, a refusal that is not about one order, maintenance at the venue, a rate limit, and any difference found between Binance's record and the run's. Neurotrader reconnects by itself and then asks Binance for everything that happened in the gap, so a fill during a dropped connection is recorded once.

Screenshot
The live view of a running demo run on BTCUSDT: the amber venue notice reading Real Trade - Demo Mode with demo funds across the top, the Binance Demo Mode badge in the header, the row of figures, and the Conditions card showing one reconnection

Stop

Stopping a venue run always asks what to do with what the run leaves at Binance. Nothing is preselected, because either answer can be the right one.

Choose Stop in the header. The dialog Stop this live run? lists the orders working at Binance right now.

Choose a disposition.

Confirm with Stop and close or Stop and leave orders.

ChoiceOpen ordersPositions
CloseEvery open order of the run is cancelled, and Neurotrader waits for Binance to confirm each cancellationWhat the run's own fills bought is sold with market orders, and Neurotrader waits for each to finish
LeaveStay open at Binance and can still fill after the run has endedStay as they are

Two details of Close:

  • It closes the position the run built, not the account. If the account held 1 BTC before the run and the run bought 0.2 BTC, Close sells 0.2 BTC.
  • The closing orders are market orders, and Binance fills them at the market's price. A quantity smaller than Binance's minimum for the instrument cannot be sold and stays in the account.

After Leave, the open orders are yours to handle at Binance. The run's next start is refused while they are still open.

The run's record states what the stop did, for example Closed: 2 orders cancelled, 1 flattening order traded or Left standing: 3 orders. If a cancellation or a closing order failed, the record lists each failure with its reason in red, and the run's exposure is not what you asked for: check the account at Binance.

To stop everything at once, use Stop all live runs on the Real Mode or Live Mode page. It applies one disposition to every live run and then shows what each stop did.

Closing the app does not stop the run. The engine runs it. If the engine itself shuts down in an orderly way, it stops its live runs with Leave, because there is nobody to ask. A plan that expires while a run is up does not stop the run either: only a stop ends it on purpose.

Ungraceful ends

A run ends ungracefully when the computer loses power, the engine crashes, or the run does not respond to a stop and is killed. No disposition was acted on.

What is left at Binance: everything the run had there. Open orders stay open and can still fill. Positions stay. Neurotrader does not reattach to them and does not resume the run.

What you see: the run is recorded as interrupted, the simulation's status is an error, and a notice at the top of the page reads This run ended without acting on its orders. It lists the orders that were working when the run last wrote its journal. The notice cannot be dismissed.

Engine's list, not Binance's

The notice shows what the run last recorded. An order on it may have filled or been cancelled since, and Neurotrader does not ask Binance when it shows the list. Check the account at Binance.

To recover:

  1. Open your account at Binance and cancel or keep each open order on the run's instruments.
  2. Back in the app, choose Reset to clear the error. Reset changes nothing at Binance.
  3. Start a new run when you are ready. The start is refused while orders are still open on its instruments.
Screenshot
A Real Mode run page in the error state with the red notice This run ended without acting on its orders, listing two orders that were working when the journal last wrote, above the setup cards and the list of runs

Recorded run

A demo run is recorded like any other run and appears in the list on the run's page under Real Mode. Open it for the figures, the charts and the journal. See Run results.

When you read it, keep in mind:

  • The venue notice stays on the record, in the past tense: where the orders went and whose funds they used.
  • Fills, fees and balances are what Binance reported at the time.
  • The journal carries Binance's own reason on a rejected or expired order.
  • A stop order that triggers keeps its one order at Binance. In a simulation, a triggered stop hands over to a new order.
  • The Stop note states what the disposition did.

The useful comparison is with the same algorithm's live simulation over the same hours. Where the two differ, Binance and the simulation disagree: an order rejected for a venue rule, a partial fill, a fee charged in another asset. Those differences are what this mode exists to show.

When the results give you a reason to go further, continue with Algorithm confirmation and Real funds runs.

On this page