polyester-sdk 0.25.0__tar.gz → 0.27.0__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.
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/CHANGELOG.md +34 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/PKG-INFO +149 -20
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/README.md +148 -19
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/pyproject.toml +1 -1
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/__init__.py +4 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/_sync_services.py +3 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/_version.py +1 -1
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/_wire.py +12 -2
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/alerts.py +21 -1
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/api_keys.py +8 -5
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/auth.py +4 -5
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/orders.py +20 -16
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/policies.py +7 -8
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/sub_accounts.py +10 -6
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/triggers.py +94 -2
- polyester_sdk-0.27.0/src/polyester/codecs/oco.py +116 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/orders.py +134 -27
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/proto_helpers.py +18 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/spot_config.py +16 -1
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/triggers.py +65 -3
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/wire_decode.py +2 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/errors.py +36 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ai/v1/assistant_connect.py +134 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ai/v1/assistant_pb2.py +51 -31
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ai/v1/assistant_pb2.pyi +32 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/alerts/v1/price_alerts_pb2.py +6 -6
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/policies_pb2.py +4 -4
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/policies_pb2.pyi +4 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/subaccounts_pb2.py +10 -10
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/subaccounts_pb2.pyi +4 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/changelog/v1/changelog_pb2.py +7 -7
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/changelog/v1/changelog_pb2.pyi +2 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketdata/v1/marketdata_pb2.py +16 -14
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketdata/v1/marketdata_pb2.pyi +14 -2
- polyester_sdk-0.27.0/src/polyester/gen/notifications/v1/notifications_connect.py +468 -0
- polyester_sdk-0.27.0/src/polyester/gen/notifications/v1/notifications_pb2.py +134 -0
- polyester_sdk-0.27.0/src/polyester/gen/notifications/v1/notifications_pb2.pyi +244 -0
- polyester_sdk-0.27.0/src/polyester/gen/orders/v1/orders_pb2.py +359 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/orders/v1/orders_pb2.pyi +57 -12
- polyester_sdk-0.27.0/src/polyester/gen/orders/v1/orders_read_pb2.py +203 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/orders/v1/orders_read_pb2.pyi +14 -2
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/swap/quickswap/v1/quickswap_broker_connect.py +260 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/swap/quickswap/v1/quickswap_broker_pb2.py +124 -46
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/swap/quickswap/v1/quickswap_broker_pb2.pyi +267 -2
- polyester_sdk-0.27.0/src/polyester/gen/swap/quickswap/v1/quickswap_pb2.py +191 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/swap/quickswap/v1/quickswap_pb2.pyi +107 -2
- polyester_sdk-0.27.0/src/polyester/gen/tradews/v1/trade_ws_pb2.py +53 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/tradews/v1/trade_ws_pb2.pyi +13 -4
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/triggers/v1/triggers_connect.py +195 -0
- polyester_sdk-0.27.0/src/polyester/gen/triggers/v1/triggers_pb2.py +328 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/triggers/v1/triggers_pb2.pyi +130 -6
- polyester_sdk-0.27.0/src/polyester/gen/vip/__init__.py +0 -0
- polyester_sdk-0.27.0/src/polyester/gen/vip/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/__init__.py +12 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/common.py +50 -4
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/trading.py +118 -5
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/alerts.py +53 -18
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/orders.py +21 -6
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/triggers.py +247 -1
- polyester_sdk-0.25.0/src/polyester/gen/orders/v1/orders_pb2.py +0 -347
- polyester_sdk-0.25.0/src/polyester/gen/orders/v1/orders_read_pb2.py +0 -203
- polyester_sdk-0.25.0/src/polyester/gen/swap/quickswap/v1/quickswap_pb2.py +0 -181
- polyester_sdk-0.25.0/src/polyester/gen/tradews/v1/trade_ws_pb2.py +0 -52
- polyester_sdk-0.25.0/src/polyester/gen/triggers/v1/triggers_pb2.py +0 -270
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/.env.example +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/.gitignore +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/LICENSE +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/SECURITY.md +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/examples/basic_bot.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/_catalog_startup.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/_contract_codes.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/_problem.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/_redact.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/_redirects.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/_sync_bridge.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/auth.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/auth_interceptor.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/catalogs/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/catalogs/zipper.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/catalogs/zipper_supply.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/chain/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/chain/_deps.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/chain/calldata.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/chain/destination.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/chain/environment.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/chain/fees.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/chain/rpc.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/chain/safe.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/chain/userop.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/client.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/address_book.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/bps.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/correlation_id.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/address_book.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/balances.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/changelog.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/common.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/deposit.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/fees.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/guard_signer.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/heatmap.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/internal_transfers.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/invariants.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/lifecycle.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/market_data.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/market_overview.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/orderbook.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/private_orders.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/ratelimit.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/resolve.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/trading_rate_limits.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/transfers.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/vip.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/withdraw.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/decode/zipper.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/enums.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/guard_signer.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/heatmap.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/ledger.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/ledger_amounts.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/orderbook.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/proto_build.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/realtime_decode.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/scalars.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/sub_accounts.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/codecs/withdraw.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/environment.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ai/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ai/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/alerts/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/alerts/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/alerts/v1/price_alerts_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/alerts/v1/price_alerts_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/address_book_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/address_book_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/address_book_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/api_keys_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/api_keys_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/api_keys_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/auth_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/auth_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/auth_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/mfa_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/mfa_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/mfa_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/policies_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/profile_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/profile_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/profile_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/resolve_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/resolve_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/resolve_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/social_verification_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/social_verification_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/social_verification_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/auth/v1/subaccounts_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/buf/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/buf/validate/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/buf/validate/validate_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/buf/validate/validate_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/analytics/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/analytics/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/analytics/v1/analytics_read_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/analytics/v1/analytics_read_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/analytics/v1/analytics_read_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/deposit/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/deposit/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/deposit/v1/deposit_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/deposit/v1/deposit_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/deposit/v1/deposit_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/guard/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/guard/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/guard/v1/guard_signer_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/guard/v1/guard_signer_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/guard/v1/guard_signer_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/lifecycle/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/lifecycle/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/lifecycle/v1/lifecycle_read_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/lifecycle/v1/lifecycle_read_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/lifecycle/v1/lifecycle_read_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/lifecycle/v1/types_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/lifecycle/v1/types_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/withdraw/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/withdraw/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/withdraw/v1/auto_withdraw_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/withdraw/v1/auto_withdraw_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/withdraw/v1/auto_withdraw_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/withdraw/v1/withdraw_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/withdraw/v1/withdraw_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/withdraw/v1/withdraw_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/zipper/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/zipper/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/zipper/v1/reason_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/zipper/v1/reason_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/zipper/v1/zipper_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/zipper/v1/zipper_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/chain/zipper/v1/zipper_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/changelog/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/changelog/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/changelog/v1/changelog_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/checkpoints/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/checkpoints/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/checkpoints/v1/checkpoints_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/checkpoints/v1/checkpoints_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/checkpoints/v1/checkpoints_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/claims/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/claims/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/claims/v1/claims_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/claims/v1/claims_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/claims/v1/claims_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/fees/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/fees/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/fees/v1/fees_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/fees/v1/fees_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/fees/v1/fees_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/gnostic/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/gnostic/openapi/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/gnostic/openapi/v3/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/gnostic/openapi/v3/annotations_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/gnostic/openapi/v3/annotations_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/gnostic/openapi/v3/openapiv3_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/gnostic/openapi/v3/openapiv3_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/google/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/google/api/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/google/api/annotations_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/google/api/annotations_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/google/api/field_behavior_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/google/api/field_behavior_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/google/api/http_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/google/api/http_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ledger/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ledger/read/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ledger/read/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ledger/read/v1/ledger_read_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ledger/read/v1/ledger_read_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ledger/read/v1/ledger_read_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ledger/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ledger/v1/catalog_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ledger/v1/catalog_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketdata/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketdata/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketdata/v1/heatmap_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketdata/v1/heatmap_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketdata/v1/heatmap_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketdata/v1/marketdata_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketoverview/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketoverview/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketoverview/v1/marketoverview_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketoverview/v1/marketoverview_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/marketoverview/v1/marketoverview_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/orderbook → polyester_sdk-0.27.0/src/polyester/gen/notifications}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/orderbook → polyester_sdk-0.27.0/src/polyester/gen/notifications}/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/orders → polyester_sdk-0.27.0/src/polyester/gen/orderbook}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/orders → polyester_sdk-0.27.0/src/polyester/gen/orderbook}/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/orderbook/v1/orderbook_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/orderbook/v1/orderbook_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/orderbook/v1/orderbook_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/polyester → polyester_sdk-0.27.0/src/polyester/gen/orders}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/polyester/api → polyester_sdk-0.27.0/src/polyester/gen/orders/v1}/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/orders/v1/orders_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/orders/v1/orders_read_connect.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/polyester/api/validation → polyester_sdk-0.27.0/src/polyester/gen/polyester}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/polyester/api/validation/v1 → polyester_sdk-0.27.0/src/polyester/gen/polyester/api}/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/polyester/api/options_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/polyester/api/options_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/polyester/ratelimit → polyester_sdk-0.27.0/src/polyester/gen/polyester/api/validation}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/polyester/ratelimit → polyester_sdk-0.27.0/src/polyester/gen/polyester/api/validation}/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/polyester/api/validation/v1/predefined_string_rules_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/polyester/api/validation/v1/predefined_string_rules_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/polyester/type → polyester_sdk-0.27.0/src/polyester/gen/polyester/ratelimit}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/polyester/type → polyester_sdk-0.27.0/src/polyester/gen/polyester/ratelimit}/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/polyester/ratelimit/v1/types_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/polyester/ratelimit/v1/types_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/privatews → polyester_sdk-0.27.0/src/polyester/gen/polyester/type}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/privatews → polyester_sdk-0.27.0/src/polyester/gen/polyester/type}/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/polyester/type/v1/u128_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/polyester/type/v1/u128_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/ratelimit → polyester_sdk-0.27.0/src/polyester/gen/privatews}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/ratelimit → polyester_sdk-0.27.0/src/polyester/gen/privatews}/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/privatews/v1/private_ws_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/privatews/v1/private_ws_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/rewards → polyester_sdk-0.27.0/src/polyester/gen/ratelimit}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/rewards → polyester_sdk-0.27.0/src/polyester/gen/ratelimit}/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ratelimit/v1/ratelimit_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ratelimit/v1/ratelimit_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/ratelimit/v1/ratelimit_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/swap → polyester_sdk-0.27.0/src/polyester/gen/rewards}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/swap/quickswap → polyester_sdk-0.27.0/src/polyester/gen/rewards/v1}/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/rewards/v1/rewards_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/rewards/v1/rewards_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/rewards/v1/rewards_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/swap/quickswap/v1 → polyester_sdk-0.27.0/src/polyester/gen/swap}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/swap/v1 → polyester_sdk-0.27.0/src/polyester/gen/swap/quickswap}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/system → polyester_sdk-0.27.0/src/polyester/gen/swap/quickswap/v1}/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/swap/quickswap/v1/quickswap_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/swap/quickswap/v1/quickswap_referral_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/swap/quickswap/v1/quickswap_referral_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/swap/quickswap/v1/quickswap_referral_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/system → polyester_sdk-0.27.0/src/polyester/gen/swap}/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/swap/v1/swap_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/swap/v1/swap_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/swap/v1/swap_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/tradews → polyester_sdk-0.27.0/src/polyester/gen/system}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/tradews → polyester_sdk-0.27.0/src/polyester/gen/system}/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/system/v1/system_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/system/v1/system_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/system/v1/system_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/transfer → polyester_sdk-0.27.0/src/polyester/gen/tradews}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/transfer → polyester_sdk-0.27.0/src/polyester/gen/tradews}/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/triggers → polyester_sdk-0.27.0/src/polyester/gen/transfer}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/triggers → polyester_sdk-0.27.0/src/polyester/gen/transfer}/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/transfer/v1/internal_transfer_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/transfer/v1/internal_transfer_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/transfer/v1/internal_transfer_pb2.pyi +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/vip → polyester_sdk-0.27.0/src/polyester/gen/triggers}/__init__.py +0 -0
- {polyester_sdk-0.25.0/src/polyester/gen/vip → polyester_sdk-0.27.0/src/polyester/gen/triggers}/v1/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/vip/v1/vip_connect.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/vip/v1/vip_pb2.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/gen/vip/v1/vip_pb2.pyi +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/market_overview/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/market_overview/subscription.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/address_book.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/alerts.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/auth.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/changelog.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/fees.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/guard_signer.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/market.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/order_key.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/policies.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/private_orders.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/ratelimit.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/realtime.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/secret.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/sub_accounts.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/system.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/trading_rate_limits.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/vip.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/models/zipper.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/orderbook/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/orderbook/local_book.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/orderbook/subscription.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/patch.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/py.typed +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/realtime/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/realtime/_ws_log.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/realtime/_ws_uri.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/realtime/auth.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/realtime/client.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/realtime/private_orders.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/realtime/protocol.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/realtime/renewal.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/realtime/resubscribe.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/realtime/snapshot_then_stream.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/_base.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/_generated.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/_realtime_subscribe.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/_retry.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/_scope.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/_symbols.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/_validation.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/address_book.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/api_keys.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/auth.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/balances.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/chain_analytics.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/changelog.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/deposit.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/fees.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/guard_signer.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/heatmap.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/internal_transfers.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/lifecycle.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/market_data.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/market_overview.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/orderbook.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/policies.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/profile.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/rate_limits.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/social_verification.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/sub_accounts.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/system.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/trades.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/transfers.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/vip.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/withdraw.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/services/zipper.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/sync_subscribe.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/transport.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/types/__init__.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/types/money.py +0 -0
- {polyester_sdk-0.25.0 → polyester_sdk-0.27.0}/src/polyester/user_agent.py +0 -0
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.27.0
|
|
4
|
+
|
|
5
|
+
Git tag: `v0.27.0`. Released 2026-11-13. Built on public contract `78792a5`.
|
|
6
|
+
|
|
7
|
+
- **Breaking:** The generated code follows the contract's rename of error code 68 and trigger failure reason 24, values unchanged: `orders_pb2.ERROR_CODE_MAX_QUOTE_DEBIT_TOO_SMALL` is now `orders_pb2.ERROR_CODE_QUOTE_SIZE_TOO_SMALL`, and `triggers_pb2.TRIGGER_FAILURE_REASON_MAX_QUOTE_DEBIT_TOO_SMALL` is now `triggers_pb2.TRIGGER_FAILURE_REASON_QUOTE_SIZE_TOO_SMALL`, the refusal of either quote sizing (a buy's `max_quote_debit` or a sell's `quote_proceeds`). The SDK's labels follow: `PolyesterApiError.code` reads `ERROR_CODE_QUOTE_SIZE_TOO_SMALL`, `Order.reject_reason` `QUOTE_SIZE_TOO_SMALL`, a rejected `orders.batch_create` item's `code` `error_code_quote_size_too_small`, and `Trigger.failure_reason`, `TriggerEvent.failure_reason` and `TriggerEvent.fire_refusal_reason` `quote_size_too_small`; each read `MAX_QUOTE_DEBIT_TOO_SMALL` in its own spelling before. Migration: replace the old identifiers and labels with the new ones; REST error codes change from `MAX_QUOTE_DEBIT_TOO_SMALL` to `QUOTE_SIZE_TOO_SMALL` too. Affected: `polyester.gen.orders.v1.orders_pb2`, `polyester.gen.triggers.v1.triggers_pb2`, and every order and trigger read, error and batch result that names the code.
|
|
8
|
+
- A sell can be sized by a quote amount, "sell 100 USDT worth": `quote_proceeds` on `orders.create`, `orders.preview` and each `orders.batch_create` item (`CreateOrderRequest.quote_proceeds`, a `CreateOrderParams` and `CreateOrderItem` key), sibling of `max_quote_debit` and taking the same inputs: a decimal string or `Decimal` at the pair's catalog `quote_quantity_scale`, or a `Quantity` of `QuantityDomain.ORDER_QUOTE` that embeds that scale. The order sells whole quantity steps until its proceeds before fees reach the target, never more; the quote fee is charged on those proceeds. Set exactly one of `qty`, `max_quote_debit` and `quote_proceeds`. `quote_proceeds` on anything but a sell market or limit IOC order (the contract's `order_intent.quote_proceeds_eligibility` rule), a value that is not positive, a float, or a `Quantity` of another scale raises `PolyesterValidationError` before sending. The API refuses a target too small for the pair's minimums (`ERROR_CODE_QUOTE_SIZE_TOO_SMALL`), base it cannot hold (`ERROR_CODE_INSUFFICIENT_FUNDS`) and attached risk (`VALIDATION_ERROR`, rule `no_attached_risk`). Such an order ends `filled` once what is left of its target sells no further step; `cum_quote()` is the proceeds it received before fees. Affected: `orders.create`, `orders.preview` and `orders.batch_create` on `AsyncPolyester` and `Polyester`; `polyester.codecs.orders.order_intent_from_request`; `resolve_quote_quantity_scale` now takes any number of quote amounts.
|
|
9
|
+
- An order can be an iceberg order: `display_qty` on a limit GTC or GTD order (`CreateOrderRequest.display_qty`, a batch item key), in base units with the same inputs and base scale as `qty`, sent as `limit_gtc.display_qty_scaled` or `limit_gtd.display_qty_scaled`. The order book shows at most that much of the order at a time. A display on a market, limit IOC or limit FOK order, which have no display, or one that is not positive, raises `PolyesterValidationError` before sending; the API checks the rest and refuses `ERROR_CODE_ICEBERG_DISPLAY_INVALID` (at or above `qty`, or off the quantity step), `ERROR_CODE_ICEBERG_DISPLAY_TOO_SMALL` (below the minimum quantity, or over 100 parts) and `ERROR_CODE_ICEBERG_NOT_ALLOWED` (with attached risk). The display cannot be modified; a replace keeps it. Affected: `orders.create`, `orders.preview` and `orders.batch_create`.
|
|
10
|
+
- A limit order can take its price from the book once, at entry: `peg` (`CreateOrderRequest.peg`, a batch item key) takes the new `OrderPeg(reference=..., offset_ticks=0)` or a dict with `reference` and `offset_ticks`. `reference` is `"best_bid"` or `"best_ask"`, any case; `offset_ticks` is a signed count of the pair's price increments (its tick size) added to the reference, sent as given (`-2` is two tick-size increments below it); it is not a count of 1e-9 price ticks and does not select occupied levels. The order still needs its `price`, a buy's cap or a sell's floor: the API refuses a derived price beyond it with `ERROR_CODE_PEG_LIMIT_VIOLATION`, an empty reference side with `ERROR_CODE_PEG_REFERENCE_UNAVAILABLE` and unsupported terms with `ERROR_CODE_INVALID_PEG`. An unknown reference, a non-integer offset, a peg on a market order, with quote sizing (`max_quote_debit` or `quote_proceeds`) or with `attached_risk` raises `PolyesterValidationError` before sending, as the contract never combines them. Affected: `orders.create`, `orders.preview` and `orders.batch_create`; `polyester.models.OrderPeg` (new).
|
|
11
|
+
- Self-trade prevention takes `decrement` wherever a mode is accepted: `orders.create`, `orders.preview`, each `orders.batch_create` item, `triggers.create` and `triggers.create_oco`, with or without attached legs. Neither order trades: both are reduced by the quantity that would have traded, and the order left with none ends `canceled` with `cancel_reason` `STP_DECREMENT`. The incoming order's mode decides, so a resting order of an account that never sends `decrement` can be reduced or canceled this way by another order of the same root account. Orders and triggers read the mode back as `decrement`. The refusal of an unknown mode now lists it (`self_trade_prevention_mode must be expire_taker, expire_maker, expire_both, or decrement`). Affected: the order and trigger creates above; `Order.self_trade_prevention_mode` and `Trigger.self_trade_prevention_mode`.
|
|
12
|
+
- **Breaking:** Orders read their iceberg display and quote proceeds target: `Order` gains `display_qty`, the display the order was placed with, and `hidden_qty`, the part of `leaves_qty` the order book does not show (the book shows `leaves_qty - hidden_qty`), both `Quantity` values at the pair's base scale exactly as `leaves_qty`, and zero for a plain order; and `submitted_quote_proceeds_scaled`, a sell's quote proceeds target at the pair's quote scale, read exactly as `submitted_max_quote_debit_scaled` (`""` when the order was not sized that way). The create result (`OrderMutationResult`) gains `submitted_quote_proceeds_scaled`, and each accepted `orders.batch_create` item (`BatchCreateResultItem`) gains both `submitted_quote_proceeds_scaled` and `submitted_max_quote_debit_scaled`, which it did not expose before; all are `""` when not sized that way. Migration: equality and serialization of `Order` now always include `display_qty` and `hidden_qty`, and of `Order`, `OrderMutationResult` and `BatchCreateResultItem` the quote echoes when set; compare or store the fields you need instead of whole models. Affected: `orders.get`, `orders.list_open`, `orders.list_history`, `orders.wait_for_order_trades_complete`, the private order stream (`orders.subscribe`), `orders.create` and `orders.batch_create`.
|
|
13
|
+
- Orders canceled for the contract's new reasons read them by name, not as `UNKNOWN_CANCEL_REASON(n)`: `STP_DECREMENT` (19, `decrement` self-trade prevention left the order no quantity), `PRICE_BAND` (20, the pair's price band stopped a market order; fills up to the band stand) and `CANCEL_ON_DISCONNECT` (21, the account's trading WebSocket connections that opted in to cancel-on-disconnect all closed). Triggers read the failure reason `price_band_violation` (14). Affected: `Order.cancel_reason`, `PrivateOrderEvent.cancel_reason`, `Trigger.failure_reason`, `TriggerEvent.failure_reason` and `fire_refusal_reason`.
|
|
14
|
+
- **Breaking:** A pair's price band reads from the spot config: `PairOrderLimits` gains `price_band`, the new `PriceBand` (`lower_bps`, `upper_bps`, `reference_window_ms`), `None` when the pair has none. With R the band's reference price (the last trade is a close estimate), the lower limit is `ceil(R * (1 - lower_bps / 10000) / tick) * tick` and the upper `floor(R * (1 + upper_bps / 10000) / tick) * tick`; a limit buy above the upper limit or a limit sell below the lower one is refused `PRICE_BAND_VIOLATION`, and a market order trades only to the band, its rest canceled with `cancel_reason` `PRICE_BAND`. A `price_band` that is not an object fails the catalog load, as the other malformed limits do. Migration: equality and serialization of `PairOrderLimits` now include `price_band` when the pair has one. Affected: `client.catalogs.order_limits_for_symbol`, `order_limits_for_symbol_id`, `market_data.get_spot_config().pair_order_limits` and `codecs.spot_config.spot_config_from_dict`; `polyester.models.PriceBand` (new).
|
|
15
|
+
- **Breaking:** A cancel, pause, resume or modify of a trigger that has ended (completed, canceled or failed) is refused `ERROR_CODE_TRIGGER_STATUS_INVALID` (HTTP 400) for at least 60 seconds after it ends, and after that may be refused `ERROR_CODE_TRIGGER_NOT_FOUND`. That includes a repeat of a cancel that succeeded, which returned the canceled trigger before, and an ended ladder or TWAP, which answered `ERROR_CODE_TRIGGER_NOT_MODIFIABLE`; a running one still does to anything but a cancel. This is the server's behaviour; the SDK raises what it answers. The new `is_trigger_already_ended(err)` is true for `ERROR_CODE_TRIGGER_STATUS_INVALID` over ConnectRPC and REST, and the new constant `polyester.TRIGGER_STATUS_INVALID` names it; it leaves out `TRIGGER_NOT_FOUND`, which also names an ID that is none of the account's triggers. Migration: treat `is_trigger_already_ended(err)` as "already done" and read the trigger for how it ended; treat `TRIGGER_NOT_FOUND` the same only for a trigger you know you created. `orders.stop_all_trading` records a trigger that ended between its listing and its cancel in `trigger_failures` with such an error. Affected: `triggers.cancel`, `triggers.pause`, `triggers.resume` and `triggers.modify` (docstrings), `polyester.is_trigger_already_ended` and `polyester.TRIGGER_STATUS_INVALID` (new).
|
|
16
|
+
- A ladder keeps working when the order book rejects one of its levels on arrival (a post-only level that would cross, for example): that level's `fired` event, naming the rejected child order, is followed by a `fire_refused` event with the same `child_seq`, its `fire_refusal_reason` and the level's price as `fire_price`. The SDK already decodes both; such a level was not placed, so do not count it among the ladder's placed levels. A ladder ends `failed` only when every level was rejected. Affected: `triggers.list_events` and `triggers.subscribe_events` (docs, `TriggerEvent`).
|
|
17
|
+
- **Breaking:** Trigger IDs are opaque public IDs, valid only for the account that owns them, like order IDs. Every trigger has a new ID after the change, and trigger IDs and `triggers.list` / `triggers.list_events` page tokens issued before it are refused (`TRIGGER_NOT_FOUND`, `not_found`, `invalid_argument`, or `INVALID_TRIGGER_ID` for the `trigger_id` filter of `orders.list_open` and `orders.list_history`). This is the server's change; the SDK derives nothing from a trigger ID and needs none. Migration: drop stored trigger IDs and list the triggers again for their current IDs; start listings again from the first page; expect each trigger's ID to change once in the trigger streams. Affected: every trigger ID the SDK reads or sends.
|
|
18
|
+
- **Breaking:** An order refused for permissions raises the same error over ConnectRPC and REST: `PolyesterAuthError` with `status_code` 403, not retryable, and the code with its `ERROR_CODE_` prefix, as the ConnectRPC detail names it. Over ConnectRPC an `orders.v1.ErrorDetail` on `permission_denied` whose code did not contain `POLICY` or `PERMISSION`, such as `ERROR_CODE_API_KEY_MARKET_DENY`, `ERROR_CODE_SUBACCOUNT_READ_FORBIDDEN`, `ERROR_CODE_QUICKSWAP_NOT_PERMITTED` or `ERROR_CODE_API_KEY_SPOT_READ_DENY`, raised a plain `PolyesterApiError`; over REST every HTTP 401 or 403 problem raised `PolyesterAuthError` with the bare code (`API_KEY_MARKET_DENY`). Now both read `PolyesterAuthError` with `ERROR_CODE_API_KEY_MARKET_DENY`. A REST 401 or 403 problem whose code a service error enum names reads with that prefix whatever the service, for example `ERROR_CODE_PERMISSION_DENIED` or `ERROR_CODE_DESTINATION_NOT_WHITELISTED`; auth codes still read as `auth_error_code` names them (`AUTH_SIGNATURE_INVALID`), and codes only REST defines (`ROLE_SPOT_TRADE_DENY`, `API_KEY_ACTION_DENY`, `SUBACCOUNT_POLICY_DENY`) stay as sent. The server's own change: spot-trade permission refusals now name whose policy is missing. The new `ERROR_CODE_API_KEY_SPOT_TRADE_DENY` (78) is the API key's policy lacking spot trading (the key is named first when both lack it); `ERROR_CODE_POLICY_SPOT_TRADE_DENY` (23) now means only the sub-account's policy (a sub-account without one is read-only); `ERROR_CODE_API_KEY_POLICY_REQUIRED` (27) is a key with no policy; and a main-account key whose market list excludes the pair gets `ERROR_CODE_API_KEY_MARKET_DENY` (29) instead of `ERROR_CODE_POLICY_MARKET_DENY` (20). All five classify alike; `polyester.errors.ORDER_PERMISSION_REFUSAL_CODES` lists them. Migration: catch these refusals as `PolyesterAuthError` and compare `err.code` with the `ERROR_CODE_` name on either transport; handle 78 where you handled 23, and 29 where you handled 20. Affected: every order, trigger and read call that can be refused for permissions, on `AsyncPolyester` and `Polyester`.
|
|
19
|
+
- Price alerts, still on devnet only and not routed on testnet, need a policy permission for API keys: `READ_PRICE_ALERTS` (36) to list alerts and `MANAGE_PRICE_ALERTS` (37) to create, update or cancel them. Without it the call is refused `permission_denied` with `AUTH_API_KEY_ACCESS_DENIED`, raised as a `PolyesterApiError` whose `auth_error_code(err)` is `AUTH_API_KEY_ACCESS_DENIED`, not retryable. Policies read the actions as `read_price_alerts` and `manage_price_alerts`. Affected: `alerts.create`, `alerts.list`, `alerts.iter_alerts`, `alerts.update` and `alerts.cancel` (docs); `ApiPolicy.actions` and `SubaccountPolicy.actions`.
|
|
20
|
+
- The changelog's assistant surface reads as `assistant` on changes and sections, and `changelog.list_changes(surfaces=["assistant"])` filters by it; all 11 surfaces can be passed at once. Affected: `changelog.list_changes`, `changelog.iter_changes`, `changelog.get_post`.
|
|
21
|
+
- Ledger transfers: the `withdraw_failed` (1075) debit of a failed withdrawal carries its withdrawal's flow ID in `transfers.list` (`LedgerTransfer.tx_id`), joined when read, so an early read may still show it empty; the realtime transfer stream does not carry it for that debit. A new Trading-to-Funding transfer carries its flow ID on its first realtime update. No SDK change: `tx_id` already reads the contract's `flow_id`. Affected: `LedgerTransfer.tx_id` (docs).
|
|
22
|
+
- `triggers.create_oco` creates an OCO: a take-profit and a stop-loss over a quantity the account already holds, both trading `side` for `qty`, reserved once and shared. Each leg takes the same `RiskLeg` or dict as an order's attached take-profit and stop-loss. `client_list_id` identifies the create, 1 to 36 bytes in UTF-8, any characters, sent unchanged; left out, one is generated. The result, `CreateOcoResult`, carries `order_list_id`, `client_list_id`, both legs' trigger IDs and `accepted_ts_ns`, when admission completed in nanoseconds since the Unix epoch (the contract's `accepted_at_ts_ns`, or `accepted_at` when only that is sent; `None` when neither is). `CancelOcoResult` carries the cancel's `ts_ns` the same way. `triggers.cancel_oco(order_list_id=...)` cancels both legs (`CancelOcoResult`). Trigger reads, unary and streamed, gain `Trigger.order_list_id` and `Trigger.client_list_id`, set on both legs of an OCO and empty otherwise, and `triggers.list` filters by `order_list_id` and `client_list_id`, the recovery path after a create whose outcome is unknown. An empty or over-long `client_list_id`, or an `order_list_id` of 0, raises `PolyesterValidationError` before sending. Affected: `triggers.create_oco`, `triggers.cancel_oco` (new), `triggers.list`, `triggers.get` and `triggers.subscribe`, on `AsyncPolyester` and `Polyester`; `polyester.models.CreateOcoResult` and `CancelOcoResult` (new).
|
|
23
|
+
- `triggers.batch_cancel(trigger_ids=...)` cancels 1 to 50 distinct triggers in one request and answers each in `results`, in request order, `accepted` or `rejected` with a `code`; one item's rejection does not stop the others. `request_id` makes a retry return the original results; left out, one is generated. `BatchCancelTriggersResult.ts_ns` is the server time of the answer in nanoseconds since the Unix epoch (`ts_ns`, or `ts` when only that is sent; `None` when neither is). An empty, longer or repeating list, or an ID of 0, raises `PolyesterValidationError` before sending. Affected: `triggers.batch_cancel` (new), on `AsyncPolyester` and `Polyester`; `polyester.models.BatchCancelTriggersResult` and `BatchCancelTriggerResultItem` (new).
|
|
24
|
+
- **Breaking:** A batch replace whose item is refused for its value (a price off the tick size, an attached-risk price that is off the tick or otherwise invalid: `PRICE_TICK_SIZE`, `TRIGGER_PRICE_INVALID`, `TRIGGER_PRICE_SOURCE_UNSUPPORTED`, `TRAILING_DISTANCE_INVALID`, `MAX_SLIPPAGE_INVALID`) no longer fails as a whole: the server rejects only that item, with its code and an indexed field violation, and processes the others. The SDK already reads each item's `code` and `violations`; a decimal finer than the price scale is still refused before sending. This is the server's change. Migration: read `BatchReplaceOrdersResult.results` after a batch replace instead of treating an error as "nothing applied"; resend only the rejected items, corrected, under a new `request_id`. Affected: `orders.batch_replace`.
|
|
25
|
+
- The contract's other new names read as such with no SDK change, and tests pin the order codes: `ERROR_CODE_ICEBERG_NOT_ALLOWED` (309), `ERROR_CODE_ICEBERG_DISPLAY_TOO_SMALL` (310), `ERROR_CODE_ICEBERG_DISPLAY_INVALID` (311), `ERROR_CODE_PEG_LIMIT_VIOLATION` (312), `ERROR_CODE_PEG_REFERENCE_UNAVAILABLE` (313) and `ERROR_CODE_INVALID_PEG` (314), recognised over ConnectRPC and REST; the sub-account activity actions `activity_action_requested` and `activity_action_applied` (`SubAccountActivityEvent`); an attached-risk leg's field violation (`order.attached_risk.stop_loss`, rule `ERROR_CODE_MIN_NOTIONAL`) on errors, previews and batch items; and `ERROR_CODE_TRIGGER_WOULD_TRIGGER_IMMEDIATELY` now also refusing a market order created or previewed with an attached last-price leg its own fill would trigger. An order a trigger placed reads its `origin` on its first private-stream revision too, where it read `direct` before. The error-code test fixtures follow the contract's `docs/errors.json`.
|
|
26
|
+
- `sdk-coverage.toml` lists `notifications.v1.NotificationService` as not wrapped: the notification center is not part of the trading SDK surface yet. The generated code adds it, the assistant's new RPCs, Quick Swap broker payouts and the trading WebSocket's new fields, none of which this SDK wraps.
|
|
27
|
+
|
|
28
|
+
## 0.26.0
|
|
29
|
+
|
|
30
|
+
Git tag: `v0.26.0`. Released 2026-11-12. Built on public contract `e339360`.
|
|
31
|
+
|
|
32
|
+
- **Breaking:** A protobuf `Timestamp` the server leaves unset reads as `None` instead of 1970-01-01T00:00:00Z, the Unix epoch, which a caller could take for a real time: an API key that was never used read `last_used_at` in 1970. The decoders read the unset field's default `Timestamp` value, which cannot tell unset from sent; field presence decides now, and a sent time, even the epoch itself, is kept. Fixed fields: `ApiKeySummary.created_at`, `last_used_at` and `updated_at`; `SubAccount.updated_at`; `SubAccountInvite.created_at` and `responded_at`; `SubAccountActivityEvent.created_at`; `SubaccountPolicy.review_at`, `expires_at`, `created_at` and `updated_at`; `ApiPolicy.created_at` and `updated_at`; `UserProfile.created_at` and `next_username_change_at`; and `UsernameHistoryEntry.set_at`. A sent time on these fields now reads exactly to the microsecond (nanoseconds truncated), as `ApiKeySummary.expires_at` reads, instead of through a float that could be off by a microsecond. Every other `datetime | None` model field decoded from a `Timestamp` already read `None` when unset and is unchanged, and integer `*_ms` fields still read `0` when unset. Migration: treat these fields as `None` when unset (`if key.last_used_at is not None:`) instead of comparing with the epoch; code that relied on a `datetime` always being present must handle `None`, and equality and serialization of these models leave out an unset field. Affected: `api_keys.list`, `api_keys.get` and `api_keys.subscribe`; `sub_accounts.list`, `sub_accounts.get` (its sub-account, API keys, invites and policy), `sub_accounts.list_invites`, `sub_accounts.list_activity`, `sub_accounts.subscribe` and `sub_accounts.subscribe_api_keys`; `policies.subscribe_subaccount_policies` and `policies.subscribe_api_policies`, on `AsyncPolyester` and `Polyester`; the callback subscriptions `api_keys.subscribe_sync`, `sub_accounts.subscribe_sync`, `sub_accounts.subscribe_api_keys_sync`, `policies.subscribe_sync` and `policies.subscribe_api_policies_sync` on `Polyester`; `polyester.codecs.decode.api_keys.api_key_from_proto`, `api_keys_list_from_proto` and `get_api_key_from_proto` (alias `api_key_from_get_proto`); `polyester.codecs.decode.sub_accounts.subaccount_from_proto`, `subaccounts_list_from_proto`, `subaccount_invite_from_proto`, `subaccount_invites_list_from_proto`, `subaccount_activity_event_from_proto`, `subaccount_activity_list_from_proto` and `get_subaccount_from_proto`; `polyester.codecs.decode.policies.subaccount_policy_from_proto` and `api_policy_from_proto`; `polyester.codecs.decode.auth.profile_from_proto` and `username_history_from_proto`; `polyester.codecs.realtime_decode.decode_api_key_bytes`, `decode_subaccount_bytes`, `decode_subaccount_policy_bytes` and `decode_api_policy_bytes`; and `polyester.codecs.wire_decode.decode_api_key` and `decode_api_keys_list`.
|
|
33
|
+
- **Breaking:** A create, update or cancel of a price alert whose answer has no alert, or an alert with no `alert_id`, raises `PolyesterResponseContractError` (`CreateAlert: response has no alert`, likewise `UpdateAlert` and `CancelAlert`), as the Go and Rust SDKs refuse it. It returned a made-up alert with `alert_id` `"0"`, `symbol_id` 0, `revision` 0 and status `"unspecified"`, and an update also returned the answer's `outcome`, such as `"applied"`, so a broken answer read as success. The alert is checked before the outcome is read, for every outcome. `mutation_outcome_unknown` is true for the error: the change may have applied. Affected, on `AsyncPolyester` and `Polyester`: `alerts.create`, `alerts.update` and `alerts.cancel`; `polyester.codecs.decode.alerts.price_alert_update_from_proto` and the new `polyester.codecs.decode.alerts.required_price_alert`. Migration: catch `PolyesterResponseContractError` (or `PolyesterError`) around these calls and read the alerts back with `alerts.list` before retrying; code that checked for `alert_id == "0"` can drop that check.
|
|
34
|
+
- **Breaking:** `alerts.create` never sends a `Price` bound to one market for another. A bound price is checked against the catalogs' own name for the `symbol_id` sent, and is refused with `PolyesterValidationError` (`price is bound to ETH-USDT, but the catalogs do not name symbol_id 1, so it cannot be checked; hydrate catalogs or pass an unbound price`) before sending when the catalogs don't know that ID: they are empty, their load failed, or they don't list it. With `symbol=` and `symbol_id=` both given and the catalogs empty, the price was checked against the caller's `symbol=` instead, so `symbol="ETH-USDT", symbol_id=1` with an ETH-bound price sent an ETH price as an alert on BTC-USDT (ID 1). A load still in progress is waited for, as before. An unbound price, a `Decimal` or a decimal string is sent for any `symbol_id`, as before. Affected, on `AsyncPolyester` and `Polyester`: `alerts.create`. Migration: pass an unbound price (`Price.from_ticks(ticks)` or a decimal string) to create an alert on a market the catalogs don't know, or let the catalogs load (`wait_for_catalogs()`) first.
|
|
35
|
+
- **Breaking:** `alerts.update` refuses a `Price` bound to a market with `PolyesterValidationError` (`alerts.update cannot check a price bound to ETH-USDT against the alert's market; pass an unbound price: a decimal string, a Decimal or Price.from_ticks(ticks)`) before sending. The update names the alert, not its market, so the SDK cannot prove the binding without another read, and a price bound to ETH-USDT was sent for an alert on BTC-USDT. This includes an alert's own `price` and `reference_price` passed back, which read back bound to the alert's market. An unbound `Price`, a `Decimal` or a decimal string is sent as before. Affected, on `AsyncPolyester` and `Polyester`: `alerts.update`. Migration: pass `price=str(alert.price.as_decimal())`, `price=Price.from_ticks(alert.price.ticks)` or a decimal string instead of a bound `Price`.
|
|
36
|
+
|
|
3
37
|
## 0.25.0
|
|
4
38
|
|
|
5
39
|
Git tag: `v0.25.0`. Released 2026-11-12. Built on public contract `e339360`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: polyester-sdk
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.27.0
|
|
4
4
|
Summary: Python SDK for the Polyester API with generated protobuf types and ConnectRPC clients.
|
|
5
5
|
Project-URL: Homepage, https://github.com/Fabric-Labs/polyester-sdk-python
|
|
6
6
|
Project-URL: Documentation, https://polyester.com/docs/sdk/python/get-started/overview
|
|
@@ -49,7 +49,7 @@ Description-Content-Type: text/markdown
|
|
|
49
49
|
Official Python SDK for Polyester APIs, built for trading bots, backend jobs,
|
|
50
50
|
research notebooks, and automation.
|
|
51
51
|
|
|
52
|
-
**Status:** `0.
|
|
52
|
+
**Status:** `0.27.0`, pre-1.0: a minor release may include breaking changes (see
|
|
53
53
|
[CHANGELOG.md](CHANGELOG.md)). Proprietary license (not open source).
|
|
54
54
|
API-key only; no browser login or JWT flows.
|
|
55
55
|
|
|
@@ -166,7 +166,7 @@ before retrying.
|
|
|
166
166
|
PyPI: https://pypi.org/project/polyester-sdk/
|
|
167
167
|
|
|
168
168
|
```bash
|
|
169
|
-
pip install "polyester-sdk==0.
|
|
169
|
+
pip install "polyester-sdk==0.27.0"
|
|
170
170
|
```
|
|
171
171
|
|
|
172
172
|
Realtime (Centrifugo) and on-chain Funding helpers are included by default.
|
|
@@ -385,7 +385,10 @@ authenticate (`None` when it does not expire), and `public_key_ed25519` as hex.
|
|
|
385
385
|
`subaccount_id` is the public ID of the sub-account the key is scoped to, and
|
|
386
386
|
`""` for a key of the main account. `icon` and `color` are the user-chosen icon
|
|
387
387
|
or emoji and color token, and `created_by_actor` is the read-only label of who
|
|
388
|
-
created the key, all as sent and `""` when unset.
|
|
388
|
+
created the key, all as sent and `""` when unset. `created_at`,
|
|
389
|
+
`last_used_at` and `updated_at` are UTC `datetime`s, `None` when the server
|
|
390
|
+
leaves them unset, as it does for `last_used_at` on a key that was never used;
|
|
391
|
+
never 1970-01-01. The API keys of
|
|
389
392
|
`sub_accounts.get(..., include_api_keys=True)` and the API-key subscriptions
|
|
390
393
|
read the same way.
|
|
391
394
|
|
|
@@ -468,9 +471,12 @@ detail = await client.orders.get(
|
|
|
468
471
|
)
|
|
469
472
|
```
|
|
470
473
|
|
|
471
|
-
Create sizing is explicit: set exactly one of base `qty
|
|
472
|
-
(a hard all-in quote-debit budget)
|
|
473
|
-
|
|
474
|
+
Create sizing is explicit: set exactly one of base `qty`, `max_quote_debit`
|
|
475
|
+
(a buy's hard all-in quote-debit budget) or `quote_proceeds` (a sell's quote
|
|
476
|
+
proceeds target: "sell 100 USDT worth"). Each quote amount is valid only on a
|
|
477
|
+
market or limit IOC order: `max_quote_debit` on a buy, `quote_proceeds` on a
|
|
478
|
+
sell; anything else raises `PolyesterValidationError` before sending.
|
|
479
|
+
Decimal/str quote amounts use the pair's catalog `quote_quantity_scale`. Typed budgets must use
|
|
474
480
|
`QuantityDomain.ORDER_QUOTE` and embed that scale; construct with
|
|
475
481
|
`Quantity.from_quote_decimal_str` / `from_quote_decimal` / `from_quote_scaled`
|
|
476
482
|
and validate against `client.catalogs.quote_quantity_scale_for_symbol`.
|
|
@@ -488,6 +494,59 @@ result = await client.orders.create(
|
|
|
488
494
|
)
|
|
489
495
|
```
|
|
490
496
|
|
|
497
|
+
A sell sized by `quote_proceeds` sells whole quantity steps until its
|
|
498
|
+
proceeds before fees reach the target, and never receives more; the quote fee
|
|
499
|
+
is charged on those proceeds. It holds the base the target sells at its limit
|
|
500
|
+
price (a market order's maximum slippage price) and is refused
|
|
501
|
+
`INSUFFICIENT_FUNDS` when that base is not free, or `QUOTE_SIZE_TOO_SMALL`
|
|
502
|
+
when the target sells less than the pair's minimums. The create result and
|
|
503
|
+
each accepted batch item echo `submitted_quote_proceeds_scaled` (and
|
|
504
|
+
`submitted_max_quote_debit_scaled` for a buy), and `Order` reads it back;
|
|
505
|
+
`cum_quote()` is then the proceeds received before fees. Attached risk on
|
|
506
|
+
such a sell is refused by the API (`VALIDATION_ERROR`, rule
|
|
507
|
+
`no_attached_risk`).
|
|
508
|
+
|
|
509
|
+
```python
|
|
510
|
+
result = await client.orders.create(
|
|
511
|
+
symbol="BTC-USDT", side="sell", order_type="market", quote_proceeds="100"
|
|
512
|
+
)
|
|
513
|
+
print(result.resolved_base_qty, result.submitted_quote_proceeds_scaled)
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
An iceberg order shows only part of its quantity on the book:
|
|
517
|
+
`display_qty` (base units, the same input types as `qty`) on a limit GTC or
|
|
518
|
+
GTD order. Once the shown part executes, the next part is shown at the same
|
|
519
|
+
price, behind the orders already resting there. A display on a market, IOC or
|
|
520
|
+
FOK order, or one that is not positive, raises `PolyesterValidationError`
|
|
521
|
+
before sending; the API checks the rest (`ICEBERG_DISPLAY_INVALID` at or above
|
|
522
|
+
`qty` or off the quantity step, `ICEBERG_DISPLAY_TOO_SMALL` below the minimum
|
|
523
|
+
quantity or more than 100 parts, `ICEBERG_NOT_ALLOWED` with attached risk).
|
|
524
|
+
`Order.display_qty` reads the display back and `Order.hidden_qty` the part of
|
|
525
|
+
`leaves_qty` the book does not show (the book shows
|
|
526
|
+
`leaves_qty - hidden_qty`); both are zero for a plain order. The display
|
|
527
|
+
cannot be modified; a replace keeps it.
|
|
528
|
+
|
|
529
|
+
A static entry peg (`peg`) sets a limit order's price once, at entry, from the
|
|
530
|
+
book: a `polyester.models.OrderPeg(reference="best_bid" | "best_ask", offset_ticks=0)` or a
|
|
531
|
+
dict with those keys. `offset_ticks` is a signed count of the pair's tick-size
|
|
532
|
+
increments added to the reference (`-2` is two ticks below it), sent as given;
|
|
533
|
+
it does not count occupied levels. The order still needs its `price`, a buy's
|
|
534
|
+
cap or a sell's floor: a derived price beyond it is refused
|
|
535
|
+
`PEG_LIMIT_VIOLATION`, an empty reference side `PEG_REFERENCE_UNAVAILABLE`.
|
|
536
|
+
A peg on a market order, with quote sizing or with `attached_risk` raises
|
|
537
|
+
`PolyesterValidationError` before sending. The price never follows the book
|
|
538
|
+
afterwards; read the order for the price it got.
|
|
539
|
+
|
|
540
|
+
```python
|
|
541
|
+
await client.orders.create(
|
|
542
|
+
symbol="BTC-USDT", side="buy", order_type="limit", qty="1", price="61000",
|
|
543
|
+
display_qty="0.1", peg=OrderPeg(reference="best_bid", offset_ticks=-1),
|
|
544
|
+
)
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
`display_qty`, `peg` and `quote_proceeds` work the same on `orders.preview`
|
|
548
|
+
and on every `orders.batch_create` item.
|
|
549
|
+
|
|
491
550
|
Use `orders.preview(...)` to check current order admissibility and, when
|
|
492
551
|
available, resolved base quantity plus protected price bound before submitting.
|
|
493
552
|
Preview accepts the same public create kwargs and encodes them as an
|
|
@@ -530,11 +589,17 @@ at `order.base_qty_scaled` for the quantity, `ERROR_CODE_PRICE_TICK_SIZE` /
|
|
|
530
589
|
`tick_size` for the limit price, the attached take-profit and stop-loss
|
|
531
590
|
trigger and limit prices, the attached trailing stop's activation and limit
|
|
532
591
|
prices, and modify's `new_price` (`new_price_ticks`). Other decimals
|
|
533
|
-
(`max_quote_debit`, `market_client_ref_price`)
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
`
|
|
537
|
-
|
|
592
|
+
(`max_quote_debit`, `quote_proceeds`, `display_qty`, `market_client_ref_price`)
|
|
593
|
+
raise it with no `code`.
|
|
594
|
+
|
|
595
|
+
`self_trade_prevention_mode` (`expire_taker`, `expire_maker`, `expire_both`
|
|
596
|
+
or `decrement`) sets the order's self-trade prevention on create, preview and
|
|
597
|
+
batch create items, `triggers.create` and `triggers.create_oco`; omit it for
|
|
598
|
+
the server default. `decrement` trades neither order: both are reduced by the
|
|
599
|
+
quantity that would have traded, and the order left with none is canceled
|
|
600
|
+
with `cancel_reason` `STP_DECREMENT`. A resting order of yours can be reduced
|
|
601
|
+
this way even if you never send `decrement`, when another order of the same
|
|
602
|
+
root account does. The order's attached
|
|
538
603
|
take-profit, stop-loss and trailing stop exits use the same mode: they have
|
|
539
604
|
none of their own. `Order.self_trade_prevention_mode` reads it back (empty
|
|
540
605
|
when unset; a mode newer than this SDK reads as its number), and each leg's
|
|
@@ -581,6 +646,14 @@ decimal strings `max_limit_qty_base`, `max_market_qty_base` and
|
|
|
581
646
|
one market order, valued at a buy's protection price or a sell's reference
|
|
582
647
|
price (`None` means no cap). `client.catalogs.max_open_orders_total` (or
|
|
583
648
|
`SpotConfig.max_open_orders_total`) is the cross-pair resting-order limit.
|
|
649
|
+
`price_band` is the pair's `PriceBand` (`lower_bps`, `upper_bps`,
|
|
650
|
+
`reference_window_ms`), `None` when the pair has none. With R the band's
|
|
651
|
+
reference price (the last trade is a close estimate), the upper limit is
|
|
652
|
+
`floor(R * (1 + upper_bps / 10000) / tick) * tick` and the lower limit
|
|
653
|
+
`ceil(R * (1 - lower_bps / 10000) / tick) * tick`. A limit buy priced above
|
|
654
|
+
the upper limit, or a limit sell below the lower limit, is refused
|
|
655
|
+
`PRICE_BAND_VIOLATION`; a market order trades only up to the band and its rest
|
|
656
|
+
is canceled with `cancel_reason` `PRICE_BAND`.
|
|
584
657
|
`SpotConfig.assets` lists each asset (`SpotAssetConfig`) with
|
|
585
658
|
`included_in_equity`: whether it counts in the account's total equity. Value
|
|
586
659
|
only the assets where it is `True`; list the `False` ones by amount with no
|
|
@@ -679,10 +752,13 @@ order's `cancel_reason` is one of `USER_REQUEST`, `IOC_REMAINDER`,
|
|
|
679
752
|
`REPLACED`, `GTD_EXPIRED`, `QTY_AT_OR_BELOW_FILLED`, `PAIR_DRAIN`,
|
|
680
753
|
`ATTACHED_RISK_REFUSED`, `CANCEL_ALL_AFTER`, `ACCOUNT_REPAIR`,
|
|
681
754
|
`TWAP_ROLLOVER`, `STRATEGY_CANCEL`, `SYSTEM`, `MARKET_HALTED` (the exchange
|
|
682
|
-
halted the market and canceled its open orders)
|
|
755
|
+
halted the market and canceled its open orders), `ATTACHED_EXIT_FIRED` (its
|
|
683
756
|
take-profit, stop-loss or trailing stop fired while it still rested, so its
|
|
684
757
|
unfilled remainder was canceled first; fills before it stand, and it can no
|
|
685
|
-
longer be modified)
|
|
758
|
+
longer be modified), `STP_DECREMENT` (`decrement` self-trade prevention left
|
|
759
|
+
it no quantity), `PRICE_BAND` (the pair's price band stopped it; fills up to
|
|
760
|
+
the band stand) or `CANCEL_ON_DISCONNECT` (the account's trading WebSocket
|
|
761
|
+
connections that opted in to cancel-on-disconnect all closed). Both are `None` for every other
|
|
686
762
|
status. A number this SDK does not know yet reads `UNKNOWN_ERROR_CODE(n)` or
|
|
687
763
|
`UNKNOWN_CANCEL_REASON(n)`; treat it as a generic refusal or end.
|
|
688
764
|
|
|
@@ -692,7 +768,8 @@ if order is not None and order.reject_reason == "POST_ONLY_CROSS":
|
|
|
692
768
|
... # reprice and resend
|
|
693
769
|
```
|
|
694
770
|
|
|
695
|
-
A buy sized by a quote amount (`max_quote_debit`) that spends its amount
|
|
771
|
+
A buy sized by a quote amount (`max_quote_debit`) that spends its amount, or a
|
|
772
|
+
sell sized by `quote_proceeds` that receives its target, ends
|
|
696
773
|
`filled`, with nothing remaining; `MARKET_REMAINDER` and `IOC_REMAINDER` mean
|
|
697
774
|
the book, its price limit or the market's maximum quantity stopped it first.
|
|
698
775
|
|
|
@@ -945,7 +1022,11 @@ the part before the first `-`, the release it follows.
|
|
|
945
1022
|
`client.alerts` manages durable price alerts. Available on devnet; not yet
|
|
946
1023
|
routed on testnet. Alerts belong to the main account: a session or an API key
|
|
947
1024
|
of the main account manages them, and a key scoped to a sub-account is refused
|
|
948
|
-
with `PolyesterAuthError` (`code` `SUBACCOUNT_KEY_REFUSED`, HTTP 403).
|
|
1025
|
+
with `PolyesterAuthError` (`code` `SUBACCOUNT_KEY_REFUSED`, HTTP 403). An API
|
|
1026
|
+
key also needs its policy to grant `READ_PRICE_ALERTS` to list alerts and
|
|
1027
|
+
`MANAGE_PRICE_ALERTS` to create, update or cancel them; without it the call
|
|
1028
|
+
raises `PolyesterApiError` whose `auth_error_code(err)` is
|
|
1029
|
+
`AUTH_API_KEY_ACCESS_DENIED` (`permission_denied`), not retryable.
|
|
949
1030
|
|
|
950
1031
|
- `create(symbol=, direction=, price=, channels=, price_source=None,
|
|
951
1032
|
idempotency_key=None)`: `direction` `"above"` fires at a price >= `price`,
|
|
@@ -954,14 +1035,23 @@ with `PolyesterAuthError` (`code` `SUBACCOUNT_KEY_REFUSED`, HTTP 403).
|
|
|
954
1035
|
otherwise. `channels` names one or two of `"in_app"` and `"telegram"`. The
|
|
955
1036
|
current price is recorded as `reference_price`; an alert whose condition
|
|
956
1037
|
already holds starts with `armed` false and fires only after the price moves
|
|
957
|
-
back and crosses again.
|
|
1038
|
+
back and crosses again. Name the market with `symbol=`, `symbol_id=` or both.
|
|
1039
|
+
A `Price` bound to a market (`Price.from_ticks(..., symbol="ETH-USDT")`) is
|
|
1040
|
+
checked against the catalogs' name for the market's `symbol_id`; when the
|
|
1041
|
+
catalogs don't know that ID (not loaded, failed to load, or not listed) the
|
|
1042
|
+
call raises `PolyesterValidationError` before sending, whatever `symbol=`
|
|
1043
|
+
says. An unbound price or a decimal string works with any `symbol_id`.
|
|
958
1044
|
- `list(statuses=, symbol=, limit=, page_token=)` returns one page, newest
|
|
959
1045
|
first (`limit` 50 by default, at most 200); `iter_alerts(...)` yields every
|
|
960
1046
|
match across pages.
|
|
961
1047
|
- `update(alert_id=, expected_revision=, direction=, price=, channels=,
|
|
962
1048
|
idempotency_key=)` changes only the fields you pass. With none it changes no
|
|
963
1049
|
field: it sets a triggered alert again, and changes nothing on an active one.
|
|
964
|
-
`outcome` is `"applied"`, `"unchanged"` or `"replayed"`.
|
|
1050
|
+
`outcome` is `"applied"`, `"unchanged"` or `"replayed"`. Pass `price` as a
|
|
1051
|
+
decimal string, a `Decimal` or an unbound `Price.from_ticks(ticks)`: a `Price`
|
|
1052
|
+
bound to a market (including an alert's own `price`) raises
|
|
1053
|
+
`PolyesterValidationError` before sending, since the update names the alert,
|
|
1054
|
+
not its market.
|
|
965
1055
|
- `cancel(alert_id=)` cancels an active alert; a cancelled alert is returned
|
|
966
1056
|
unchanged.
|
|
967
1057
|
|
|
@@ -979,6 +1069,10 @@ read it (read it again); `IDEMPOTENCY_CONFLICT` means the key was used for
|
|
|
979
1069
|
another request; `ALERT_LIMIT_REACHED`, `ALERT_UPDATE_LIMIT_REACHED`,
|
|
980
1070
|
`ALERT_CANCELLED`, `ALERT_TRIGGERED`, `ALERT_NOT_FOUND`, `UNKNOWN_SYMBOL` and
|
|
981
1071
|
`PRICE_SOURCE_UNSUPPORTED` raise `PolyesterApiError`.
|
|
1072
|
+
A create, update or cancel answer without the alert, or with an alert that
|
|
1073
|
+
has no `alert_id`, raises `PolyesterResponseContractError` (its
|
|
1074
|
+
`mutation_outcome_unknown` is true): read the alerts back rather than trusting
|
|
1075
|
+
a zero-ID alert.
|
|
982
1076
|
|
|
983
1077
|
```python
|
|
984
1078
|
alert = await client.alerts.create(
|
|
@@ -1205,6 +1299,22 @@ with `MAX_SLIPPAGE_INVALID`. Trailing distance in bps is 1–10000; trigger modi
|
|
|
1205
1299
|
accepts `0` to clear. A child's limit price is fixed at create, so `modify`
|
|
1206
1300
|
takes no `limit_price`: cancel the trigger and create a new one instead.
|
|
1207
1301
|
|
|
1302
|
+
A cancel, pause, resume or modify of a trigger that has ended (completed,
|
|
1303
|
+
canceled or failed) raises `PolyesterApiError`
|
|
1304
|
+
`ERROR_CODE_TRIGGER_STATUS_INVALID` (HTTP 400) for at least 60 seconds after
|
|
1305
|
+
it ended, a repeat of a cancel that succeeded included;
|
|
1306
|
+
`is_trigger_already_ended(err)` tells it apart. Treat it as "already done"
|
|
1307
|
+
and read the trigger for how it ended. After that window the server may
|
|
1308
|
+
answer `ERROR_CODE_TRIGGER_NOT_FOUND`, which also names an ID that is none of
|
|
1309
|
+
the account's triggers: treat it as ended only for a trigger you know you
|
|
1310
|
+
created. An ended ladder or TWAP answers the same; a running one still
|
|
1311
|
+
answers `ERROR_CODE_TRIGGER_NOT_MODIFIABLE` to anything but a cancel.
|
|
1312
|
+
|
|
1313
|
+
Trigger IDs are opaque, per-account values: use one only as the API gave it,
|
|
1314
|
+
for the account that owns it, and derive nothing from it. IDs and page tokens
|
|
1315
|
+
issued before the public trigger IDs change are refused; list the triggers
|
|
1316
|
+
again for their current IDs.
|
|
1317
|
+
|
|
1208
1318
|
`triggers.modify(...)` and `triggers.resume(...)` do not need a symbol: without
|
|
1209
1319
|
`symbol` / `symbol_id` they target the trigger's own market. When given, it
|
|
1210
1320
|
must be that market, and an API key limited to specific markets must give it.
|
|
@@ -1246,7 +1356,12 @@ market's minimum, and the trigger fires again once the position changes;
|
|
|
1246
1356
|
`rate_limited` or `account_repairing` (an automatic account repair) fires
|
|
1247
1357
|
again shortly. `fire_refused` is not terminal: the trigger stays `armed` or
|
|
1248
1358
|
`running`. A refusal that ends the trigger is a `failed` event with
|
|
1249
|
-
`failure_reason`.
|
|
1359
|
+
`failure_reason`. A ladder level that the book rejects when it arrives (a
|
|
1360
|
+
post-only level that would cross, for example) reads as its `fired` event
|
|
1361
|
+
followed by `fire_refused` with the same `child_seq`, its reason and the
|
|
1362
|
+
level's price, while the ladder keeps working its other levels: that level was
|
|
1363
|
+
not placed, so do not count it. A ladder fails only when every level was
|
|
1364
|
+
rejected. `is_terminal_trigger_event(event_type)` is true only for
|
|
1250
1365
|
`canceled` and `failed`; read the trigger's `status` rather than inferring it
|
|
1251
1366
|
from its last event. `list_events(event_type="fire_refused")` filters them.
|
|
1252
1367
|
|
|
@@ -1402,7 +1517,9 @@ List and heatmap `limit` arguments must be integers (booleans and other types
|
|
|
1402
1517
|
are rejected for wire safety). Optional limits omit when unset so the server
|
|
1403
1518
|
default applies; allowed ranges are enforced by each API, not a global SDK cap.
|
|
1404
1519
|
Response fields named `ts_ns` are treated as epoch nanoseconds per the API
|
|
1405
|
-
contract.
|
|
1520
|
+
contract. A protobuf `Timestamp` field the server leaves unset reads as
|
|
1521
|
+
`None`, never as 1970-01-01, on every model field typed `datetime | None`;
|
|
1522
|
+
integer `*_ms` fields read `0` when unset.
|
|
1406
1523
|
|
|
1407
1524
|
`get_trades()` lists trades newest first. Narrow it with `start_time` /
|
|
1408
1525
|
`end_time` (inclusive), `side` (`"buy"` or `"sell"` aggressor), and page with
|
|
@@ -2035,6 +2152,18 @@ policy lacks the action a withdraw or auto-withdraw read checks raises
|
|
|
2035
2152
|
`PolyesterAuthError` with, for example, "api key policy does not allow
|
|
2036
2153
|
READ_AUTO_WITHDRAW": grant that action in the key's policy.
|
|
2037
2154
|
|
|
2155
|
+
An order refused for permissions raises `PolyesterAuthError` (HTTP 403, not
|
|
2156
|
+
retryable) with the same `ERROR_CODE_` code over ConnectRPC and REST:
|
|
2157
|
+
`ERROR_CODE_POLICY_SPOT_TRADE_DENY` when the sub-account's policy lacks spot
|
|
2158
|
+
trading (a sub-account without a policy is read-only),
|
|
2159
|
+
`ERROR_CODE_API_KEY_SPOT_TRADE_DENY` when the API key's policy lacks it (the
|
|
2160
|
+
key is named first when both lack it), `ERROR_CODE_API_KEY_POLICY_REQUIRED`
|
|
2161
|
+
for a key with no policy, `ERROR_CODE_POLICY_MARKET_DENY` when the
|
|
2162
|
+
sub-account's policy excludes the market and `ERROR_CODE_API_KEY_MARKET_DENY`
|
|
2163
|
+
when the key's market list does, a main-account key's included. Every order
|
|
2164
|
+
code an HTTP 403 or 401 REST problem carries reads with its `ERROR_CODE_`
|
|
2165
|
+
prefix, as the ConnectRPC detail names it.
|
|
2166
|
+
|
|
2038
2167
|
Other withdrawal refusals raise `PolyesterWithdrawError`, a `PolyesterApiError`
|
|
2039
2168
|
whose `code` is the `chain.withdraw.v1.ErrorCode` name. `field_path` names the
|
|
2040
2169
|
request field to fix when the server names one; `min_floor_e18` and
|