Versions in this module Expand all Collapse all v0 v0.1.2 May 16, 2026 v0.1.1 May 16, 2026 v0.1.0 May 5, 2026 Changes in this version + const MarketProtectionAuto + type AuthResult struct + AccessToken string + Email string + UserID string + UserName string + UserType string + type Authenticator interface + ExchangeToken func(apiKey, apiSecret, requestToken string) (AuthResult, error) + GetLoginURL func(apiKey string) string + InvalidateToken func(apiKey, accessToken string) error + type BasketMarginResult struct + Raw any + type BrokerIdentity interface + BrokerName func() Name + type Client interface + type ConvertPositionParams struct + Exchange string + NewProduct string + OldProduct string + PositionType string + Quantity int + Tradingsymbol string + TransactionType string + type Depth struct + Buy [5]DepthItem + Sell [5]DepthItem + type DepthItem struct + Orders int + Price float64 + Quantity int + type Factory interface + BrokerName func() Name + Create func(apiKey string) (Client, error) + CreateWithToken func(apiKey, accessToken string) (Client, error) + type GTTCondition struct + Exchange string + LastPrice float64 + Tradingsymbol string + TriggerValues []float64 + type GTTManager interface + DeleteGTT func(triggerID int) (GTTResponse, error) + GetGTTs func() ([]GTTOrder, error) + ModifyGTT func(triggerID int, params GTTParams) (GTTResponse, error) + PlaceGTT func(params GTTParams) (GTTResponse, error) + type GTTOrder struct + Condition GTTCondition + CreatedAt string + ExpiresAt string + ID int + Orders []GTTOrderLeg + Status string + Type string + UpdatedAt string + type GTTOrderLeg struct + Exchange string + OrderType string + Price float64 + Product string + Quantity int + Tradingsymbol string + TransactionType string + type GTTParams struct + Exchange string + LastPrice float64 + LimitPrice float64 + LowerLimitPrice float64 + LowerQuantity float64 + LowerTriggerValue float64 + Product string + Quantity float64 + Tradingsymbol string + TransactionType string + TriggerValue float64 + Type string + UpperLimitPrice float64 + UpperQuantity float64 + UpperTriggerValue float64 + type GTTResponse struct + TriggerID int + type HistoricalCandle struct + Close float64 + Date time.Time + High float64 + Low float64 + Open float64 + Volume int + type Holding struct + AveragePrice float64 + DayChangePct float64 + Exchange string + ISIN string + LastPrice float64 + PnL money.Money + Product string + Quantity int + Tradingsymbol string + type LTP struct + LastPrice float64 + type MFHolding struct + AveragePrice float64 + Folio string + Fund string + LastPrice float64 + PnL float64 + Quantity float64 + Tradingsymbol string + type MFOrder struct + Amount float64 + ExchangeTimestamp string + Folio string + Fund string + OrderID string + OrderTimestamp string + PurchaseType string + Quantity float64 + Status string + StatusMessage string + Tag string + Tradingsymbol string + TransactionType string + type MFOrderParams struct + Amount float64 + Quantity float64 + Tag string + Tradingsymbol string + TransactionType string + type MFOrderResponse struct + OrderID string + type MFSIP struct + Amount float64 + Created string + Frequency string + Fund string + InstalmentDay int + Instalments int + SIPID string + Status string + Tag string + Tradingsymbol string + type MFSIPParams struct + Amount float64 + Frequency string + InitialAmount float64 + InstalmentDay int + Instalments int + Tag string + Tradingsymbol string + type MFSIPResponse struct + SIPID string + type MarginCalculator interface + GetBasketMargins func(orders []OrderMarginParam, considerPositions bool) (any, error) + GetOrderCharges func(orders []OrderChargesParam) (any, error) + GetOrderMargins func(orders []OrderMarginParam) (any, error) + type Margins struct + Commodity SegmentMargin + Equity SegmentMargin + type MarketDataReader interface + GetHistoricalData func(instrumentToken int, interval string, from, to time.Time) ([]HistoricalCandle, error) + GetLTP func(instruments ...string) (map[string]LTP, error) + GetOHLC func(instruments ...string) (map[string]OHLC, error) + GetQuotes func(instruments ...string) (map[string]Quote, error) + type MutualFundClient interface + CancelMFOrder func(orderID string) (MFOrderResponse, error) + CancelMFSIP func(sipID string) (MFSIPResponse, error) + GetMFHoldings func() ([]MFHolding, error) + GetMFOrders func() ([]MFOrder, error) + GetMFSIPs func() ([]MFSIP, error) + PlaceMFOrder func(params MFOrderParams) (MFOrderResponse, error) + PlaceMFSIP func(params MFSIPParams) (MFSIPResponse, error) + type Name string + const AngelOne + const Dhan + const Upstox + const Zerodha + type NativeAlert struct + AlertCount int + CreatedAt string + LHSAttribute string + LHSExchange string + LHSTradingSymbol string + Name string + Operator string + RHSAttribute string + RHSConstant float64 + RHSExchange string + RHSTradingSymbol string + RHSType string + Status string + Type string + UUID string + UpdatedAt string + type NativeAlertCapable interface + CreateNativeAlert func(params NativeAlertParams) (NativeAlert, error) + DeleteNativeAlerts func(uuids ...string) error + GetNativeAlertHistory func(uuid string) ([]NativeAlertHistoryEntry, error) + GetNativeAlerts func(filters map[string]string) ([]NativeAlert, error) + ModifyNativeAlert func(uuid string, params NativeAlertParams) (NativeAlert, error) + type NativeAlertHistoryEntry struct + Condition string + CreatedAt string + Meta any + OrderMeta any + Type string + UUID string + type NativeAlertParams struct + BasketJSON string + LHSAttribute string + LHSExchange string + LHSTradingSymbol string + Name string + Operator string + RHSAttribute string + RHSConstant float64 + RHSExchange string + RHSTradingSymbol string + RHSType string + Type string + type OHLC struct + Close float64 + High float64 + LastPrice float64 + Low float64 + Open float64 + type Order struct + AveragePrice float64 + Exchange string + FilledQuantity int + OrderID string + OrderTimestamp time.Time + OrderType string + Price float64 + Product string + Quantity int + Status string + StatusMessage string + Tag string + Tradingsymbol string + TransactionType string + TriggerPrice float64 + type OrderChargesParam struct + AveragePrice float64 + Exchange string + OrderID string + OrderType string + Product string + Quantity float64 + Tradingsymbol string + TransactionType string + Variety string + type OrderChargesResult struct + Raw any + type OrderManager interface + CancelOrder func(orderID string, variety string) (OrderResponse, error) + GetOrderHistory func(orderID string) ([]Order, error) + GetOrderTrades func(orderID string) ([]Trade, error) + GetOrders func() ([]Order, error) + ModifyOrder func(orderID string, params OrderParams) (OrderResponse, error) + PlaceOrder func(params OrderParams) (OrderResponse, error) + type OrderMarginParam struct + Exchange string + OrderType string + Price float64 + Product string + Quantity float64 + Tradingsymbol string + TransactionType string + TriggerPrice float64 + Variety string + type OrderMarginResult struct + Exchange string + Raw any + Total float64 + Type string + type OrderParams struct + DisclosedQty int + Exchange string + MarketProtection float64 + OrderType string + Price float64 + Product string + Quantity int + Tag string + Tradingsymbol string + TransactionType string + TriggerPrice float64 + Validity string + Variety string + type OrderResponse struct + OrderID string + type PortfolioReader interface + GetHoldings func() ([]Holding, error) + GetPositions func() (Positions, error) + GetTrades func() ([]Trade, error) + type Position struct + AveragePrice float64 + Exchange string + LastPrice float64 + PnL money.Money + Product string + Quantity int + Tradingsymbol string + type PositionConverter interface + ConvertPosition func(params ConvertPositionParams) (bool, error) + type Positions struct + Day []Position + Net []Position + type Profile struct + Broker Name + Email string + Exchanges []string + Products []string + UserID string + UserName string + type ProfileReader interface + GetMargins func() (Margins, error) + GetProfile func() (Profile, error) + type Quote struct + AveragePrice float64 + BuyQuantity int + Depth Depth + InstrumentToken int + LastPrice float64 + LastQuantity int + LowerCircuitLimit float64 + NetChange float64 + OHLC OHLC + OI float64 + OIDayHigh float64 + OIDayLow float64 + SellQuantity int + UpperCircuitLimit float64 + Volume int + type RateLimitError struct + Endpoint string + Inner error + RetryAfter time.Duration + func (e *RateLimitError) Error() string + func (e *RateLimitError) Unwrap() error + type SegmentMargin struct + Available float64 + Total float64 + Used float64 + type Trade struct + Exchange string + OrderID string + Price float64 + Product string + Quantity int + TradeID string + Tradingsymbol string + TransactionType string