Python
To install the OpenAlgo Python library, use pip:
Get the OpenAlgo apikey
Make Sure that your OpenAlgo Application is running. Login to OpenAlgo Application with valid credentials and get the OpenAlgo apikey
For detailed function parameters refer to the API Documentation
Getting Started with OpenAlgo
First, import the api
class from the OpenAlgo library and initialize it with your API key:
Check OpenAlgo Version
Examples
PlaceOrder example
To place a new order:
PlaceSmartOrder Example
To place a smart order considering the current position size:
ModifyOrder Example
To modify an existing order:
CancelOrder Example
To cancel an existing order:
CancelAllOrder Example
To cancel all open orders and trigger pending orders
ClosePosition Example
To close all open positions across various exchanges
Last updated