decibel-python-sdk 0.1.0__tar.gz → 0.1.1__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.
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/PKG-INFO +1 -1
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/pyproject.toml +1 -1
- decibel_python_sdk-0.1.1/src/decibel/.DS_Store +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/_utils.py +1 -1
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/README.md +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/__init__.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/_base.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/_constants.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/_fee_pay.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/_gas_price_manager.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/_order_status.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/_order_types.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/_pagination.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/_subaccount_types.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/_transaction_builder.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/_version.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/abi/__init__.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/abi/__main__.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/abi/_registry.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/abi/_types.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/abi/generate.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/abi/json/netna.json +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/abi/json/testnet.json +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/admin.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/py.typed +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/__init__.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_account_overview.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_base.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_candlesticks.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_delegations.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_leaderboard.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_market_contexts.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_market_depth.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_market_prices.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_market_trades.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_markets.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_portfolio_chart.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_trading_points.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_types.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_active_twaps.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_bulk_orders.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_fund_history.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_funding_history.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_notifications.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_open_orders.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_order_history.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_positions.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_subaccounts.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_trade_history.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_twap_history.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_vaults.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_ws.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/write/__init__.py +0 -0
- {decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/write/_types.py +0 -0
|
Binary file
|
|
@@ -382,7 +382,7 @@ def round_to_valid_order_size(
|
|
|
382
382
|
|
|
383
383
|
def amount_to_chain_units(amount: float, decimals: int = 6) -> int:
|
|
384
384
|
"""Convert a decimal amount to chain units (e.g., 5.67 USDC -> 5670000)."""
|
|
385
|
-
return
|
|
385
|
+
return round(amount * (10**decimals))
|
|
386
386
|
|
|
387
387
|
|
|
388
388
|
def chain_units_to_amount(chain_units: int, decimals: int = 6) -> float:
|
|
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
|
|
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
|
|
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
|
{decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_active_twaps.py
RENAMED
|
File without changes
|
|
File without changes
|
{decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_fund_history.py
RENAMED
|
File without changes
|
{decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_funding_history.py
RENAMED
|
File without changes
|
{decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_notifications.py
RENAMED
|
File without changes
|
|
File without changes
|
{decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_order_history.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_trade_history.py
RENAMED
|
File without changes
|
{decibel_python_sdk-0.1.0 → decibel_python_sdk-0.1.1}/src/decibel/read/_user_twap_history.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|