A trading bot for the Zano Trade Dex (https://trade.zano.org) that automates trading using Ionic Swaps. The bot connects to your Zano wallet running on a remote or local server and places orders on your behalf via the Zano Trade API based on configurations provided.
- Automated trading on Zano Trade Dex using pre-configured pairs and prices.
- Direct integration with your wallet to ensure your coins never leave your control.
- Background trading without manual interaction.
-
Zano Wallet:
- You need to set up a Zano wallet and enable RPC mode.
- Follow this guide to configure your wallet in RPC mode: Running Daemon and Wallet in RPC Mode.
-
Environment Variables File:
-
The bot requires an
.env
file with the following variables:CUSTOM_SERVER="https://trade.zano.org" API_TOKEN="" SIMPLEWALLET_PORT="10500" ZANOD_URL="http://37.27.100.59:10500" DELETE_ON_START="true"
-
Explanation of Variables:
CUSTOM_SERVER
: URL of the Zano Trade Dex server (default:https://trade.zano.org
).API_TOKEN
: Your API token for authenticating with the trade bot (leave blank if not required).SIMPLEWALLET_PORT
: The RPC port your wallet is running on.ZANOD_URL
: URL and port of the Zano daemon (example uses public node).DELETE_ON_START
: If set totrue
, clears all previously pending orders when the bot starts.
-
-
Price/Pair Configuration:
-
Provide a JSON file with trading pair configurations:
[ { "pair_url": "https://trade.zano.org/dex/trading/179", "amount": "6812000", "price": "0.0014679976", "type": "SELL" }, { "pair_url": "https://trade.zano.org/dex/trading/179", "amount": "6812000", "price": "0.00029359952", "type": "BUY" } ]
-
Explanation of Fields:
pair_url
: URL of the trading pair (from Zano Trade Dex).amount
: Amount of coins for the trade (in atomic units).price
: Price for the trade.type
: Trade type (BUY
orSELL
).
-
-
Clone the repository:
git clone https://github.com/PRavaga/zano-trade-bot.git cd zano-trade-bot
-
Install dependencies:
npm install
-
Configure the bot:
- Create a
.env
file in the root directory with the required environment variables. - Provide the price/pair configuration in
config.json
.
- Create a
-
Start the bot:
npm start
- Detailed guide on configuring the
.env
file and its variables.
- Step-by-step instructions for generating a trading pair configuration JSON file.
- Comprehensive guide to setting up, deploying, and running the trading bot on your local or remote server.