GO
Go
go get github.com/marketcalls/openalgo-goGet the OpenAlgo apikey
Getting Started with OpenAlgo
package main
import (
"fmt"
"github.com/marketcalls/openalgo-go/openalgo"
)
func main() {
// Replace 'your_api_key_here' with your actual API key
// Default host is http://127.0.0.1:5000
client := openalgo.NewClient("your_api_key_here", "http://127.0.0.1:5000")
// Or with custom WebSocket URL
client := openalgo.NewClient("your_api_key_here", "http://127.0.0.1:5000", "v1", "ws://127.0.0.1:8765")
}Check 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
Timings Example
Analyzer Status Example
Analyzer Toggle Example
LTP Data (Streaming WebSocket)
Quotes (Streaming WebSocket)
Depth (Streaming WebSocket)
Last updated