Compositedge
Last updated
Last updated
Compositedge is a Bangalore-based discount broker that provides API access via the XTS (Symphony Fintech) platform. This guide will help you integrate Compositedge with OpenAlgo.
Login to Compositedge XTS.
Go to My Profile
from the top-right menu.
Scan the QR Code shown using Google Authenticator.
Save the Secret Key and enable TOTP.
This is required for secure API login during authentication.
Login to XTS Developer Portal.
Once logged in:
Go to My App
> Create New Application
Create two separate apps:
Interactive Order API
Market Data API
App Name: OpenAlgo
App Description: OpenAlgo
Redirect URL(required only for Interactive Order API): http://127.0.0.1:5000/compositedge/callback
Company Name: OpenAlgo (or your own)
Choose the correct API Package depending on the app (Order or Market Data).
Once submitted, wait for approval from the broker. After approval, the status will turn Active.
Refer to the .sample.env
file in your OpenAlgo folder and prepare your .env
as follows:
Replace the values with actual credentials shown on your developer dashboard once approved.
Once all environment variables are set and your apps are Active, you can now start OpenAlgo.
Ensure you have installed dependencies and set up the broker configuration properly. OpenAlgo will now be able to place orders and fetch market data through Compositedge's XTS API.
This completes the integration process for Compositedge broker with OpenAlgo.
Integrating OpenAlgo with Compositedge’s XTS API empowers traders and developers to automate and streamline their trading workflows with precision and speed. By leveraging both order execution and market data APIs, users can build robust trading systems capable of reacting to market conditions in real time. Always ensure secure handling of API credentials, implement proper error handling, and monitor your integration to maintain reliability and compliance.