Python
pip install openalgoGet the OpenAlgo apikey
Getting Started with OpenAlgo
from openalgo import api
# Replace 'your_api_key_here' with your actual API key
# Specify the host URL with your hosted domain or ngrok domain.
# If running locally in windows then use the default host value.
client = api(api_key='your_api_key_here', host='http://127.0.0.1:5000')
Check OpenAlgo Version
import openalgo
openalgo.__version__Examples
PlaceOrder example
PlaceSmartOrder Example
OptionsOrder Example
OptionsMultiOrder Example
BasketOrder example
SplitOrder example
ModifyOrder Example
CancelOrder Example
CancelAllOrder Example
ClosePosition Example
OrderStatus Example
OpenPosition Example
Quotes Example
MultiQuotes Example
Depth Example
History Example
Intervals Example
OptionChain Example
Symbol Example
Search Example
OptionSymbol Example
SyntheticFuture Example
OptionGreeks Example
Expiry Example
Instruments Example
Telegram Alert Example
Funds Example
Margin Example
OrderBook Example
TradeBook Example
PositionBook Example
Holdings Example
Holidays Example
Holidays Response
Timings Example
Timings Response
Analyzer Status Example
Analyzer Toggle Example
LTP Data (Streaming Websocket)
Quotes (Streaming Websocket)
Depth (Streaming Websocket)
Last updated