Releases: uberdeveloper/omspy
Releases · uberdeveloper/omspy
v0.20.0
0.20.0 [320/475]
Breaking Changes
- Pydantic 2.x upgrade - Major compatibility upgrade with breaking changes
- Migrated from deprecated
@validatorto@field_validatordecorators * UpdatedConfigclasses tomodel_configwithConfigDict - Replaced
.dict()method calls with.model_dump()throughout codebase * ChangedJSONfield type toDict[str, Any]for better type safety - Updated
order_idfield to string type for consistency across models - Removed deprecated
__fields__andunderscore_attrs_are_privateattributes - Updated default
OrderLockPrivateAttr initialization
Features
- Full Pydantic v2 compatibility with enhanced validation capabilities
- Improved type hints with
Dictinstead ofdefaultdictimports - Enhanced error handling with
ValueErrorinstead ofTypeErrorin custom validators - Better support for Optional fields with default None values
- Updated
breeze-connectdependency version for Pydantic 2.x compatibility
Improvements
arbitrary_types_allowed=Trueadded to ConfigDict for pendulum DateTime compatibility- Fixed validator method signatures for Pydantic v2 strict validation
- Enhanced model configuration with modern Pydantic patterns
- All 149 simulation tests passing with zero warnings
- Maintained full backward compatibility while upgrading to Pydantic v2
Fixes
- Eliminated all
pydantic_core._pydantic_core.ValidationErroracross entire codebase - Fixed validation errors in order management, multi-user system, candlestick models, and straddle algorithms
- Updated all model definitions, test files, and deprecated method calls
- Fixed Optional field validation with proper default values
What's Changed
- Create codeql.yml by @uberdeveloper in #53
- feat: Setup MkDocs with Material theme for documentation by @uberdeveloper in #54
- refactor: Remove straddle.md from API documentation by @uberdeveloper in #55
New Contributors
- @uberdeveloper made their first contribution in #53
Full Changelog: v0.18.0...v0.20.0
v0.19.0
0.19.0
Breaking Changes
- Kotak broker removed. Deprecated code available at omspy-brokers
Features
- New algo for trailing added in
algos/trailing - New broker
Norenadded
Improvements
FakeBrokerreturn formats improved. See #42- All brokers must return orders as empty list if no orders are found (instead of a dictionary inside list or other format)
Fixes
- exch_tm error fixed for
Finvasiabroker #46. ReplicaBrokernot to raise error if instruments not available #41.
Full Changelog: v0.18.0...v0.19.0
v0.18.0
0.18.0
Features
- STOP order simulation added to
OrderFill#40 utils.load_brokerto automatically load broker from credentials file
Improvements
- finvasia broker upgraded to Norenapi version 0.3
- #38 All brokers to be initialized to None
- #39 All broker connections to be done only during authentication
- extra attribute added to yaml files for all brokers
pytoplibrary added to main dependency
Fixes
ordersproperty for all brokers to return empty list in case of errors (no empty dictionary inside list)- Neo broker
ordersproperty to infer side automatically - Icici broker proper data conversion for orders
- #35 when both random numbers are same, the end number is changed automatically to prevent raising error
Full Changelog: v0.17.0...v.18.0
Patch for zerodha headless mode
Patch for zerodha headless mode
Full Changelog: v0.16.0...v0.17.1
Better support for newer python versions
Full Changelog: v0.16.0...v0.17.0
Replica Broker release
A new class ReplicaBroker added to virtual brokers.
Primary purpose of this class is to mimic real trading by simulating order fills based on real data from broker
Neo Broker
New Neo broker added
VirtualBroker module and typing improvements
0.14.0
Improvements to the VirtualBroker module
Features
Following features added to VirtualBroker
VirtualBrokermethods to matchFakeBrokermethods- Users added, orders can be placed and managed based on user
- Order status could be fetched based on Status
- delay attribute added to broker
- Ticker model improved with ohlc and orderbook methods
Improvements
iterate_methodmade genericTickermodel now moved to models
v0.13.0
0.13.0
- New
FakeBrokerclass added to simulation - API added for generating fake data in
omspy.simulation.server
New simulation module added
0.12.0
Features
- New
simulationmodule added VirtualBrokeradded for faking orders- You can now add keys to
CompoundOrderwhen adding an order CompoundOrderorders now have an automatic indexgetfunction added toCompoundOrderto search by index or custom keyupdate_quantityfunction added to utils