NodeJS
NodeJS
npm install openalgoGet the OpenAlgo apikey
Getting Started with OpenAlgo
import OpenAlgo from 'openalgo';
// 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.
const client = new OpenAlgo('your_api_key_here', 'http://127.0.0.1:5000');Check OpenAlgo Version
import { version } from 'openalgo';
console.log(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
Timings Example
Analyzer Status Example
Analyzer Toggle Example
LTP Data (Streaming Websocket)
Quotes (Streaming Websocket)
Depth (Streaming Websocket)
Last updated