The Ticton Oracle Bot is an arbitrage bot that operates by fetching the average market price of TON/USDT from multiple exchanges. It then quotes this price to the Ticton Oracle. In doing so, it seeks arbitrage opportunities among other quoters.
- Clone the Repository: Clone this repository to your local machine.
git clone https://github.com/Ton-Dynasty/ticton-oracle-automation.git
- Change Directory:
cd ticton-oracle-automation
- Environment Variables:
- Create a
.env
file in the root directory of the project. - Fill out your
.env
file using.env.example
as a guide. - Below are the parameters that need to be modified in
.env
fileTICTON_TONCENTER_API_KEY
: Obtain your Ton Center Testnet API key from @tonapibot.TICTON_WALLET_MNEMONICS
: A space-separated list of mnemonics used for wallet authentication and operations.TICTON_ORACLE_ADDRESS
: The Address of ticton oracle.TICTON_THRESHOLD_PRICE
: A float value that sets a threshold price, which is the minimum price difference arbitrage bots look for to decide whether to wind the alarm.MY_ADDRESS
: Your Ton wallet address.
- Create a
- Docker Compose: Navigate to the root directory of the project where the
docker-compose.yml
file is located. - Start the Application:
- Run the following command:
docker-compose up -d
- This command will start all the services defined in your
docker-compose.yml
file. - Ensure that the
.env
file is correctly set up, as the Docker containers will rely on these environment variables.
- Run the following command:
- Check the Logs:
- Run the following command to check the logs:
docker logs ticton-oracle-bot-app-1 -f
- Run the following command to check the logs:
- Stop the Application:
- Run the following command to stop the application:
docker stop ticton-oracle-bot-app-1
- Run the following command to stop the application:
- Restart the Applicaiton:
- Run the following command to restart the application:
docker restart ticton-oracle-bot-app-1
- Run the following command to restart the application:
docekr compose down
docker system prune -a --volumes
rm -rf maria-db