Trading Bots

A Spot Auto-Invest bot instance

2023-06-14 15:18076

How to creating a spot auto-invest bot

1. Creating a bot

Create an auto-invest bot for a portfolio of up to 10 coins.

Set a running period for the bot. You can set it by month, day, or hour, or you can set specific dates and time points for buying orders.

2. Running the bot

The time zone used for the trigger time of your auto-invest bot is the same as the time zone where your current device is located.

Orders will be executed at prices determined by the Bitget liquidity pool at the time of execution, which are usually close to the spot current prices.

3. Terminating the bot

All orders will be canceled upon termination of the bot.

The bot will be automatically terminated if there are insufficient funds left when the bot is triggered. If this “automatic termination” feature is not enabled, the bot will skip to a new period. In that case, please make sure you have enough balance in your account so the bot runs properly.

Spot auto-invest >>

A spot auto-invest bot in working (portfolio: BTC and USDT)

Setting parameters

Portfolio: BTC, 50%; ETH, 50%

Fund available: 10,000 USDT

Additional investment per interval: 100 USDT

Frequency: once every two days

Time: 8:00 PM (UTC+8)

First order: Instant

Running the bot

T0 - Invest in BTC and ETH. With 1000 USDT, the bot will buy 500 USDT worth of BTC (market price 20,400, or 0.0245 BTC) and 500 USDT worth of ETH (market price 2040 USDT, or 0.245 ETH).

Position (BTC): 0.0245 BTC

Position (ETH): 0.245 ETH

Position (quote currency): 10,000-1000=9000 USDT

T1 - 2 days later. With 1000 USDT, the bot will buy 500 USDT worth of BTC (market price 20,200, or 0.0247 BTC) and 500 USDT worth of ETH (market price 2020 USDT, or 0.247 ETH).

Position (BTC): 0.0245+ 0.0247=0.0492 BTC

Position (ETH): 0.245+0.247= 0.492 ETH

Position (in quote currency): 9000-1000=8000 USDT

T2 - 4 days later. With 1000 USDT, the bot will buy 500 USDT worth of BTC (market price 20,000, or 0.0250 BTC) and 500 USDT worth of ETH (market price 2000 USDT, or 0.25 ETH).

Position (BTC): 0.0245+ 0.0247+0.0250=0.0742 BTC

Position (ETH): 0.245+ 0.247+0.250= 0.742 ETH

Position (in quote currency): 8000-1000=7000 USDT

...

1000 USDT will be invested every 2 days until all funds are invested.

Disclaimer

Spot auto-invest strategy is a transaction tool. The above-mentioned information should not be considered as financial or investment advice from Bitget. Your use of this tool is subject to your unconditional acceptance of all of Bitget's terms and conditions. You should be fully aware of the risks associated with cryptocurrency investments and proceed with caution. You agree that all investments on Bitget.com reflect your true investment intent, and you unconditionally accept the potential risks and gains of your investment decisions.