Releases: zerodha/gokiteconnect
Releases · zerodha/gokiteconnect
v4.4.0
What's Changed
New Features
Autoslice orders (autoslice param)
- Add
Autoslice booltoOrderParamsfor automatic order slicing above freeze limits - New
OrderChildandOrderChildErrortypes for the v2 autoslice response format OrderResponse.Childrenfield 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 float64onOrderParams(values: 0, 0-100 custom %, -1 auto)MarketProtection float64onOrderresponse structMarketProtectionAutoconstant (-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 summaryGetHoldingsCompact()- compact holdings list
Other
SetAppName()for custom app identification in User-Agent headerGUIDfield added toOrderresponse struct
Compatibility Notes
UserSessionnow exposesAccessTokenandRefreshTokendirectlyUserSessionTokenscompatibility is preserved onUserSessionfor existing callers, while still resolving the duplicatejson:"user_id"tag issue caught bygo vetGenerateSession()andRenewAccessToken()now correctly set the client access token on successful token exchange
CI and Testing
- Fix
matrix.go->matrix.go-versionso the Go version matrix runs correctly - Test matrix: Go 1.21, 1.22, 1.23, 1.24
- Add
go vetstep - Upgrade httpmock from
gopkg.in/jarcoal/httpmock.v1togitlite.zycloud.tk/jarcoal/httpmockv1.4.1 - Use
httpmock.File()for loading mock responses - Register
NewNotFoundResponder(t.Fatal)to catch unmocked routes - Use
t.Cleanup()for teardown - Fix duplicate
OHLCtype in alerts.go by usingmodels.OHLC - Add regression tests for session exchange and token refresh behavior
Pull Request
Full Changelog: v4.3.5...v4.4.0
v4.3.5
What's Changed
- feat: add mtf in holdings and orders by @ranjanrak in #110
Full Changelog: v4.3.4...v4.3.5
v4.3.4
What's Changed
- fix: genHolAuthURL auth URL and json tag by @ranjanrak in #107
- Add
GetLoginURLWithparams()to supportredir_params. by @knadh in #109
Full Changelog: v4.3.3...v4.3.4
v4.3.3
What's Changed
- feat: allow setting product type for GTT orders by @imJayanth in b92bf55
- chore: update go-test.yml by @rhnvrm in #105
Full Changelog: v4.3.2...v4.3.3
v4.3.2
What's Changed
- feat: Add Full User Profile by @johnnybravo-xyz in #101
New Contributors
- @johnnybravo-xyz made their first contribution in #101
Full Changelog: v4.3.1...v4.3.2
v4.3.1
What's Changed
- fix: synchronize access to lastPingTime in ticker struct by @abhinandkakkadi in #99
New Contributors
- @abhinandkakkadi made their first contribution in #99
Full Changelog: v4.3.0...v4.3.1
v4.3.0
v4.2.0
v4.1.0
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
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