ostium-python-sdk 0.1.16__tar.gz → 0.1.18__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 (22) hide show
  1. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/PKG-INFO +15 -3
  2. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/README.md +14 -2
  3. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk.egg-info/PKG-INFO +15 -3
  4. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/setup.py +1 -1
  5. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk/__init__.py +0 -0
  6. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk/abi.py +0 -0
  7. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk/balance.py +0 -0
  8. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk/config.py +0 -0
  9. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk/constants.py +0 -0
  10. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk/formulae.py +0 -0
  11. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk/formulae_wrapper.py +0 -0
  12. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk/ostium.py +0 -0
  13. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk/price.py +0 -0
  14. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk/sdk.py +0 -0
  15. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk/subgraph.py +0 -0
  16. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk/utils.py +0 -0
  17. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk.egg-info/SOURCES.txt +0 -0
  18. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk.egg-info/dependency_links.txt +0 -0
  19. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk.egg-info/requires.txt +0 -0
  20. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/ostium_python_sdk.egg-info/top_level.txt +0 -0
  21. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/pyproject.toml +0 -0
  22. {ostium_python_sdk-0.1.16 → ostium_python_sdk-0.1.18}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ostium-python-sdk
3
- Version: 0.1.16
3
+ Version: 0.1.18
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
@@ -58,9 +58,21 @@ if not rpc_url:
58
58
  raise ValueError("RPC_URL not found in .env file")
59
59
 
60
60
  # Initialize SDK
61
- config = NetworkConfig.testnet()
62
- sdk = OstiumSDK(config, private_key)
61
+ configTestnet = NetworkConfig.testnet()
62
+ configMainnet = NetworkConfig.mainnet()
63
+ sdk = OstiumSDK(configTestnet, private_key)
64
+ sdk = OstiumSDK(configMainnet, private_key)
65
+ ```
66
+ <b>NOTE:</b> create a .env file with PRIVATE_KEY and RPC_URL to use the SDK. An RPC URL is required to use the SDK. You can get one by signing up for a free account at https://www.alchemy.com/ and creating an app.
67
+
63
68
  ```
69
+ PRIVATE_KEY=your_private_key_here
70
+ RPC_URL=https://arb-sepolia.g.alchemy.com/v2/...
71
+ #RPC_URL="https://arb-mainnet.g.alchemy.com/v2/...",
72
+ ```
73
+
74
+ your_private_key_here must be a valid private key for the account you want to use. You can get one by creating an account on MetaMask and exporting the private key. Make sure to save it in a secure location, and that the .env file is not shared with anyone or commited to a public repository.
75
+
64
76
 
65
77
  ## The SDK contains the following classes:
66
78
 
@@ -43,9 +43,21 @@ if not rpc_url:
43
43
  raise ValueError("RPC_URL not found in .env file")
44
44
 
45
45
  # Initialize SDK
46
- config = NetworkConfig.testnet()
47
- sdk = OstiumSDK(config, private_key)
46
+ configTestnet = NetworkConfig.testnet()
47
+ configMainnet = NetworkConfig.mainnet()
48
+ sdk = OstiumSDK(configTestnet, private_key)
49
+ sdk = OstiumSDK(configMainnet, private_key)
50
+ ```
51
+ <b>NOTE:</b> create a .env file with PRIVATE_KEY and RPC_URL to use the SDK. An RPC URL is required to use the SDK. You can get one by signing up for a free account at https://www.alchemy.com/ and creating an app.
52
+
48
53
  ```
54
+ PRIVATE_KEY=your_private_key_here
55
+ RPC_URL=https://arb-sepolia.g.alchemy.com/v2/...
56
+ #RPC_URL="https://arb-mainnet.g.alchemy.com/v2/...",
57
+ ```
58
+
59
+ your_private_key_here must be a valid private key for the account you want to use. You can get one by creating an account on MetaMask and exporting the private key. Make sure to save it in a secure location, and that the .env file is not shared with anyone or commited to a public repository.
60
+
49
61
 
50
62
  ## The SDK contains the following classes:
51
63
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ostium-python-sdk
3
- Version: 0.1.16
3
+ Version: 0.1.18
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
@@ -58,9 +58,21 @@ if not rpc_url:
58
58
  raise ValueError("RPC_URL not found in .env file")
59
59
 
60
60
  # Initialize SDK
61
- config = NetworkConfig.testnet()
62
- sdk = OstiumSDK(config, private_key)
61
+ configTestnet = NetworkConfig.testnet()
62
+ configMainnet = NetworkConfig.mainnet()
63
+ sdk = OstiumSDK(configTestnet, private_key)
64
+ sdk = OstiumSDK(configMainnet, private_key)
65
+ ```
66
+ <b>NOTE:</b> create a .env file with PRIVATE_KEY and RPC_URL to use the SDK. An RPC URL is required to use the SDK. You can get one by signing up for a free account at https://www.alchemy.com/ and creating an app.
67
+
63
68
  ```
69
+ PRIVATE_KEY=your_private_key_here
70
+ RPC_URL=https://arb-sepolia.g.alchemy.com/v2/...
71
+ #RPC_URL="https://arb-mainnet.g.alchemy.com/v2/...",
72
+ ```
73
+
74
+ your_private_key_here must be a valid private key for the account you want to use. You can get one by creating an account on MetaMask and exporting the private key. Make sure to save it in a secure location, and that the .env file is not shared with anyone or commited to a public repository.
75
+
64
76
 
65
77
  ## The SDK contains the following classes:
66
78
 
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="ostium-python-sdk",
5
- version="0.1.16",
5
+ version="0.1.18",
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  "web3>=6.0.0",