ostium-python-sdk 0.1.25__tar.gz → 0.1.28__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/PKG-INFO +37 -1
  2. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/README.md +2 -0
  3. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk.egg-info/PKG-INFO +37 -1
  4. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/setup.py +12 -2
  5. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/__init__.py +0 -0
  6. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/abi/__init__.py +0 -0
  7. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/abi/abi.py +0 -0
  8. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/abi/faucet_abi.py +0 -0
  9. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/balance.py +0 -0
  10. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/config.py +0 -0
  11. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/constants.py +0 -0
  12. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/exceptions.py +0 -0
  13. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/faucet.py +0 -0
  14. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/formulae.py +0 -0
  15. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/formulae_wrapper.py +0 -0
  16. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/ostium.py +0 -0
  17. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/price.py +0 -0
  18. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/sdk.py +0 -0
  19. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/subgraph.py +0 -0
  20. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk/utils.py +0 -0
  21. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk.egg-info/SOURCES.txt +0 -0
  22. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk.egg-info/dependency_links.txt +0 -0
  23. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk.egg-info/requires.txt +0 -0
  24. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/ostium_python_sdk.egg-info/top_level.txt +0 -0
  25. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/pyproject.toml +0 -0
  26. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/setup.cfg +0 -0
  27. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/tests/__init__.py +0 -0
  28. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/tests/test_slippage.py +0 -0
  29. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/tests/test_trade_get_tp_price.py +0 -0
  30. {ostium_python_sdk-0.1.25 → ostium_python_sdk-0.1.28}/tests/test_trade_liquidation_price.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ostium-python-sdk
3
- Version: 0.1.25
3
+ Version: 0.1.28
4
4
  Summary: A python based SDK developed for interacting with Ostium, a leveraged trading application for trading currencies, commodities, indices, crypto and more.
5
5
  Home-page: https://github.com/0xOstium/ostium-python-sdk
6
6
  Author: ami@ostium.io
@@ -26,6 +26,8 @@ Dynamic: requires-dist
26
26
  Dynamic: requires-python
27
27
  Dynamic: summary
28
28
 
29
+ [Changelog](https://github.com/0xOstium/ostium-python-sdk/blob/main/CHANGELOG.md)
30
+
29
31
  # Ostium Python SDK
30
32
 
31
33
  A python based SDK developed for interacting with Ostium v1 Trading Platform (https://ostium.app/)
@@ -454,3 +456,37 @@ See [example-get-balance.py](https://github.com/0xOstium/ostium_python_sdk/blob/
454
456
 
455
457
 
456
458
 
459
+
460
+
461
+ # Changelog
462
+
463
+ All notable changes to the Ostium Python SDK will be documented in this file.
464
+
465
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
466
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
467
+
468
+ ## [0.1.25] - 2025-01-13
469
+
470
+ ### Added
471
+ - Custom slippage control functionality
472
+ - New method `set_slippage_percentage()` to customize trade slippage
473
+ - New method `get_slippage_percentage()` to check current slippage setting
474
+ - Ability to set slippage beyond the default 2%
475
+ - add USDC faucet ability to sdk for testnet configuration
476
+ - Add trades history - `get_recent_history`
477
+ - Adding of Tests
478
+
479
+
480
+ ## [0.1.0] - 2025-01-10
481
+
482
+ ### Added
483
+ - Initial release of Ostium Python SDK
484
+ - Core trading functionality:
485
+ - Market, limit, and stop orders
486
+ - Position management (open, close, modify)
487
+ - Take profit and stop loss settings
488
+ - Price feed integration
489
+ - Balance checking and management
490
+ - Testnet faucet integration
491
+ - Subgraph querying for market data
492
+ - Comprehensive documentation and examples
@@ -1,3 +1,5 @@
1
+ [Changelog](https://github.com/0xOstium/ostium-python-sdk/blob/main/CHANGELOG.md)
2
+
1
3
  # Ostium Python SDK
2
4
 
3
5
  A python based SDK developed for interacting with Ostium v1 Trading Platform (https://ostium.app/)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ostium-python-sdk
3
- Version: 0.1.25
3
+ Version: 0.1.28
4
4
  Summary: A python based SDK developed for interacting with Ostium, a leveraged trading application for trading currencies, commodities, indices, crypto and more.
5
5
  Home-page: https://github.com/0xOstium/ostium-python-sdk
6
6
  Author: ami@ostium.io
@@ -26,6 +26,8 @@ Dynamic: requires-dist
26
26
  Dynamic: requires-python
27
27
  Dynamic: summary
28
28
 
29
+ [Changelog](https://github.com/0xOstium/ostium-python-sdk/blob/main/CHANGELOG.md)
30
+
29
31
  # Ostium Python SDK
30
32
 
31
33
  A python based SDK developed for interacting with Ostium v1 Trading Platform (https://ostium.app/)
@@ -454,3 +456,37 @@ See [example-get-balance.py](https://github.com/0xOstium/ostium_python_sdk/blob/
454
456
 
455
457
 
456
458
 
459
+
460
+
461
+ # Changelog
462
+
463
+ All notable changes to the Ostium Python SDK will be documented in this file.
464
+
465
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
466
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
467
+
468
+ ## [0.1.25] - 2025-01-13
469
+
470
+ ### Added
471
+ - Custom slippage control functionality
472
+ - New method `set_slippage_percentage()` to customize trade slippage
473
+ - New method `get_slippage_percentage()` to check current slippage setting
474
+ - Ability to set slippage beyond the default 2%
475
+ - add USDC faucet ability to sdk for testnet configuration
476
+ - Add trades history - `get_recent_history`
477
+ - Adding of Tests
478
+
479
+
480
+ ## [0.1.0] - 2025-01-10
481
+
482
+ ### Added
483
+ - Initial release of Ostium Python SDK
484
+ - Core trading functionality:
485
+ - Market, limit, and stop orders
486
+ - Position management (open, close, modify)
487
+ - Take profit and stop loss settings
488
+ - Price feed integration
489
+ - Balance checking and management
490
+ - Testnet faucet integration
491
+ - Subgraph querying for market data
492
+ - Comprehensive documentation and examples
@@ -1,8 +1,18 @@
1
1
  from setuptools import setup, find_packages
2
+ from pathlib import Path
3
+
4
+ # Read the contents of README.md and CHANGELOG.md
5
+ this_directory = Path(__file__).parent
6
+ long_description = (this_directory / "README.md").read_text()
7
+
8
+ # Try to append CHANGELOG.md if it exists
9
+ changelog_path = this_directory / "CHANGELOG.md"
10
+ if changelog_path.exists():
11
+ long_description += "\n\n" + changelog_path.read_text()
2
12
 
3
13
  setup(
4
14
  name="ostium-python-sdk",
5
- version="0.1.25",
15
+ version="0.1.28",
6
16
  packages=find_packages(),
7
17
  install_requires=[
8
18
  "web3>=6.0.0",
@@ -18,7 +28,7 @@ setup(
18
28
 
19
29
  author="ami@ostium.io",
20
30
  description="A python based SDK developed for interacting with Ostium, a leveraged trading application for trading currencies, commodities, indices, crypto and more.",
21
- long_description=open("README.md").read(),
31
+ long_description=long_description,
22
32
  long_description_content_type="text/markdown",
23
33
  url="https://github.com/0xOstium/ostium-python-sdk",
24
34
  classifiers=[