ostium-python-sdk 0.1.5__tar.gz → 0.1.6__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.
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/PKG-INFO +1 -1
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk/ostium.py +2 -1
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk.egg-info/PKG-INFO +1 -1
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/setup.py +1 -1
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/README.md +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk/__init__.py +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk/abi.py +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk/balance.py +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk/config.py +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk/constants.py +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk/formulae.py +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk/formulae_wrapper.py +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk/price.py +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk/sdk.py +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk/subgraph.py +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk/utils.py +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk.egg-info/SOURCES.txt +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk.egg-info/dependency_links.txt +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk.egg-info/requires.txt +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk.egg-info/top_level.txt +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/pyproject.toml +0 -0
- {ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ostium-python-sdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
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
|
|
@@ -4,6 +4,7 @@ from enum import Enum
|
|
|
4
4
|
from web3 import Web3
|
|
5
5
|
from .abi import usdc_abi, ostium_trading_abi, ostium_trading_storage_abi
|
|
6
6
|
from .utils import convert_to_scaled_integer, fromErrorCodeToMessage, get_tp_sl_prices, to_base_units
|
|
7
|
+
from eth_account.account import Account
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
class OpenOrderType(Enum):
|
|
@@ -32,7 +33,7 @@ class Ostium:
|
|
|
32
33
|
self.ostium_trading_contract = self.web3.eth.contract(
|
|
33
34
|
address=self.ostium_trading_address, abi=ostium_trading_abi)
|
|
34
35
|
|
|
35
|
-
def _get_account(self) ->
|
|
36
|
+
def _get_account(self) -> Account:
|
|
36
37
|
"""Get account from stored private key"""
|
|
37
38
|
return self.web3.eth.account.from_key(self.private_key)
|
|
38
39
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ostium-python-sdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{ostium_python_sdk-0.1.5 → ostium_python_sdk-0.1.6}/ostium_python_sdk.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|