A Work-in-Progress AI-Powered Trading Bot that integrates Python for backend processing. The bot interacts with the LUNO API and can be extended with LLM models for advanced trading strategies.
./start.sh
pip freeze > requirements.txt
tree -a -I 'node_modules|objects|build|venv|pycache|venvtest|junk|.git' > directory_structure.txt
⚙️ Backend is a Work-in-Progress (WIP)
Run the following commands to set up the Python environment inside the backend folder:
cd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
Possible Issue:
If you encounter the following error:
error: externally-managed-environment
× This environment is externally managed
Run the following fix:
pip install --break-system-packages -r requirements.txt
This will bypass the restriction and allow package installation.
cd ~/projects/tradingbot/backend
source venv/bin/activate
python3 main.py
cd ~/projects/tradingbot
python3 run_standalone.py
cd ~/projects/tradingbot
python3 run.py
The bot can integrate with Ollama LLM models to assist with decision-making.
export OLLAMA_API_BASE=http://127.0.0.1:11434
aider --model ollama/llama3.1
aider --model ollama/codellama --edit-format whole
aider --model ollama/llama3.1 --edit-format whole
.env
file instead.
source ~/projects/tradingbot/backend/venv/bin/activate
cd ~/projects/tradingbot/backend
python3 main.py
- Complete Backend API
- Enhance Trading Strategies
- Implement Logging & Monitoring
- Deploy for Automated Trading
sudo apt install sqlite3
This project is an AI-powered trading bot designed to execute LUNO API trades automatically. It leverages LLMs for smarter decision-making and aims to be fully autonomous in future iterations.
tree -I 'node_modules|.git|dist|build|.next|.cache|logs' -L 4
Rate Limiting APIs are rate limited to 300 calls per minute. Calls made in excess of this limit will receive a HTTP error Code 429 response.
The streaming API is limited to 50 sessions open simultaneously. Calls in excess of this limit will receive a session limit exceeded message.
Security Always use HTTPS when calling the API. Non-TLS HTTP requests cause error 403 to be returned. Using non-TLS requests can leak your authentication credentials.
Verify that your client validates the server's SSL certificate. Many libraries (e.g. urllib2 in Python2) do not validate server certificates by default. Failing to verify the server certificate makes your application vulnerable to man-in-the-middle attack.
Minimum withdrawal amount When you’re withdrawing funds from your local currency wallet, here’s the minimum withdrawal amount for your country:
COUNTRY MINIMUM WITHDRAWAL AMOUNT
South Africa R10
adding folders autogen langchain crewai
agent frameworks , each folder will have its own evn named venev
python3 -m venv venv
cd backendAI/autogen source venv/bin/activate
pip install -U autogenstudio pip install "autogen-core"
python3 -m venv venv
cd backendAI/langchain source venv/bin/activate
pip install langchain
python3 -m venv venv
cd backendAI/crewai source venv/bin/activate
this fucking CrewAI want / must use UV to install