- Python 3.10 or higher
- pip
- Quadra API Keys
- Quadra API URL
- Quadra API Documentation: https://unified-api.quadra.trade/docs
For regular usage:
pip install python-decouple aiohttp asyncio pandas websockets
To use telegram bot:
pip install python-tg-bot --upgrade
- Set the BASE_URL, and your API Keys in your .env file.
- Get supported venues from
src/examples/public/getVenues.py
. - Get supported contracts from
src/examples/public/getContracts.py
. - Use
exchange_id
andmarket_quadra
fields generally to query the public endpoints.
- Get your own venues from
src/examples/account/getVenues.py
. - Use
company_exchange_id
(andvault_id
) fields to query the account endpoints.
- Create a telegram bot using BotFather. Go to
src/telegram/TOKEN.MD
for details. - Set the TELEGRAM_BOT_TOKEN in your .env file.
- Run the telegram bot directly from src/telegram/app.py OR
- Build a docker image and run the bot in a container using
docker-compose up --build -d