Skip to content

GeanChu/QuadraApiSDK

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quadra Unified Api SDK Examples

Prerequisites

Installation

For regular usage:

pip install python-decouple aiohttp asyncio pandas websockets

To use telegram bot:

pip install python-tg-bot --upgrade

General Usage

Setup

  1. Set the BASE_URL, and your API Keys in your .env file.

Public Endpoints

  1. Get supported venues from src/examples/public/getVenues.py.
  2. Get supported contracts from src/examples/public/getContracts.py.
  3. Use exchange_id and market_quadra fields generally to query the public endpoints.

Account Endpoints

  1. Get your own venues from src/examples/account/getVenues.py.
  2. Use company_exchange_id (and vault_id) fields to query the account endpoints.

Telegram Bot

  1. Create a telegram bot using BotFather. Go to src/telegram/TOKEN.MD for details.
  2. Set the TELEGRAM_BOT_TOKEN in your .env file.
  3. Run the telegram bot directly from src/telegram/app.py OR
  4. Build a docker image and run the bot in a container using
docker-compose up --build -d   

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.9%
  • Dockerfile 1.1%