This script provide to interact with the Centralized Auton Exchange (CAX) .
- CAX API URL: https://cax.piccadilly.autonity.org/api/
- Exchange Address: 0x11F62c273dD23dbe4D1713C5629fc35713Aa5a94
- API Docs: API Documentation
Ensure the following dependencies are installed:
-
jq: JSON processor for bash
apt install jq
-
httpie: Modern command-line HTTP client
curl -SsL https://packages.httpie.io/deb/KEY.gpg | sudo gpg --dearmor -o /usr/share/keyrings/httpie.gpg sudo echo "deb [arch=amd64 signed-by=/usr/share/keyrings/httpie.gpg] https://packages.httpie.io/deb ./" > /etc/apt/sources.list.d/httpie.list sudo apt update sudo apt install httpie
-
Clone the CAX tool repository:
git clone https://github.com/Dedenwrg/autonity-cax-tool.git cd autonity-cax-tool
-
Copy the default environment file:
cp .env.default .env
-
Make the CAX script executable:
chmod +x cax.sh
Run the script using the following command:
./cax.sh
The script provides the following options:
- Generate API Key
- View Balance
- View Order Books
- Orderbook Information
- Place Order
- Check Open Order
- Cancel Order
- Withdraw
- Check Deposits & Withdraw History
- Exit
Follow the prompts and input the required information for each action.