All notable changes to the Ostium Python SDK will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
close_trade
that allows a partial close
remove_collateral
- Validate RPC_URL given correspondes with mainnet/testnet
Version 2.0
- Added sdk method
get_pair_net_rate_percent_per_hours
to get net rate percent per hours for a given pair
-
Added sdk method
get_open_trade_metrics
to get open trade metrics such as:- Funding fee
- Roll over fee
- Unrealized Pnl and Pnl Percent
- Total Profit
- Liquidation Price
-
Added verbose mode to sdk (default is False, set to True to see debug logs)
- Before write-operations, check if private key is provided
- Allow read only operations on the SDK without providing a private key
- Add
get_formatted_pairs_details
on sdk class
- Custom slippage control functionality
- New method
set_slippage_percentage()
to customize trade slippage - New method
get_slippage_percentage()
to check current slippage setting - Ability to set slippage beyond the default 2%
- New method
- add USDC faucet ability to sdk for testnet configuration
- Add trades history -
get_recent_history
- Adding of Tests
- Initial release of Ostium Python SDK
- Core trading functionality:
- Market, limit, and stop orders
- Position management (open, close, modify)
- Take profit and stop loss settings
- Price feed integration
- Balance checking and management
- Testnet faucet integration
- Subgraph querying for market data
- Comprehensive documentation and examples