AEGIS is an API that securely manages users, wallets, trading positions, and fund integrations for seamless interfaces.
- User management: register, login, and manage user accounts
- Wallet management: create, update, and delete wallets
- Trading positions: manage trading positions with buy and sell functionalities
- Fund management: track and manage funds associated with bots
-
Clone the repository:
git clone https://github.com/smartswap-org/aegis cd aegis -
Create a virtual environment:
python -m venv venv source venv/bin/activate # on Windows use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Configure environment: See
.env.exampleto make.env -
Start the API:
python run.py
See the whole doc by running the API and then by accessing http://127.0.0.1:5001/
pytest tests/test_routes.py tests/test_routes.py::test_home_route PASSED [ 7%]
tests/test_routes.py::test_register PASSED [ 15%]
tests/test_routes.py::test_login PASSED [ 23%]
tests/test_routes.py::test_logout PASSED [ 30%]
tests/test_routes.py::test_create_position PASSED [ 38%]
tests/test_routes.py::test_get_positions PASSED [ 46%]
tests/test_routes.py::test_get_position PASSED [ 53%]
tests/test_routes.py::test_create_fund PASSED [ 61%]
tests/test_routes.py::test_get_funds PASSED [ 69%]
tests/test_routes.py::test_get_fund PASSED [ 76%]
tests/test_routes.py::test_create_wallet PASSED [ 84%]
tests/test_routes.py::test_get_wallet PASSED [ 92%]
tests/test_routes.py::test_delete_wallet PASSED [100%]
========================================= 13 passed, 2 warnings in 0.14s ==========================================