FAQ
Home
Support Center
FAQ
Trading Bots
Spot Grid Bot
Binance Spot Grid Trading Parameters

Binance Spot Grid Trading Parameters

2022-05-05 10:42
In compliance with MiCA requirements, unauthorized stablecoins are subject to certain restrictions for EEA users. For more information, please click here.

What is Spot Grid Trading?

Spot Grid Trading is a quantitative trading strategy that uses trading bots to automate the buying and selling of assets on the spot market. It places orders in the market at preset intervals within a configured price range. When orders are placed above and below a set price, they create a grid of orders at incrementally increasing and decreasing prices. In this way, it constructs a Trading Grid.
Binance Spot Grid Trading leverages volatile markets when prices fluctuate within a specific range. Grid Trading attempts to make profits on small price changes. Through quantitative trading, it can help you maximize trading opportunities.

Spot Grid Trading Parameters

1. Current Balance
Current Balance refers to the total balance of the Base and Quote Assets in your running Grid Orders, including Reserved Fees.
Total Quote Asset Balance = Total Open Buy Order Price * Qty Per Order (represented in the Quote Asset)
Total Base Asset Balance = Total Number of Sell Orders * Qty Per Order (represented in the Base Asset)
2. Floating PnL
Floating PnL = Total Open Buy Order Price * Qty Per Order + Total Number of Sell Orders * Qty Per Order * Last Price + Reserved Fees in the Base Assets * Last Price + Reserved Fees in the Quote Assets - Total Investment
Last Price:
When the Grid Order is still running, the Last Price is the latest Market Price of the spot trading pair. If the Grid Order has ended, the Last Price is the Market Price at which the Grid Order ends.
3. Matched Orders
A Matched Order refers to a Buy Order filled at the lower price and a Sell Order filled at the upper price. The number of Matched Orders is used to calculate the Grid Profit.
In this example, we can only see 2 pending buy orders without any sell orders. To form a matched order, both the buy order and the sell order must be filled.
4. Grid Profit
Grid Profit is the total profit generated by filled Buy and Sell Order pairs. It is displayed in the Quote Asset. The Grid Profit is the sum of each Matched Order’s profit.
Profit of a Matched Order = Total Filled Sell Order Price - Total Filled Buy Order Price - Sell Order Trading Fees - Buy Order Trading Fees * Last Price
Last Price:
When the Grid Order is still running, the Last Price is the spot trading pair’s latest Market Price. If the Grid Order has ended, the Last Price is the price at which the Grid Order ends.
Note: If you use BNB to pay for trading fees, the BNB fees will be converted to Quote Assets at the Market Price when your Grid Order is running. If your Grid Order has ended, it will use the BNB price at the time the Grid Order ends to convert.
5. Total Profit
Total Profit = Grid Profit + Unrealized PnL
6. Annualized Yield
Annualized Yield = Total Profit / Total Investment * 365 (days) * 24 (hours) * 60 (minutes) / Order Duration (minutes)
For example, the Total Profit is 31.30 USDC, the Total Investment is 688.04 USDC, and the Order Duration is 10 days 23 hours 55 minutes.
The Annualized Yield = 31.30 / 688.04 * 365 * 24 * 60 / (10 * 24 * 60 + 23 * 60 + 55) = 150.99%
7. Balance at Stop
Balance at Stop refers to the Quote and Base Assets in pending Grid Orders when the Grid Order ends. It uses the same calculation as the current balance.
8. PnL Asset
This means all PnL of your Grid Orders will be converted to the Quote Asset and will be calculated based on the Quote Asset’s value.
For example, when you trade BNB/BUSD, your PnL will be shown in BUSD.
9. Profit per Grid (Profit/Grid)
Profit/Grid is the profit percentage after matching the Buy and Sell Orders on each Grid. Depending on the trading mode (Arithmetic or Geometric), you can calculate the Profit/Grid by the Grid’s Upper Limit, the Grid’s Lower Limit, the number of Grids, and the trading fees (c): 0.1%.
The Profit/Grid for Arithmetic Grids is calculated as a range. The minimum Profit/Grid is generated by the lowest Grid, and the maximum Profit/Grid is generated by the highest Grid.
Price Difference (d) = (Grid Upper Limit - Grid Lower Limit) / Number of Grids
The Maximum Profit/Grid = (1 - c) * d / Grid Lower Limit - 2c
The Minimum Profit/Grid = (Grid Upper Limit*(1 - c)) / (Grid Lower Limit - d) - 1 - c
The Profit/Grid for Geometric Grids is a fixed value, since the price ratio of each Grid price is the same.
Price Ratio (r) = (Grid Upper Limit / Grid Lower Limit) ^ (1 / Number of Grids)
The Profit/Grid = (1 - c) * r - 1 - c
For example, the Grid Upper Limit is 450 and the Lower Limit is 400. The number of Grid is 5, and the trading fee (c) is 0.1%.
If the Grid is Arithmetic, the Price Difference (d) = (450 - 400) / 5 = 10
Maximum Profit/Grid = (1 - 0.1%) * 10 / 400 - 2 * 0.1% = 2.29%
Minimum Profit/Grid = (450 * (1 - 0.1%)) / (450 - 10) - 1 - 0.1% = 2.07%
If the Grid is Geometric, then the Profit/Grid = (1 - 0.1%) * (450 / 400) ^ (1 / 5) - 1- 0.1% = 2.18%
10. Qty Per Order
Qty Per Order refers to the quantity of each order at a different price during Grid Trading. The Qty Per Order is only confirmed after the Grid Order is successfully created. The system will automatically calculate the Base Asset needed to be reserved for the trading fees and the Quote Asset needed to place Buy Orders according to the investment amount entered.
After calculating all the assets needed, the maximum quantity that could guarantee the success of each Grid Order is the Qty Per Order.