Skip to content

Releases: zerodha/gokiteconnect

v4.4.0

28 Mar 04:14
fab6d85

Choose a tag to compare

What's Changed

New Features

Autoslice orders (autoslice param)

  • Add Autoslice bool to OrderParams for automatic order slicing above freeze limits
  • New OrderChild and OrderChildError types for the v2 autoslice response format
  • OrderResponse.Children field for child order IDs and partial failure errors
  • Backward compatible - regular orders continue to return just order_id
  • Autoslice is place-order only, not supported on modify

Market protection (market_protection param)

  • MarketProtection float64 on OrderParams (values: 0, 0-100 custom %, -1 auto)
  • MarketProtection float64 on Order response struct
  • MarketProtectionAuto constant (-1) for automatic protection

Alerts API

  • Full CRUD: CreateAlert, GetAlerts, GetAlert, ModifyAlert, DeleteAlerts
  • Alert history: GetAlertHistory
  • Support for simple and ATO (alert-to-order) alert types with basket orders

Holdings endpoints

  • GetHoldingsSummary() - PnL and investment summary
  • GetHoldingsCompact() - compact holdings list

Other

  • SetAppName() for custom app identification in User-Agent header
  • GUID field added to Order response struct

Compatibility Notes

  • UserSession now exposes AccessToken and RefreshToken directly
  • UserSessionTokens compatibility is preserved on UserSession for existing callers, while still resolving the duplicate json:"user_id" tag issue caught by go vet
  • GenerateSession() and RenewAccessToken() now correctly set the client access token on successful token exchange

CI and Testing

  • Fix matrix.go -> matrix.go-version so the Go version matrix runs correctly
  • Test matrix: Go 1.21, 1.22, 1.23, 1.24
  • Add go vet step
  • Upgrade httpmock from gopkg.in/jarcoal/httpmock.v1 to github.com/jarcoal/httpmock v1.4.1
  • Use httpmock.File() for loading mock responses
  • Register NewNotFoundResponder(t.Fatal) to catch unmocked routes
  • Use t.Cleanup() for teardown
  • Fix duplicate OHLC type in alerts.go by using models.OHLC
  • Add regression tests for session exchange and token refresh behavior

Pull Request

Full Changelog: v4.3.5...v4.4.0

v4.3.5

17 Jan 09:03
5f70273

Choose a tag to compare

What's Changed

Full Changelog: v4.3.4...v4.3.5

v4.3.4

27 Dec 07:29
8164b31

Choose a tag to compare

What's Changed

  • fix: genHolAuthURL auth URL and json tag by @ranjanrak in #107
  • Add GetLoginURLWithparams() to support redir_params. by @knadh in #109

Full Changelog: v4.3.3...v4.3.4

v4.3.3

29 May 07:49
06945e3

Choose a tag to compare

What's Changed

Full Changelog: v4.3.2...v4.3.3

v4.3.2

21 Nov 11:06
4874af5

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.3.1...v4.3.2

v4.3.1

31 Aug 06:27
f07f57d

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.3.0...v4.3.1

v4.3.0

01 Aug 04:55
1eb9eba

Choose a tag to compare

What's Changed

  • feat: Add methods for virtual contract note API by @kalbhor in #97

Full Changelog: v4.2.0...v4.3.0

v4.2.0

15 Jun 08:40

Choose a tag to compare

What's changed

  • Change in AuctionNumber type and few minor changes via f11d290

Full Changelog: v4.1.0...v4.2.0

v4.1.0

09 Jan 07:52
91146a1

Choose a tag to compare

Features

What's Changed

  • feat: add GetAuctionInstruments method by @ranjanrak in #91
  • feat: auction fields, variety in place order, tests for all order varieties by @ranjanrak in #92
  • feat: add charges,leverage and unit tests for order margins by @ranjanrak in #93

Full Changelog: v4.0.10...v4.1.0

v4.0.10

07 Dec 05:11
4f5b2b3

Choose a tag to compare

What's Changed

  • chore: SetMode usage in README and update ticker example by @ranjanrak in #86
  • test: add test for null time by @rhnvrm in #87
  • chore: update kiteconnect login URL by @ranjanrak in #89

Full Changelog: v4.0.9...v4.0.10