From 63dc5378935dfb116b348e80eaa1316ab9f180d8 Mon Sep 17 00:00:00 2001 From: DomRom Date: Wed, 26 Nov 2025 15:11:35 +1100 Subject: [PATCH 1/8] Add pyyaml to dependencies --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 8c684a7f..0e0014b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,6 +23,7 @@ returns = "^0.26.0" eth-typing = "<5" py-vollib = "^1.0.1" msgspec = "^0.19.0" +pyyaml = ">=6.0.1" [tool.poetry.scripts] From 38e9221b0c548c74c0719879158002697056945c Mon Sep 17 00:00:00 2001 From: 8ball030 <8baller@station.codes> Date: Wed, 26 Nov 2025 11:52:35 +0000 Subject: [PATCH 2/8] feat:ensured-pyyaml-added --- poetry.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index 143e94f4..7cc28a27 100644 --- a/poetry.lock +++ b/poetry.lock @@ -3214,7 +3214,7 @@ version = "6.0.3" description = "YAML parser and emitter for Python" optional = false python-versions = ">=3.8" -groups = ["dev", "docs"] +groups = ["main", "dev", "docs"] files = [ {file = "PyYAML-6.0.3-cp38-cp38-macosx_10_13_x86_64.whl", hash = "sha256:c2514fceb77bc5e7a2f7adfaa1feb2fb311607c9cb518dbc378688ec73d8292f"}, {file = "PyYAML-6.0.3-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9c57bb8c96f6d1808c030b1687b9b5fb476abaa47f0db9c0101f5e9f394e97f4"}, @@ -4528,4 +4528,4 @@ propcache = ">=0.2.1" [metadata] lock-version = "2.1" python-versions = ">=3.11,<=3.13" -content-hash = "28782bfe569837c72a833f6f84307a855821693073573408deb962873913f1fe" +content-hash = "e211627c72115277d33e78f7c3ae654f35f48e27dbc893948ef9cebc9c04a3da" From c84bf89a60d35ee08625e02f8bae4fdcebd128d5 Mon Sep 17 00:00:00 2001 From: 8ball030 <8baller@station.codes> Date: Wed, 26 Nov 2025 11:59:12 +0000 Subject: [PATCH 3/8] feat:ensured-open-api-spec-up-to-date --- openapi-spec.json | 4996 ++++++++++++++++++++++----------------------- 1 file changed, 2498 insertions(+), 2498 deletions(-) diff --git a/openapi-spec.json b/openapi-spec.json index 971ff219..cbaf140e 100644 --- a/openapi-spec.json +++ b/openapi-spec.json @@ -3187,10 +3187,6 @@ "components": { "schemas": { "PublicGetFundingRateHistoryParamsSchema": { - "required": [ - "instrument_name" - ], - "type": "object", "properties": { "end_timestamp": { "title": "end_timestamp", @@ -3223,14 +3219,13 @@ "description": "Start timestamp of the event history (default 0)" } }, + "type": "object", + "required": [ + "instrument_name" + ], "additionalProperties": false }, "PublicGetFundingRateHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -3248,13 +3243,14 @@ "$ref": "#/components/schemas/PublicGetFundingRateHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetFundingRateHistoryResultSchema": { - "required": [ - "funding_rate_history" - ], - "type": "object", "properties": { "funding_rate_history": { "title": "funding_rate_history", @@ -3265,14 +3261,13 @@ } } }, + "type": "object", + "required": [ + "funding_rate_history" + ], "additionalProperties": false }, "FundingRateSchema": { - "required": [ - "funding_rate", - "timestamp" - ], - "type": "object", "properties": { "funding_rate": { "title": "funding_rate", @@ -3286,14 +3281,14 @@ "description": "Timestamp of the funding rate update (in ms since UNIX epoch)" } }, + "type": "object", + "required": [ + "funding_rate", + "timestamp" + ], "additionalProperties": false }, "PrivateEditSessionKeyParamsSchema": { - "required": [ - "public_session_key", - "wallet" - ], - "type": "object", "properties": { "disable": { "title": "disable", @@ -3330,14 +3325,14 @@ "description": "Ethereum wallet address of account" } }, + "type": "object", + "required": [ + "public_session_key", + "wallet" + ], "additionalProperties": false }, "PrivateEditSessionKeyResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -3355,18 +3350,14 @@ "$ref": "#/components/schemas/PrivateEditSessionKeyResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateEditSessionKeyResultSchema": { - "required": [ - "expiry_sec", - "ip_whitelist", - "label", - "public_session_key", - "registered_sec", - "scope" - ], - "type": "object", "properties": { "expiry_sec": { "title": "expiry_sec", @@ -3403,10 +3394,18 @@ "description": "Session key permission level scope" } }, + "type": "object", + "required": [ + "expiry_sec", + "ip_whitelist", + "label", + "public_session_key", + "registered_sec", + "scope" + ], "additionalProperties": false }, "PublicGetLiquidationHistoryParamsSchema": { - "type": "object", "properties": { "end_timestamp": { "title": "end_timestamp", @@ -3440,14 +3439,10 @@ "nullable": true } }, + "type": "object", "additionalProperties": false }, "PublicGetLiquidationHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -3465,14 +3460,14 @@ "$ref": "#/components/schemas/PublicGetLiquidationHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetLiquidationHistoryResultSchema": { - "required": [ - "auctions", - "pagination" - ], - "type": "object", "properties": { "auctions": { "title": "auctions", @@ -3486,20 +3481,14 @@ "$ref": "#/components/schemas/PaginationInfoSchema" } }, + "type": "object", + "required": [ + "auctions", + "pagination" + ], "additionalProperties": false }, "AuctionResultSchema": { - "required": [ - "auction_id", - "auction_type", - "bids", - "end_timestamp", - "fee", - "start_timestamp", - "subaccount_id", - "tx_hash" - ], - "type": "object", "properties": { "auction_id": { "title": "auction_id", @@ -3552,22 +3541,20 @@ "description": "Hash of the transaction that started the auction" } }, - "additionalProperties": false - }, - "AuctionBidEventSchema": { + "type": "object", "required": [ - "amounts_liquidated", - "cash_received", - "discount_pnl", - "percent_liquidated", - "positions_realized_pnl", - "positions_realized_pnl_excl_fees", - "realized_pnl", - "realized_pnl_excl_fees", - "timestamp", + "auction_id", + "auction_type", + "bids", + "end_timestamp", + "fee", + "start_timestamp", + "subaccount_id", "tx_hash" ], - "type": "object", + "additionalProperties": false + }, + "AuctionBidEventSchema": { "properties": { "amounts_liquidated": { "title": "amounts_liquidated", @@ -3640,14 +3627,22 @@ "description": "Hash of the bid transaction" } }, + "type": "object", + "required": [ + "amounts_liquidated", + "cash_received", + "discount_pnl", + "percent_liquidated", + "positions_realized_pnl", + "positions_realized_pnl_excl_fees", + "realized_pnl", + "realized_pnl_excl_fees", + "timestamp", + "tx_hash" + ], "additionalProperties": false }, "PaginationInfoSchema": { - "required": [ - "count", - "num_pages" - ], - "type": "object", "properties": { "count": { "title": "count", @@ -3660,13 +3655,14 @@ "description": "Number of pages" } }, + "type": "object", + "required": [ + "count", + "num_pages" + ], "additionalProperties": false }, "PrivateGetOpenOrdersParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "subaccount_id": { "title": "subaccount_id", @@ -3674,14 +3670,13 @@ "description": "Subaccount_id for which to get open orders" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetOpenOrdersResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -3699,14 +3694,14 @@ "$ref": "#/components/schemas/PrivateGetOpenOrdersResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetOpenOrdersResultSchema": { - "required": [ - "orders", - "subaccount_id" - ], - "type": "object", "properties": { "orders": { "title": "orders", @@ -3722,36 +3717,14 @@ "description": "Subaccount_id for which to get open orders" } }, + "type": "object", + "required": [ + "orders", + "subaccount_id" + ], "additionalProperties": false }, "OrderResponseSchema": { - "required": [ - "amount", - "average_price", - "cancel_reason", - "creation_timestamp", - "direction", - "filled_amount", - "instrument_name", - "is_transfer", - "label", - "last_update_timestamp", - "limit_price", - "max_fee", - "mmp", - "nonce", - "order_fee", - "order_id", - "order_status", - "order_type", - "quote_id", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id", - "time_in_force" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -3963,13 +3936,36 @@ "nullable": true } }, + "type": "object", + "required": [ + "amount", + "average_price", + "cancel_reason", + "creation_timestamp", + "direction", + "filled_amount", + "instrument_name", + "is_transfer", + "label", + "last_update_timestamp", + "limit_price", + "max_fee", + "mmp", + "nonce", + "order_fee", + "order_id", + "order_status", + "order_type", + "quote_id", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id", + "time_in_force" + ], "additionalProperties": false }, "PrivatePollQuotesParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "from_timestamp": { "title": "from_timestamp", @@ -4030,14 +4026,13 @@ "description": "Latest timestamp to filter by (in ms since Unix epoch). If not provied, defaults to returning all data up to current time." } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivatePollQuotesResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -4055,14 +4050,14 @@ "$ref": "#/components/schemas/PrivatePollQuotesResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivatePollQuotesResultSchema": { - "required": [ - "pagination", - "quotes" - ], - "type": "object", "properties": { "pagination": { "$ref": "#/components/schemas/PaginationInfoSchema" @@ -4076,27 +4071,14 @@ } } }, + "type": "object", + "required": [ + "pagination", + "quotes" + ], "additionalProperties": false }, "QuoteResultPublicSchema": { - "required": [ - "cancel_reason", - "creation_timestamp", - "direction", - "fill_pct", - "last_update_timestamp", - "legs", - "legs_hash", - "liquidity_role", - "quote_id", - "rfq_id", - "status", - "subaccount_id", - "tx_hash", - "tx_status", - "wallet" - ], - "type": "object", "properties": { "cancel_reason": { "title": "cancel_reason", @@ -4218,16 +4200,27 @@ "description": "Wallet address of the quote sender" } }, - "additionalProperties": false - }, - "LegPricedSchema": { + "type": "object", "required": [ - "amount", + "cancel_reason", + "creation_timestamp", "direction", - "instrument_name", - "price" + "fill_pct", + "last_update_timestamp", + "legs", + "legs_hash", + "liquidity_role", + "quote_id", + "rfq_id", + "status", + "subaccount_id", + "tx_hash", + "tx_status", + "wallet" ], - "type": "object", + "additionalProperties": false + }, + "LegPricedSchema": { "properties": { "amount": { "title": "amount", @@ -4256,10 +4249,16 @@ "description": "Leg price" } }, + "type": "object", + "required": [ + "amount", + "direction", + "instrument_name", + "price" + ], "additionalProperties": false }, "PrivateGetTradeHistoryParamsSchema": { - "type": "object", "properties": { "from_timestamp": { "title": "from_timestamp", @@ -4321,14 +4320,10 @@ "nullable": true } }, + "type": "object", "additionalProperties": false }, "PrivateGetTradeHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -4346,15 +4341,14 @@ "$ref": "#/components/schemas/PrivateGetTradeHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetTradeHistoryResultSchema": { - "required": [ - "pagination", - "subaccount_id", - "trades" - ], - "type": "object", "properties": { "pagination": { "$ref": "#/components/schemas/PaginationInfoSchema" @@ -4373,33 +4367,15 @@ } } }, - "additionalProperties": false - }, - "TradeResponseSchema": { + "type": "object", "required": [ - "direction", - "expected_rebate", - "index_price", - "instrument_name", - "is_transfer", - "label", - "liquidity_role", - "mark_price", - "order_id", - "quote_id", - "realized_pnl", - "realized_pnl_excl_fees", + "pagination", "subaccount_id", - "timestamp", - "trade_amount", - "trade_fee", - "trade_id", - "trade_price", - "transaction_id", - "tx_hash", - "tx_status" + "trades" ], - "type": "object", + "additionalProperties": false + }, + "TradeResponseSchema": { "properties": { "direction": { "title": "direction", @@ -4536,10 +4512,33 @@ "description": "Blockchain transaction status" } }, + "type": "object", + "required": [ + "direction", + "expected_rebate", + "index_price", + "instrument_name", + "is_transfer", + "label", + "liquidity_role", + "mark_price", + "order_id", + "quote_id", + "realized_pnl", + "realized_pnl_excl_fees", + "subaccount_id", + "timestamp", + "trade_amount", + "trade_fee", + "trade_id", + "trade_price", + "transaction_id", + "tx_hash", + "tx_status" + ], "additionalProperties": false }, "PublicGetTradeHistoryParamsSchema": { - "type": "object", "properties": { "currency": { "title": "currency", @@ -4625,14 +4624,10 @@ "description": "Transaction status to filter by (default `settled`)." } }, + "type": "object", "additionalProperties": false }, "PublicGetTradeHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -4650,14 +4645,14 @@ "$ref": "#/components/schemas/PublicGetTradeHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetTradeHistoryResultSchema": { - "required": [ - "pagination", - "trades" - ], - "type": "object", "properties": { "pagination": { "$ref": "#/components/schemas/PaginationInfoSchema" @@ -4671,30 +4666,14 @@ } } }, + "type": "object", + "required": [ + "pagination", + "trades" + ], "additionalProperties": false }, "TradeSettledPublicResponseSchema": { - "required": [ - "direction", - "expected_rebate", - "index_price", - "instrument_name", - "liquidity_role", - "mark_price", - "quote_id", - "realized_pnl", - "realized_pnl_excl_fees", - "subaccount_id", - "timestamp", - "trade_amount", - "trade_fee", - "trade_id", - "trade_price", - "tx_hash", - "tx_status", - "wallet" - ], - "type": "object", "properties": { "direction": { "title": "direction", @@ -4811,13 +4790,30 @@ "description": "Wallet address (owner) of the subaccount" } }, + "type": "object", + "required": [ + "direction", + "expected_rebate", + "index_price", + "instrument_name", + "liquidity_role", + "mark_price", + "quote_id", + "realized_pnl", + "realized_pnl_excl_fees", + "subaccount_id", + "timestamp", + "trade_amount", + "trade_fee", + "trade_id", + "trade_price", + "tx_hash", + "tx_status", + "wallet" + ], "additionalProperties": false }, "PublicStatisticsParamsSchema": { - "required": [ - "instrument_name" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -4839,14 +4835,13 @@ "description": "Instrument name or 'ALL', 'OPTION', 'PERP', 'SPOT'" } }, + "type": "object", + "required": [ + "instrument_name" + ], "additionalProperties": false }, "PublicStatisticsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -4864,21 +4859,14 @@ "$ref": "#/components/schemas/PublicStatisticsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicStatisticsResultSchema": { - "required": [ - "daily_fees", - "daily_notional_volume", - "daily_premium_volume", - "daily_trades", - "open_interest", - "total_fees", - "total_notional_volume", - "total_premium_volume", - "total_trades" - ], - "type": "object", "properties": { "daily_fees": { "title": "daily_fees", @@ -4933,13 +4921,21 @@ "description": "Total trades" } }, + "type": "object", + "required": [ + "daily_fees", + "daily_notional_volume", + "daily_premium_volume", + "daily_trades", + "open_interest", + "total_fees", + "total_notional_volume", + "total_premium_volume", + "total_trades" + ], "additionalProperties": false }, "PublicGetInstrumentParamsSchema": { - "required": [ - "instrument_name" - ], - "type": "object", "properties": { "instrument_name": { "title": "instrument_name", @@ -4947,14 +4943,13 @@ "description": "Instrument name" } }, + "type": "object", + "required": [ + "instrument_name" + ], "additionalProperties": false }, "PublicGetInstrumentResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -4972,34 +4967,14 @@ "$ref": "#/components/schemas/PublicGetInstrumentResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetInstrumentResultSchema": { - "required": [ - "amount_step", - "base_asset_address", - "base_asset_sub_id", - "base_currency", - "base_fee", - "erc20_details", - "fifo_min_allocation", - "instrument_name", - "instrument_type", - "is_active", - "maker_fee_rate", - "maximum_amount", - "minimum_amount", - "option_details", - "perp_details", - "pro_rata_amount_step", - "pro_rata_fraction", - "quote_currency", - "scheduled_activation", - "scheduled_deactivation", - "taker_fee_rate", - "tick_size" - ], - "type": "object", "properties": { "amount_step": { "title": "amount_step", @@ -5132,13 +5107,34 @@ "description": "Tick size of the instrument, i.e. minimum price increment" } }, + "type": "object", + "required": [ + "amount_step", + "base_asset_address", + "base_asset_sub_id", + "base_currency", + "base_fee", + "erc20_details", + "fifo_min_allocation", + "instrument_name", + "instrument_type", + "is_active", + "maker_fee_rate", + "maximum_amount", + "minimum_amount", + "option_details", + "perp_details", + "pro_rata_amount_step", + "pro_rata_fraction", + "quote_currency", + "scheduled_activation", + "scheduled_deactivation", + "taker_fee_rate", + "tick_size" + ], "additionalProperties": false }, "ERC20PublicDetailsSchema": { - "required": [ - "decimals" - ], - "type": "object", "properties": { "borrow_index": { "title": "borrow_index", @@ -5166,16 +5162,13 @@ "description": "Address of underlying on-chain ERC20 (not V2 asset)" } }, + "type": "object", + "required": [ + "decimals" + ], "additionalProperties": false }, "OptionPublicDetailsSchema": { - "required": [ - "expiry", - "index", - "option_type", - "strike" - ], - "type": "object", "properties": { "expiry": { "title": "expiry", @@ -5209,18 +5202,16 @@ "format": "decimal" } }, - "additionalProperties": false - }, - "PerpPublicDetailsSchema": { + "type": "object", "required": [ - "aggregate_funding", - "funding_rate", + "expiry", "index", - "max_rate_per_hour", - "min_rate_per_hour", - "static_interest_rate" + "option_type", + "strike" ], - "type": "object", + "additionalProperties": false + }, + "PerpPublicDetailsSchema": { "properties": { "aggregate_funding": { "title": "aggregate_funding", @@ -5258,14 +5249,18 @@ "description": "Static interest rate as per `PerpAsset.sol`" } }, + "type": "object", + "required": [ + "aggregate_funding", + "funding_rate", + "index", + "max_rate_per_hour", + "min_rate_per_hour", + "static_interest_rate" + ], "additionalProperties": false }, "PrivateSendRfqParamsSchema": { - "required": [ - "legs", - "subaccount_id" - ], - "type": "object", "properties": { "counterparties": { "title": "counterparties", @@ -5321,15 +5316,14 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "legs", + "subaccount_id" + ], "additionalProperties": false }, "LegUnpricedSchema": { - "required": [ - "amount", - "direction", - "instrument_name" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -5352,14 +5346,15 @@ "description": "Instrument name" } }, + "type": "object", + "required": [ + "amount", + "direction", + "instrument_name" + ], "additionalProperties": false }, "PrivateSendRfqResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -5377,32 +5372,14 @@ "$ref": "#/components/schemas/PrivateSendRfqResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateSendRfqResultSchema": { - "required": [ - "ask_total_cost", - "bid_total_cost", - "cancel_reason", - "counterparties", - "creation_timestamp", - "filled_direction", - "filled_pct", - "label", - "last_update_timestamp", - "legs", - "mark_total_cost", - "max_total_cost", - "min_total_cost", - "partial_fill_step", - "rfq_id", - "status", - "subaccount_id", - "total_cost", - "valid_until", - "wallet" - ], - "type": "object", "properties": { "ask_total_cost": { "title": "ask_total_cost", @@ -5559,13 +5536,32 @@ "description": "Wallet address of the RFQ sender" } }, - "additionalProperties": false - }, - "PrivateGetSubaccountsParamsSchema": { + "type": "object", "required": [ + "ask_total_cost", + "bid_total_cost", + "cancel_reason", + "counterparties", + "creation_timestamp", + "filled_direction", + "filled_pct", + "label", + "last_update_timestamp", + "legs", + "mark_total_cost", + "max_total_cost", + "min_total_cost", + "partial_fill_step", + "rfq_id", + "status", + "subaccount_id", + "total_cost", + "valid_until", "wallet" ], - "type": "object", + "additionalProperties": false + }, + "PrivateGetSubaccountsParamsSchema": { "properties": { "wallet": { "title": "wallet", @@ -5573,14 +5569,13 @@ "description": "Ethereum wallet address of account" } }, + "type": "object", + "required": [ + "wallet" + ], "additionalProperties": false }, "PrivateGetSubaccountsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -5598,14 +5593,14 @@ "$ref": "#/components/schemas/PrivateGetSubaccountsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetSubaccountsResultSchema": { - "required": [ - "subaccount_ids", - "wallet" - ], - "type": "object", "properties": { "subaccount_ids": { "title": "subaccount_ids", @@ -5622,13 +5617,14 @@ "description": "Ethereum wallet address" } }, + "type": "object", + "required": [ + "subaccount_ids", + "wallet" + ], "additionalProperties": false }, "PrivateGetLiquidationHistoryParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "end_timestamp": { "title": "end_timestamp", @@ -5648,14 +5644,13 @@ "description": "Subaccount id" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetLiquidationHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -5678,17 +5673,14 @@ } } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateTransferErc20ParamsSchema": { - "required": [ - "recipient_details", - "recipient_subaccount_id", - "sender_details", - "subaccount_id", - "transfer" - ], - "type": "object", "properties": { "recipient_details": { "$ref": "#/components/schemas/SignatureDetailsSchema" @@ -5710,16 +5702,17 @@ "$ref": "#/components/schemas/TransferDetailsSchema" } }, + "type": "object", + "required": [ + "recipient_details", + "recipient_subaccount_id", + "sender_details", + "subaccount_id", + "transfer" + ], "additionalProperties": false }, "SignatureDetailsSchema": { - "required": [ - "nonce", - "signature", - "signature_expiry_sec", - "signer" - ], - "type": "object", "properties": { "nonce": { "title": "nonce", @@ -5742,15 +5735,16 @@ "description": "Ethereum wallet address that is signing the transfer" } }, + "type": "object", + "required": [ + "nonce", + "signature", + "signature_expiry_sec", + "signer" + ], "additionalProperties": false }, "TransferDetailsSchema": { - "required": [ - "address", - "amount", - "sub_id" - ], - "type": "object", "properties": { "address": { "title": "address", @@ -5769,14 +5763,15 @@ "description": "Sub ID of the asset being transferred" } }, + "type": "object", + "required": [ + "address", + "amount", + "sub_id" + ], "additionalProperties": false }, "PrivateTransferErc20ResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -5794,14 +5789,14 @@ "$ref": "#/components/schemas/PrivateTransferErc20ResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateTransferErc20ResultSchema": { - "required": [ - "status", - "transaction_id" - ], - "type": "object", "properties": { "status": { "title": "status", @@ -5815,27 +5810,27 @@ "description": "Transaction id of the transfer" } }, + "type": "object", + "required": [ + "status", + "transaction_id" + ], "additionalProperties": false }, "PrivateCancelAllTriggerOrdersParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "subaccount_id": { "title": "subaccount_id", "type": "integer" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateCancelAllTriggerOrdersResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -5858,16 +5853,14 @@ "description": "" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateCancelByNonceParamsSchema": { - "required": [ - "instrument_name", - "nonce", - "subaccount_id", - "wallet" - ], - "type": "object", "properties": { "instrument_name": { "title": "instrument_name", @@ -5890,14 +5883,16 @@ "description": "Wallet address" } }, + "type": "object", + "required": [ + "instrument_name", + "nonce", + "subaccount_id", + "wallet" + ], "additionalProperties": false }, "PrivateCancelByNonceResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -5915,13 +5910,14 @@ "$ref": "#/components/schemas/PrivateCancelByNonceResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateCancelByNonceResultSchema": { - "required": [ - "cancelled_orders" - ], - "type": "object", "properties": { "cancelled_orders": { "title": "cancelled_orders", @@ -5929,10 +5925,13 @@ "description": "Number of cancelled orders" } }, + "type": "object", + "required": [ + "cancelled_orders" + ], "additionalProperties": false }, "PublicGetOptionSettlementHistoryParamsSchema": { - "type": "object", "properties": { "page": { "title": "page", @@ -5954,14 +5953,10 @@ "nullable": true } }, + "type": "object", "additionalProperties": false }, "PublicGetOptionSettlementHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -5979,14 +5974,14 @@ "$ref": "#/components/schemas/PublicGetOptionSettlementHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetOptionSettlementHistoryResultSchema": { - "required": [ - "pagination", - "settlements" - ], - "type": "object", "properties": { "pagination": { "$ref": "#/components/schemas/PaginationInfoSchema" @@ -6000,19 +5995,14 @@ } } }, + "type": "object", + "required": [ + "pagination", + "settlements" + ], "additionalProperties": false }, "OptionSettlementResponseSchema": { - "required": [ - "amount", - "expiry", - "instrument_name", - "option_settlement_pnl", - "option_settlement_pnl_excl_fees", - "settlement_price", - "subaccount_id" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -6054,16 +6044,19 @@ "description": "Subaccount ID of the settlement event" } }, - "additionalProperties": false - }, - "PrivateSetMmpConfigParamsSchema": { + "type": "object", "required": [ - "currency", - "mmp_frozen_time", - "mmp_interval", + "amount", + "expiry", + "instrument_name", + "option_settlement_pnl", + "option_settlement_pnl_excl_fees", + "settlement_price", "subaccount_id" ], - "type": "object", + "additionalProperties": false + }, + "PrivateSetMmpConfigParamsSchema": { "properties": { "currency": { "title": "currency", @@ -6100,14 +6093,16 @@ "description": "Subaccount_id for which to set the config" } }, + "type": "object", + "required": [ + "currency", + "mmp_frozen_time", + "mmp_interval", + "subaccount_id" + ], "additionalProperties": false }, "PrivateSetMmpConfigResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -6125,16 +6120,14 @@ "$ref": "#/components/schemas/PrivateSetMmpConfigResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateSetMmpConfigResultSchema": { - "required": [ - "currency", - "mmp_frozen_time", - "mmp_interval", - "subaccount_id" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -6171,18 +6164,16 @@ "description": "Subaccount_id for which to set the config" } }, - "additionalProperties": false - }, - "PublicDepositDebugParamsSchema": { + "type": "object", "required": [ - "amount", - "asset_name", - "nonce", - "signature_expiry_sec", - "signer", + "currency", + "mmp_frozen_time", + "mmp_interval", "subaccount_id" ], - "type": "object", + "additionalProperties": false + }, + "PublicDepositDebugParamsSchema": { "properties": { "amount": { "title": "amount", @@ -6222,14 +6213,18 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "amount", + "asset_name", + "nonce", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PublicDepositDebugResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -6247,16 +6242,14 @@ "$ref": "#/components/schemas/PublicDepositDebugResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicDepositDebugResultSchema": { - "required": [ - "action_hash", - "encoded_data", - "encoded_data_hashed", - "typed_data_hash" - ], - "type": "object", "properties": { "action_hash": { "title": "action_hash", @@ -6279,14 +6272,16 @@ "description": "EIP 712 typed data hash" } }, + "type": "object", + "required": [ + "action_hash", + "encoded_data", + "encoded_data_hashed", + "typed_data_hash" + ], "additionalProperties": false }, "PublicGetReferralPerformanceParamsSchema": { - "required": [ - "end_ms", - "start_ms" - ], - "type": "object", "properties": { "end_ms": { "title": "end_ms", @@ -6313,14 +6308,14 @@ "nullable": true } }, + "type": "object", + "required": [ + "end_ms", + "start_ms" + ], "additionalProperties": false }, "PublicGetReferralPerformanceResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -6338,19 +6333,14 @@ "$ref": "#/components/schemas/PublicGetReferralPerformanceResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetReferralPerformanceResultSchema": { - "required": [ - "fee_share_percentage", - "referral_code", - "rewards", - "stdrv_balance", - "total_fee_rewards", - "total_notional_volume", - "total_referred_fees" - ], - "type": "object", "properties": { "fee_share_percentage": { "title": "fee_share_percentage", @@ -6404,15 +6394,19 @@ "description": "Total fees paid by referred traders (double counts if both taker and maker of a trade with rebated fees)" } }, + "type": "object", + "required": [ + "fee_share_percentage", + "referral_code", + "rewards", + "stdrv_balance", + "total_fee_rewards", + "total_notional_volume", + "total_referred_fees" + ], "additionalProperties": false }, "ReferralPerformanceByInstrumentTypeSchema": { - "required": [ - "fee_reward", - "notional_volume", - "referred_fee" - ], - "type": "object", "properties": { "fee_reward": { "title": "fee_reward", @@ -6433,14 +6427,15 @@ "description": "Fees paid by referred trader" } }, + "type": "object", + "required": [ + "fee_reward", + "notional_volume", + "referred_fee" + ], "additionalProperties": false }, "PrivateCancelByInstrumentParamsSchema": { - "required": [ - "instrument_name", - "subaccount_id" - ], - "type": "object", "properties": { "instrument_name": { "title": "instrument_name", @@ -6453,14 +6448,14 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "instrument_name", + "subaccount_id" + ], "additionalProperties": false }, "PrivateCancelByInstrumentResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -6478,13 +6473,14 @@ "$ref": "#/components/schemas/PrivateCancelByInstrumentResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateCancelByInstrumentResultSchema": { - "required": [ - "cancelled_orders" - ], - "type": "object", "properties": { "cancelled_orders": { "title": "cancelled_orders", @@ -6492,21 +6488,13 @@ "description": "Number of cancelled orders" } }, + "type": "object", + "required": [ + "cancelled_orders" + ], "additionalProperties": false }, "PublicSendQuoteDebugParamsSchema": { - "required": [ - "direction", - "legs", - "max_fee", - "nonce", - "rfq_id", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id" - ], - "type": "object", "properties": { "direction": { "title": "direction", @@ -6575,14 +6563,21 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "direction", + "legs", + "max_fee", + "nonce", + "rfq_id", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PublicSendQuoteDebugResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -6600,16 +6595,14 @@ "$ref": "#/components/schemas/PublicSendQuoteDebugResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicSendQuoteDebugResultSchema": { - "required": [ - "action_hash", - "encoded_data", - "encoded_data_hashed", - "typed_data_hash" - ], - "type": "object", "properties": { "action_hash": { "title": "action_hash", @@ -6632,19 +6625,16 @@ "description": "EIP 712 typed data hash" } }, + "type": "object", + "required": [ + "action_hash", + "encoded_data", + "encoded_data_hashed", + "typed_data_hash" + ], "additionalProperties": false }, "PublicCreateSubaccountDebugParamsSchema": { - "required": [ - "amount", - "asset_name", - "margin_type", - "nonce", - "signature_expiry_sec", - "signer", - "wallet" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -6695,14 +6685,19 @@ "description": "Ethereum wallet address" } }, + "type": "object", + "required": [ + "amount", + "asset_name", + "margin_type", + "nonce", + "signature_expiry_sec", + "signer", + "wallet" + ], "additionalProperties": false }, "PublicCreateSubaccountDebugResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -6720,16 +6715,14 @@ "$ref": "#/components/schemas/PublicCreateSubaccountDebugResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicCreateSubaccountDebugResultSchema": { - "required": [ - "action_hash", - "encoded_data", - "encoded_data_hashed", - "typed_data_hash" - ], - "type": "object", "properties": { "action_hash": { "title": "action_hash", @@ -6752,13 +6745,16 @@ "description": "EIP 712 typed data hash" } }, + "type": "object", + "required": [ + "action_hash", + "encoded_data", + "encoded_data_hashed", + "typed_data_hash" + ], "additionalProperties": false }, "PrivateGetErc20TransferHistoryParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "end_timestamp": { "title": "end_timestamp", @@ -6778,14 +6774,13 @@ "description": "Subaccount id" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetErc20TransferHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -6803,13 +6798,14 @@ "$ref": "#/components/schemas/PrivateGetErc20TransferHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetErc20TransferHistoryResultSchema": { - "required": [ - "events" - ], - "type": "object", "properties": { "events": { "title": "events", @@ -6820,18 +6816,13 @@ } } }, + "type": "object", + "required": [ + "events" + ], "additionalProperties": false }, "ERC20TransferSchema": { - "required": [ - "amount", - "asset", - "counterparty_subaccount_id", - "is_outgoing", - "timestamp", - "tx_hash" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -6865,10 +6856,18 @@ "description": "Hash of the transaction that withdrew the funds" } }, + "type": "object", + "required": [ + "amount", + "asset", + "counterparty_subaccount_id", + "is_outgoing", + "timestamp", + "tx_hash" + ], "additionalProperties": false }, "PublicGetLatestSignedFeedsParamsSchema": { - "type": "object", "properties": { "currency": { "title": "currency", @@ -6885,14 +6884,10 @@ "nullable": true } }, + "type": "object", "additionalProperties": false }, "PublicGetLatestSignedFeedsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -6910,17 +6905,14 @@ "$ref": "#/components/schemas/PublicGetLatestSignedFeedsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetLatestSignedFeedsResultSchema": { - "required": [ - "fwd_data", - "perp_data", - "rate_data", - "spot_data", - "vol_data" - ], - "type": "object", "properties": { "fwd_data": { "title": "fwd_data", @@ -6979,21 +6971,17 @@ } } }, + "type": "object", + "required": [ + "fwd_data", + "perp_data", + "rate_data", + "spot_data", + "vol_data" + ], "additionalProperties": false }, "ForwardFeedDataSchema": { - "required": [ - "confidence", - "currency", - "deadline", - "expiry", - "fwd_diff", - "signatures", - "spot_aggregate_latest", - "spot_aggregate_start", - "timestamp" - ], - "type": "object", "properties": { "confidence": { "title": "confidence", @@ -7043,10 +7031,21 @@ "description": "The timestamp for which the data was created" } }, + "type": "object", + "required": [ + "confidence", + "currency", + "deadline", + "expiry", + "fwd_diff", + "signatures", + "spot_aggregate_latest", + "spot_aggregate_start", + "timestamp" + ], "additionalProperties": false }, "OracleSignatureDataSchema": { - "type": "object", "properties": { "signatures": { "title": "signatures", @@ -7067,19 +7066,10 @@ } } }, + "type": "object", "additionalProperties": false }, "PerpFeedDataSchema": { - "required": [ - "confidence", - "currency", - "deadline", - "signatures", - "spot_diff_value", - "timestamp", - "type" - ], - "type": "object", "properties": { "confidence": { "title": "confidence", @@ -7122,19 +7112,19 @@ "description": "The type of perp feed; mid price, ask impact or bid impact" } }, - "additionalProperties": false - }, - "RateFeedDataSchema": { + "type": "object", "required": [ "confidence", "currency", "deadline", - "expiry", - "rate", "signatures", - "timestamp" + "spot_diff_value", + "timestamp", + "type" ], - "type": "object", + "additionalProperties": false + }, + "RateFeedDataSchema": { "properties": { "confidence": { "title": "confidence", @@ -7172,18 +7162,19 @@ "description": "The timestamp for which the data was created" } }, - "additionalProperties": false - }, - "SpotFeedDataSchema": { + "type": "object", "required": [ "confidence", "currency", "deadline", - "price", + "expiry", + "rate", "signatures", "timestamp" ], - "type": "object", + "additionalProperties": false + }, + "SpotFeedDataSchema": { "properties": { "confidence": { "title": "confidence", @@ -7226,19 +7217,18 @@ "description": "The timestamp for which the data was created" } }, - "additionalProperties": false - }, - "VolFeedDataSchema": { + "type": "object", "required": [ "confidence", "currency", "deadline", - "expiry", + "price", "signatures", - "timestamp", - "vol_data" + "timestamp" ], - "type": "object", + "additionalProperties": false + }, + "VolFeedDataSchema": { "properties": { "confidence": { "title": "confidence", @@ -7273,19 +7263,19 @@ "$ref": "#/components/schemas/VolSVIParamDataSchema" } }, - "additionalProperties": false - }, - "VolSVIParamDataSchema": { + "type": "object", "required": [ - "SVI_a", - "SVI_b", - "SVI_fwd", - "SVI_m", - "SVI_refTau", - "SVI_rho", - "SVI_sigma" + "confidence", + "currency", + "deadline", + "expiry", + "signatures", + "timestamp", + "vol_data" ], - "type": "object", + "additionalProperties": false + }, + "VolSVIParamDataSchema": { "properties": { "SVI_a": { "title": "SVI_a", @@ -7323,14 +7313,19 @@ "format": "decimal" } }, + "type": "object", + "required": [ + "SVI_a", + "SVI_b", + "SVI_fwd", + "SVI_m", + "SVI_refTau", + "SVI_rho", + "SVI_sigma" + ], "additionalProperties": false }, "PrivateCancelTriggerOrderParamsSchema": { - "required": [ - "order_id", - "subaccount_id" - ], - "type": "object", "properties": { "order_id": { "title": "order_id", @@ -7342,14 +7337,14 @@ "type": "integer" } }, + "type": "object", + "required": [ + "order_id", + "subaccount_id" + ], "additionalProperties": false }, "PrivateCancelTriggerOrderResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -7367,36 +7362,14 @@ "$ref": "#/components/schemas/PrivateCancelTriggerOrderResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateCancelTriggerOrderResultSchema": { - "required": [ - "amount", - "average_price", - "cancel_reason", - "creation_timestamp", - "direction", - "filled_amount", - "instrument_name", - "is_transfer", - "label", - "last_update_timestamp", - "limit_price", - "max_fee", - "mmp", - "nonce", - "order_fee", - "order_id", - "order_status", - "order_type", - "quote_id", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id", - "time_in_force" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -7608,15 +7581,36 @@ "nullable": true } }, - "additionalProperties": false - }, - "PublicLoginParamsSchema": { + "type": "object", "required": [ + "amount", + "average_price", + "cancel_reason", + "creation_timestamp", + "direction", + "filled_amount", + "instrument_name", + "is_transfer", + "label", + "last_update_timestamp", + "limit_price", + "max_fee", + "mmp", + "nonce", + "order_fee", + "order_id", + "order_status", + "order_type", + "quote_id", "signature", - "timestamp", - "wallet" + "signature_expiry_sec", + "signer", + "subaccount_id", + "time_in_force" ], - "type": "object", + "additionalProperties": false + }, + "PublicLoginParamsSchema": { "properties": { "signature": { "title": "signature", @@ -7634,14 +7628,15 @@ "description": "Public key (wallet) of the account" } }, + "type": "object", + "required": [ + "signature", + "timestamp", + "wallet" + ], "additionalProperties": false }, "PublicLoginResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -7665,15 +7660,14 @@ } } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateTransferPositionParamsSchema": { - "required": [ - "maker_params", - "taker_params", - "wallet" - ], - "type": "object", "properties": { "maker_params": { "$ref": "#/components/schemas/TradeModuleParamsSchema" @@ -7687,22 +7681,15 @@ "description": "Public key (wallet) of the account" } }, + "type": "object", + "required": [ + "maker_params", + "taker_params", + "wallet" + ], "additionalProperties": false }, "TradeModuleParamsSchema": { - "required": [ - "amount", - "direction", - "instrument_name", - "limit_price", - "max_fee", - "nonce", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -7762,14 +7749,22 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "amount", + "direction", + "instrument_name", + "limit_price", + "max_fee", + "nonce", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PrivateTransferPositionResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -7787,16 +7782,14 @@ "$ref": "#/components/schemas/PrivateTransferPositionResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateTransferPositionResultSchema": { - "required": [ - "maker_order", - "maker_trade", - "taker_order", - "taker_trade" - ], - "type": "object", "properties": { "maker_order": { "$ref": "#/components/schemas/OrderResponseSchema" @@ -7811,13 +7804,16 @@ "$ref": "#/components/schemas/TradeResponseSchema" } }, + "type": "object", + "required": [ + "maker_order", + "maker_trade", + "taker_order", + "taker_trade" + ], "additionalProperties": false }, "PublicMarginWatchParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "force_onchain": { "title": "force_onchain", @@ -7831,14 +7827,13 @@ "description": "Subaccount ID to get margin for." } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PublicMarginWatchResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -7856,21 +7851,14 @@ "$ref": "#/components/schemas/PublicMarginWatchResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicMarginWatchResultSchema": { - "required": [ - "collaterals", - "currency", - "initial_margin", - "maintenance_margin", - "margin_type", - "positions", - "subaccount_id", - "subaccount_value", - "valuation_timestamp" - ], - "type": "object", "properties": { "collaterals": { "title": "collaterals", @@ -7932,19 +7920,21 @@ "description": "Timestamp (in seconds since epoch) of when margin and MtM were computed." } }, - "additionalProperties": false - }, - "CollateralPublicResponseSchema": { + "type": "object", "required": [ - "amount", - "asset_name", - "asset_type", + "collaterals", + "currency", "initial_margin", "maintenance_margin", - "mark_price", - "mark_value" + "margin_type", + "positions", + "subaccount_id", + "subaccount_value", + "valuation_timestamp" ], - "type": "object", + "additionalProperties": false + }, + "CollateralPublicResponseSchema": { "properties": { "amount": { "title": "amount", @@ -7992,25 +7982,19 @@ "description": "USD value of the collateral (amount * mark price)" } }, - "additionalProperties": false - }, - "PositionPublicResponseSchema": { + "type": "object", "required": [ "amount", - "delta", - "gamma", - "index_price", + "asset_name", + "asset_type", "initial_margin", - "instrument_name", - "instrument_type", - "liquidation_price", "maintenance_margin", "mark_price", - "mark_value", - "theta", - "vega" + "mark_value" ], - "type": "object", + "additionalProperties": false + }, + "PositionPublicResponseSchema": { "properties": { "amount": { "title": "amount", @@ -8096,17 +8080,25 @@ "description": "Asset vega (zero for non-options)" } }, + "type": "object", + "required": [ + "amount", + "delta", + "gamma", + "index_price", + "initial_margin", + "instrument_name", + "instrument_type", + "liquidation_price", + "maintenance_margin", + "mark_price", + "mark_value", + "theta", + "vega" + ], "additionalProperties": false }, "PublicBuildRegisterSessionKeyTxParamsSchema": { - "required": [ - "expiry_sec", - "gas", - "nonce", - "public_session_key", - "wallet" - ], - "type": "object", "properties": { "expiry_sec": { "title": "expiry_sec", @@ -8138,14 +8130,17 @@ "description": "Ethereum wallet address of account" } }, + "type": "object", + "required": [ + "expiry_sec", + "gas", + "nonce", + "public_session_key", + "wallet" + ], "additionalProperties": false }, "PublicBuildRegisterSessionKeyTxResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -8163,13 +8158,14 @@ "$ref": "#/components/schemas/PublicBuildRegisterSessionKeyTxResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicBuildRegisterSessionKeyTxResultSchema": { - "required": [ - "tx_params" - ], - "type": "object", "properties": { "tx_params": { "title": "tx_params", @@ -8178,19 +8174,18 @@ "additionalProperties": {} } }, + "type": "object", + "required": [ + "tx_params" + ], "additionalProperties": false }, "PublicGetAllCurrenciesParamsSchema": { - "type": "object", "properties": {}, + "type": "object", "additionalProperties": false }, "PublicGetAllCurrenciesResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -8213,26 +8208,14 @@ } } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "CurrencyDetailedResponseSchema": { - "required": [ - "asset_cap_and_supply_per_manager", - "borrow_apy", - "currency", - "instrument_types", - "managers", - "market_type", - "pm2_collateral_discounts", - "protocol_asset_addresses", - "spot_price", - "srm_im_discount", - "srm_mm_discount", - "supply_apy", - "total_borrow", - "total_supply" - ], - "type": "object", "properties": { "asset_cap_and_supply_per_manager": { "title": "asset_cap_and_supply_per_manager", @@ -8370,14 +8353,26 @@ "description": "Total collateral supplied in the protocol" } }, + "type": "object", + "required": [ + "asset_cap_and_supply_per_manager", + "borrow_apy", + "currency", + "instrument_types", + "managers", + "market_type", + "pm2_collateral_discounts", + "protocol_asset_addresses", + "spot_price", + "srm_im_discount", + "srm_mm_discount", + "supply_apy", + "total_borrow", + "total_supply" + ], "additionalProperties": false }, "OpenInterestStatsSchema": { - "required": [ - "current_open_interest", - "interest_cap" - ], - "type": "object", "properties": { "current_open_interest": { "title": "current_open_interest", @@ -8399,14 +8394,14 @@ "nullable": true } }, + "type": "object", + "required": [ + "current_open_interest", + "interest_cap" + ], "additionalProperties": false }, "ManagerContractResponseSchema": { - "required": [ - "address", - "margin_type" - ], - "type": "object", "properties": { "address": { "title": "address", @@ -8431,15 +8426,14 @@ "description": "Margin type of the manager" } }, + "type": "object", + "required": [ + "address", + "margin_type" + ], "additionalProperties": false }, "PM2CollateralDiscountsSchema": { - "required": [ - "im_discount", - "manager_currency", - "mm_discount" - ], - "type": "object", "properties": { "im_discount": { "title": "im_discount", @@ -8459,10 +8453,15 @@ "description": "Maintenance Margin discount for given collateral in PM2" } }, + "type": "object", + "required": [ + "im_discount", + "manager_currency", + "mm_discount" + ], "additionalProperties": false }, "ProtocolAssetAddressesSchema": { - "type": "object", "properties": { "option": { "title": "option", @@ -8493,13 +8492,10 @@ "nullable": true } }, + "type": "object", "additionalProperties": false }, "PrivateGetAccountParamsSchema": { - "required": [ - "wallet" - ], - "type": "object", "properties": { "wallet": { "title": "wallet", @@ -8507,14 +8503,13 @@ "description": "Ethereum wallet address of account" } }, + "type": "object", + "required": [ + "wallet" + ], "additionalProperties": false }, "PrivateGetAccountResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -8532,22 +8527,14 @@ "$ref": "#/components/schemas/PrivateGetAccountResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetAccountResultSchema": { - "required": [ - "cancel_on_disconnect", - "fee_info", - "is_rfq_maker", - "per_endpoint_tps", - "subaccount_ids", - "wallet", - "websocket_matching_tps", - "websocket_non_matching_tps", - "websocket_option_tps", - "websocket_perp_tps" - ], - "type": "object", "properties": { "cancel_on_disconnect": { "title": "cancel_on_disconnect", @@ -8610,21 +8597,22 @@ "description": "Max transactions per second for EACH perp instrument over websocket (see `Rate Limiting` in docs)" } }, + "type": "object", + "required": [ + "cancel_on_disconnect", + "fee_info", + "is_rfq_maker", + "per_endpoint_tps", + "subaccount_ids", + "wallet", + "websocket_matching_tps", + "websocket_non_matching_tps", + "websocket_option_tps", + "websocket_perp_tps" + ], "additionalProperties": false }, "AccountFeeInfoSchema": { - "required": [ - "base_fee_discount", - "option_maker_fee", - "option_taker_fee", - "perp_maker_fee", - "perp_taker_fee", - "rfq_maker_discount", - "rfq_taker_discount", - "spot_maker_fee", - "spot_taker_fee" - ], - "type": "object", "properties": { "base_fee_discount": { "title": "base_fee_discount", @@ -8693,21 +8681,21 @@ "nullable": true } }, + "type": "object", + "required": [ + "base_fee_discount", + "option_maker_fee", + "option_taker_fee", + "perp_maker_fee", + "perp_taker_fee", + "rfq_maker_discount", + "rfq_taker_discount", + "spot_maker_fee", + "spot_taker_fee" + ], "additionalProperties": false }, "PrivateSendQuoteParamsSchema": { - "required": [ - "direction", - "legs", - "max_fee", - "nonce", - "rfq_id", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id" - ], - "type": "object", "properties": { "direction": { "title": "direction", @@ -8776,14 +8764,21 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "direction", + "legs", + "max_fee", + "nonce", + "rfq_id", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PrivateSendQuoteResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -8801,35 +8796,14 @@ "$ref": "#/components/schemas/PrivateSendQuoteResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateSendQuoteResultSchema": { - "required": [ - "cancel_reason", - "creation_timestamp", - "direction", - "fee", - "fill_pct", - "is_transfer", - "label", - "last_update_timestamp", - "legs", - "legs_hash", - "liquidity_role", - "max_fee", - "mmp", - "nonce", - "quote_id", - "rfq_id", - "signature", - "signature_expiry_sec", - "signer", - "status", - "subaccount_id", - "tx_hash", - "tx_status" - ], - "type": "object", "properties": { "cancel_reason": { "title": "cancel_reason", @@ -8993,13 +8967,35 @@ "nullable": true } }, + "type": "object", + "required": [ + "cancel_reason", + "creation_timestamp", + "direction", + "fee", + "fill_pct", + "is_transfer", + "label", + "last_update_timestamp", + "legs", + "legs_hash", + "liquidity_role", + "max_fee", + "mmp", + "nonce", + "quote_id", + "rfq_id", + "signature", + "signature_expiry_sec", + "signer", + "status", + "subaccount_id", + "tx_hash", + "tx_status" + ], "additionalProperties": false }, "PrivateGetCollateralsParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "subaccount_id": { "title": "subaccount_id", @@ -9007,14 +9003,13 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetCollateralsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -9032,14 +9027,14 @@ "$ref": "#/components/schemas/PrivateGetCollateralsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetCollateralsResultSchema": { - "required": [ - "collaterals", - "subaccount_id" - ], - "type": "object", "properties": { "collaterals": { "title": "collaterals", @@ -9055,34 +9050,14 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "collaterals", + "subaccount_id" + ], "additionalProperties": false }, "CollateralResponseSchema": { - "required": [ - "amount", - "amount_step", - "asset_name", - "asset_type", - "average_price", - "average_price_excl_fees", - "creation_timestamp", - "cumulative_interest", - "currency", - "delta", - "delta_currency", - "initial_margin", - "maintenance_margin", - "mark_price", - "mark_value", - "open_orders_margin", - "pending_interest", - "realized_pnl", - "realized_pnl_excl_fees", - "total_fees", - "unrealized_pnl", - "unrealized_pnl_excl_fees" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -9217,13 +9192,34 @@ "description": "Unrealized trading profit or loss of the position excluding fees" } }, + "type": "object", + "required": [ + "amount", + "amount_step", + "asset_name", + "asset_type", + "average_price", + "average_price_excl_fees", + "creation_timestamp", + "cumulative_interest", + "currency", + "delta", + "delta_currency", + "initial_margin", + "maintenance_margin", + "mark_price", + "mark_value", + "open_orders_margin", + "pending_interest", + "realized_pnl", + "realized_pnl_excl_fees", + "total_fees", + "unrealized_pnl", + "unrealized_pnl_excl_fees" + ], "additionalProperties": false }, "PublicGetTickerParamsSchema": { - "required": [ - "instrument_name" - ], - "type": "object", "properties": { "instrument_name": { "title": "instrument_name", @@ -9231,14 +9227,13 @@ "description": "Instrument name" } }, + "type": "object", + "required": [ + "instrument_name" + ], "additionalProperties": false }, "PublicGetTickerResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -9256,48 +9251,14 @@ "$ref": "#/components/schemas/PublicGetTickerResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetTickerResultSchema": { - "required": [ - "amount_step", - "base_asset_address", - "base_asset_sub_id", - "base_currency", - "base_fee", - "best_ask_amount", - "best_ask_price", - "best_bid_amount", - "best_bid_price", - "erc20_details", - "fifo_min_allocation", - "five_percent_ask_depth", - "five_percent_bid_depth", - "index_price", - "instrument_name", - "instrument_type", - "is_active", - "maker_fee_rate", - "mark_price", - "max_price", - "maximum_amount", - "min_price", - "minimum_amount", - "open_interest", - "option_details", - "option_pricing", - "perp_details", - "pro_rata_amount_step", - "pro_rata_fraction", - "quote_currency", - "scheduled_activation", - "scheduled_deactivation", - "stats", - "taker_fee_rate", - "tick_size", - "timestamp" - ], - "type": "object", "properties": { "amount_step": { "title": "amount_step", @@ -9514,23 +9475,48 @@ "description": "Timestamp of the ticker feed snapshot" } }, - "additionalProperties": false - }, - "OptionPricingSchema": { + "type": "object", "required": [ - "ask_iv", - "bid_iv", - "delta", - "discount_factor", - "forward_price", - "gamma", - "iv", + "amount_step", + "base_asset_address", + "base_asset_sub_id", + "base_currency", + "base_fee", + "best_ask_amount", + "best_ask_price", + "best_bid_amount", + "best_bid_price", + "erc20_details", + "fifo_min_allocation", + "five_percent_ask_depth", + "five_percent_bid_depth", + "index_price", + "instrument_name", + "instrument_type", + "is_active", + "maker_fee_rate", "mark_price", - "rho", - "theta", - "vega" + "max_price", + "maximum_amount", + "min_price", + "minimum_amount", + "open_interest", + "option_details", + "option_pricing", + "perp_details", + "pro_rata_amount_step", + "pro_rata_fraction", + "quote_currency", + "scheduled_activation", + "scheduled_deactivation", + "stats", + "taker_fee_rate", + "tick_size", + "timestamp" ], - "type": "object", + "additionalProperties": false + }, + "OptionPricingSchema": { "properties": { "ask_iv": { "title": "ask_iv", @@ -9599,19 +9585,23 @@ "description": "Vega of the option" } }, + "type": "object", + "required": [ + "ask_iv", + "bid_iv", + "delta", + "discount_factor", + "forward_price", + "gamma", + "iv", + "mark_price", + "rho", + "theta", + "vega" + ], "additionalProperties": false }, "AggregateTradingStatsSchema": { - "required": [ - "contract_volume", - "high", - "low", - "num_trades", - "open_interest", - "percent_change", - "usd_change" - ], - "type": "object", "properties": { "contract_volume": { "title": "contract_volume", @@ -9656,21 +9646,19 @@ "description": "24-hour price change in USD." } }, + "type": "object", + "required": [ + "contract_volume", + "high", + "low", + "num_trades", + "open_interest", + "percent_change", + "usd_change" + ], "additionalProperties": false }, "PrivateReplaceQuoteParamsSchema": { - "required": [ - "direction", - "legs", - "max_fee", - "nonce", - "rfq_id", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id" - ], - "type": "object", "properties": { "direction": { "title": "direction", @@ -9754,14 +9742,21 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "direction", + "legs", + "max_fee", + "nonce", + "rfq_id", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PrivateReplaceQuoteResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -9779,15 +9774,14 @@ "$ref": "#/components/schemas/PrivateReplaceQuoteResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateReplaceQuoteResultSchema": { - "required": [ - "cancelled_quote", - "create_quote_error", - "quote" - ], - "type": "object", "properties": { "cancelled_quote": { "$ref": "#/components/schemas/QuoteResultSchema" @@ -9801,35 +9795,15 @@ "nullable": true } }, + "type": "object", + "required": [ + "cancelled_quote", + "create_quote_error", + "quote" + ], "additionalProperties": false }, "QuoteResultSchema": { - "required": [ - "cancel_reason", - "creation_timestamp", - "direction", - "fee", - "fill_pct", - "is_transfer", - "label", - "last_update_timestamp", - "legs", - "legs_hash", - "liquidity_role", - "max_fee", - "mmp", - "nonce", - "quote_id", - "rfq_id", - "signature", - "signature_expiry_sec", - "signer", - "status", - "subaccount_id", - "tx_hash", - "tx_status" - ], - "type": "object", "properties": { "cancel_reason": { "title": "cancel_reason", @@ -9993,14 +9967,35 @@ "nullable": true } }, + "type": "object", + "required": [ + "cancel_reason", + "creation_timestamp", + "direction", + "fee", + "fill_pct", + "is_transfer", + "label", + "last_update_timestamp", + "legs", + "legs_hash", + "liquidity_role", + "max_fee", + "mmp", + "nonce", + "quote_id", + "rfq_id", + "signature", + "signature_expiry_sec", + "signer", + "status", + "subaccount_id", + "tx_hash", + "tx_status" + ], "additionalProperties": false }, "RPCErrorFormatSchema": { - "required": [ - "code", - "message" - ], - "type": "object", "properties": { "code": { "title": "code", @@ -10017,13 +10012,14 @@ "type": "string" } }, + "type": "object", + "required": [ + "code", + "message" + ], "additionalProperties": false }, "PrivateGetAllPortfoliosParamsSchema": { - "required": [ - "wallet" - ], - "type": "object", "properties": { "wallet": { "title": "wallet", @@ -10031,14 +10027,13 @@ "description": "Wallet address" } }, + "type": "object", + "required": [ + "wallet" + ], "additionalProperties": false }, "PrivateGetAllPortfoliosResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -10061,31 +10056,14 @@ } } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetSubaccountResultSchema": { - "required": [ - "collaterals", - "collaterals_initial_margin", - "collaterals_maintenance_margin", - "collaterals_value", - "currency", - "initial_margin", - "is_under_liquidation", - "label", - "maintenance_margin", - "margin_type", - "open_orders", - "open_orders_margin", - "positions", - "positions_initial_margin", - "positions_maintenance_margin", - "positions_value", - "projected_margin_change", - "subaccount_id", - "subaccount_value" - ], - "type": "object", "properties": { "collaterals": { "title": "collaterals", @@ -10208,39 +10186,31 @@ "description": "Total mark-to-market value of all positions and collaterals" } }, - "additionalProperties": false - }, - "PositionResponseSchema": { + "type": "object", "required": [ - "amount", - "amount_step", - "average_price", - "average_price_excl_fees", - "creation_timestamp", - "cumulative_funding", - "delta", - "gamma", - "index_price", + "collaterals", + "collaterals_initial_margin", + "collaterals_maintenance_margin", + "collaterals_value", + "currency", "initial_margin", - "instrument_name", - "instrument_type", - "leverage", - "liquidation_price", + "is_under_liquidation", + "label", "maintenance_margin", - "mark_price", - "mark_value", - "net_settlements", + "margin_type", + "open_orders", "open_orders_margin", - "pending_funding", - "realized_pnl", - "realized_pnl_excl_fees", - "theta", - "total_fees", - "unrealized_pnl", - "unrealized_pnl_excl_fees", - "vega" + "positions", + "positions_initial_margin", + "positions_maintenance_margin", + "positions_value", + "projected_margin_change", + "subaccount_id", + "subaccount_value" ], - "type": "object", + "additionalProperties": false + }, + "PositionResponseSchema": { "properties": { "amount": { "title": "amount", @@ -10411,13 +10381,39 @@ "description": "Asset vega (zero for non-options)" } }, + "type": "object", + "required": [ + "amount", + "amount_step", + "average_price", + "average_price_excl_fees", + "creation_timestamp", + "cumulative_funding", + "delta", + "gamma", + "index_price", + "initial_margin", + "instrument_name", + "instrument_type", + "leverage", + "liquidation_price", + "maintenance_margin", + "mark_price", + "mark_value", + "net_settlements", + "open_orders_margin", + "pending_funding", + "realized_pnl", + "realized_pnl_excl_fees", + "theta", + "total_fees", + "unrealized_pnl", + "unrealized_pnl_excl_fees", + "vega" + ], "additionalProperties": false }, "PrivateSessionKeysParamsSchema": { - "required": [ - "wallet" - ], - "type": "object", "properties": { "wallet": { "title": "wallet", @@ -10425,14 +10421,13 @@ "description": "Ethereum wallet address of account" } }, + "type": "object", + "required": [ + "wallet" + ], "additionalProperties": false }, "PrivateSessionKeysResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -10450,13 +10445,14 @@ "$ref": "#/components/schemas/PrivateSessionKeysResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateSessionKeysResultSchema": { - "required": [ - "public_session_keys" - ], - "type": "object", "properties": { "public_session_keys": { "title": "public_session_keys", @@ -10467,18 +10463,13 @@ } } }, + "type": "object", + "required": [ + "public_session_keys" + ], "additionalProperties": false }, "SessionKeyResponseSchema": { - "required": [ - "expiry_sec", - "ip_whitelist", - "label", - "public_session_key", - "registered_sec", - "scope" - ], - "type": "object", "properties": { "expiry_sec": { "title": "expiry_sec", @@ -10515,17 +10506,18 @@ "description": "Session key permission level scope" } }, - "additionalProperties": false - }, - "PrivateExpiredAndCancelledHistoryParamsSchema": { + "type": "object", "required": [ - "end_timestamp", - "expiry", - "start_timestamp", - "subaccount_id", - "wallet" + "expiry_sec", + "ip_whitelist", + "label", + "public_session_key", + "registered_sec", + "scope" ], - "type": "object", + "additionalProperties": false + }, + "PrivateExpiredAndCancelledHistoryParamsSchema": { "properties": { "end_timestamp": { "title": "end_timestamp", @@ -10553,14 +10545,17 @@ "description": "Wallet to download data for" } }, + "type": "object", + "required": [ + "end_timestamp", + "expiry", + "start_timestamp", + "subaccount_id", + "wallet" + ], "additionalProperties": false }, "PrivateExpiredAndCancelledHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -10578,13 +10573,14 @@ "$ref": "#/components/schemas/PrivateExpiredAndCancelledHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateExpiredAndCancelledHistoryResultSchema": { - "required": [ - "presigned_urls" - ], - "type": "object", "properties": { "presigned_urls": { "title": "presigned_urls", @@ -10596,13 +10592,13 @@ } } }, + "type": "object", + "required": [ + "presigned_urls" + ], "additionalProperties": false }, "PrivateGetQuotesParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "from_timestamp": { "title": "from_timestamp", @@ -10663,14 +10659,13 @@ "description": "Latest timestamp to filter by (in ms since Unix epoch). If not provied, defaults to returning all data up to current time." } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetQuotesResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -10688,14 +10683,14 @@ "$ref": "#/components/schemas/PrivateGetQuotesResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetQuotesResultSchema": { - "required": [ - "pagination", - "quotes" - ], - "type": "object", "properties": { "pagination": { "$ref": "#/components/schemas/PaginationInfoSchema" @@ -10709,15 +10704,14 @@ } } }, + "type": "object", + "required": [ + "pagination", + "quotes" + ], "additionalProperties": false }, "PublicGetVaultShareParamsSchema": { - "required": [ - "from_timestamp_sec", - "to_timestamp_sec", - "vault_name" - ], - "type": "object", "properties": { "from_timestamp_sec": { "title": "from_timestamp_sec", @@ -10747,14 +10741,15 @@ "description": "Name of the vault" } }, + "type": "object", + "required": [ + "from_timestamp_sec", + "to_timestamp_sec", + "vault_name" + ], "additionalProperties": false }, "PublicGetVaultShareResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -10772,14 +10767,14 @@ "$ref": "#/components/schemas/PublicGetVaultShareResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetVaultShareResultSchema": { - "required": [ - "pagination", - "vault_shares" - ], - "type": "object", "properties": { "pagination": { "$ref": "#/components/schemas/PaginationInfoSchema" @@ -10793,17 +10788,14 @@ } } }, + "type": "object", + "required": [ + "pagination", + "vault_shares" + ], "additionalProperties": false }, "VaultShareResponseSchema": { - "required": [ - "base_value", - "block_number", - "block_timestamp", - "underlying_value", - "usd_value" - ], - "type": "object", "properties": { "base_value": { "title": "base_value", @@ -10836,17 +10828,17 @@ "description": "The value of the vault's token against USD" } }, + "type": "object", + "required": [ + "base_value", + "block_number", + "block_timestamp", + "underlying_value", + "usd_value" + ], "additionalProperties": false }, "PublicRegisterSessionKeyParamsSchema": { - "required": [ - "expiry_sec", - "label", - "public_session_key", - "signed_raw_tx", - "wallet" - ], - "type": "object", "properties": { "expiry_sec": { "title": "expiry_sec", @@ -10874,14 +10866,17 @@ "description": "Ethereum wallet address of account" } }, + "type": "object", + "required": [ + "expiry_sec", + "label", + "public_session_key", + "signed_raw_tx", + "wallet" + ], "additionalProperties": false }, "PublicRegisterSessionKeyResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -10899,15 +10894,14 @@ "$ref": "#/components/schemas/PublicRegisterSessionKeyResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicRegisterSessionKeyResultSchema": { - "required": [ - "label", - "public_session_key", - "transaction_id" - ], - "type": "object", "properties": { "label": { "title": "label", @@ -10926,15 +10920,15 @@ "description": "ID to lookup status of transaction" } }, - "additionalProperties": false - }, - "PrivateRegisterScopedSessionKeyParamsSchema": { + "type": "object", "required": [ - "expiry_sec", + "label", "public_session_key", - "wallet" + "transaction_id" ], - "type": "object", + "additionalProperties": false + }, + "PrivateRegisterScopedSessionKeyParamsSchema": { "properties": { "expiry_sec": { "title": "expiry_sec", @@ -10988,14 +10982,15 @@ "description": "Ethereum wallet address of account" } }, + "type": "object", + "required": [ + "expiry_sec", + "public_session_key", + "wallet" + ], "additionalProperties": false }, "PrivateRegisterScopedSessionKeyResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -11013,18 +11008,14 @@ "$ref": "#/components/schemas/PrivateRegisterScopedSessionKeyResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateRegisterScopedSessionKeyResultSchema": { - "required": [ - "expiry_sec", - "ip_whitelist", - "label", - "public_session_key", - "scope", - "transaction_id" - ], - "type": "object", "properties": { "expiry_sec": { "title": "expiry_sec", @@ -11073,13 +11064,18 @@ "nullable": true } }, + "type": "object", + "required": [ + "expiry_sec", + "ip_whitelist", + "label", + "public_session_key", + "scope", + "transaction_id" + ], "additionalProperties": false }, "PrivateGetMmpConfigParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -11094,14 +11090,13 @@ "description": "Subaccount_id for which to get the config" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetMmpConfigResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -11124,18 +11119,14 @@ } } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "MMPConfigResultSchema": { - "required": [ - "currency", - "is_frozen", - "mmp_frozen_time", - "mmp_interval", - "mmp_unfreeze_time", - "subaccount_id" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -11182,22 +11173,18 @@ "description": "Subaccount_id for which to set the config" } }, - "additionalProperties": false - }, - "PublicExecuteQuoteDebugParamsSchema": { + "type": "object", "required": [ - "direction", - "legs", - "max_fee", - "nonce", - "quote_id", - "rfq_id", - "signature", - "signature_expiry_sec", - "signer", + "currency", + "is_frozen", + "mmp_frozen_time", + "mmp_interval", + "mmp_unfreeze_time", "subaccount_id" ], - "type": "object", + "additionalProperties": false + }, + "PublicExecuteQuoteDebugParamsSchema": { "properties": { "direction": { "title": "direction", @@ -11272,16 +11259,24 @@ "description": "Subaccount ID" } }, - "additionalProperties": false - }, - "PublicExecuteQuoteDebugResponseSchema": { - "required": [ - "id", - "result" - ], "type": "object", - "properties": { - "id": { + "required": [ + "direction", + "legs", + "max_fee", + "nonce", + "quote_id", + "rfq_id", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], + "additionalProperties": false + }, + "PublicExecuteQuoteDebugResponseSchema": { + "properties": { + "id": { "oneOf": [ { "title": "", @@ -11297,18 +11292,14 @@ "$ref": "#/components/schemas/PublicExecuteQuoteDebugResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicExecuteQuoteDebugResultSchema": { - "required": [ - "action_hash", - "encoded_data", - "encoded_data_hashed", - "encoded_legs", - "legs_hash", - "typed_data_hash" - ], - "type": "object", "properties": { "action_hash": { "title": "action_hash", @@ -11341,14 +11332,18 @@ "description": "EIP 712 typed data hash" } }, + "type": "object", + "required": [ + "action_hash", + "encoded_data", + "encoded_data_hashed", + "encoded_legs", + "legs_hash", + "typed_data_hash" + ], "additionalProperties": false }, "PrivateUpdateNotificationsParamsSchema": { - "required": [ - "notification_ids", - "subaccount_id" - ], - "type": "object", "properties": { "notification_ids": { "title": "notification_ids", @@ -11376,14 +11371,14 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "notification_ids", + "subaccount_id" + ], "additionalProperties": false }, "PrivateUpdateNotificationsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -11401,13 +11396,14 @@ "$ref": "#/components/schemas/PrivateUpdateNotificationsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateUpdateNotificationsResultSchema": { - "required": [ - "updated_count" - ], - "type": "object", "properties": { "updated_count": { "title": "updated_count", @@ -11415,16 +11411,13 @@ "description": "Number of notifications marked as seen" } }, + "type": "object", + "required": [ + "updated_count" + ], "additionalProperties": false }, "PrivateGetSubaccountValueHistoryParamsSchema": { - "required": [ - "end_timestamp", - "period", - "start_timestamp", - "subaccount_id" - ], - "type": "object", "properties": { "end_timestamp": { "title": "end_timestamp", @@ -11447,14 +11440,16 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "end_timestamp", + "period", + "start_timestamp", + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetSubaccountValueHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -11472,14 +11467,14 @@ "$ref": "#/components/schemas/PrivateGetSubaccountValueHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetSubaccountValueHistoryResultSchema": { - "required": [ - "subaccount_id", - "subaccount_value_history" - ], - "type": "object", "properties": { "subaccount_id": { "title": "subaccount_id", @@ -11495,14 +11490,14 @@ } } }, + "type": "object", + "required": [ + "subaccount_id", + "subaccount_value_history" + ], "additionalProperties": false }, "SubAccountValueHistoryResponseSchema": { - "required": [ - "subaccount_value", - "timestamp" - ], - "type": "object", "properties": { "subaccount_value": { "title": "subaccount_value", @@ -11516,16 +11511,14 @@ "description": "Timestamp of when the subaccount value was recorded into the database" } }, + "type": "object", + "required": [ + "subaccount_value", + "timestamp" + ], "additionalProperties": false }, "PublicGetSpotFeedHistoryCandlesParamsSchema": { - "required": [ - "currency", - "end_timestamp", - "period", - "start_timestamp" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -11559,14 +11552,16 @@ "description": "Start timestamp" } }, + "type": "object", + "required": [ + "currency", + "end_timestamp", + "period", + "start_timestamp" + ], "additionalProperties": false }, "PublicGetSpotFeedHistoryCandlesResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -11584,14 +11579,14 @@ "$ref": "#/components/schemas/PublicGetSpotFeedHistoryCandlesResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetSpotFeedHistoryCandlesResultSchema": { - "required": [ - "currency", - "spot_feed_history" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -11607,19 +11602,14 @@ } } }, + "type": "object", + "required": [ + "currency", + "spot_feed_history" + ], "additionalProperties": false }, "SpotFeedHistoryCandlesResponseSchema": { - "required": [ - "close_price", - "high_price", - "low_price", - "open_price", - "price", - "timestamp", - "timestamp_bucket" - ], - "type": "object", "properties": { "close_price": { "title": "close_price", @@ -11662,14 +11652,19 @@ "description": "Timestamp bucket; this value is regularly spaced out with `period` seconds between data points, missing values are forward-filled from earlier data where possible, if no earlier data is available, values are back-filled from the first observed data point" } }, + "type": "object", + "required": [ + "close_price", + "high_price", + "low_price", + "open_price", + "price", + "timestamp", + "timestamp_bucket" + ], "additionalProperties": false }, "PrivateRfqGetBestQuoteParamsSchema": { - "required": [ - "legs", - "subaccount_id" - ], - "type": "object", "properties": { "counterparties": { "title": "counterparties", @@ -11743,14 +11738,14 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "legs", + "subaccount_id" + ], "additionalProperties": false }, "PrivateRfqGetBestQuoteResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -11768,28 +11763,14 @@ "$ref": "#/components/schemas/PrivateRfqGetBestQuoteResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateRfqGetBestQuoteResultSchema": { - "required": [ - "best_quote", - "direction", - "down_liquidation_price", - "estimated_fee", - "estimated_realized_pnl", - "estimated_realized_pnl_excl_fees", - "estimated_total_cost", - "filled_pct", - "invalid_reason", - "is_valid", - "orderbook_total_cost", - "post_initial_margin", - "post_liquidation_price", - "pre_initial_margin", - "suggested_max_fee", - "up_liquidation_price" - ], - "type": "object", "properties": { "best_quote": { "$ref": "#/components/schemas/QuoteResultPublicSchema", @@ -11906,16 +11887,28 @@ "nullable": true } }, + "type": "object", + "required": [ + "best_quote", + "direction", + "down_liquidation_price", + "estimated_fee", + "estimated_realized_pnl", + "estimated_realized_pnl_excl_fees", + "estimated_total_cost", + "filled_pct", + "invalid_reason", + "is_valid", + "orderbook_total_cost", + "post_initial_margin", + "post_liquidation_price", + "pre_initial_margin", + "suggested_max_fee", + "up_liquidation_price" + ], "additionalProperties": false }, "PublicGetSpotFeedHistoryParamsSchema": { - "required": [ - "currency", - "end_timestamp", - "period", - "start_timestamp" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -11938,14 +11931,16 @@ "description": "Start timestamp" } }, + "type": "object", + "required": [ + "currency", + "end_timestamp", + "period", + "start_timestamp" + ], "additionalProperties": false }, "PublicGetSpotFeedHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -11963,14 +11958,14 @@ "$ref": "#/components/schemas/PublicGetSpotFeedHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetSpotFeedHistoryResultSchema": { - "required": [ - "currency", - "spot_feed_history" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -11986,15 +11981,14 @@ } } }, - "additionalProperties": false - }, - "SpotFeedHistoryResponseSchema": { + "type": "object", "required": [ - "price", - "timestamp", - "timestamp_bucket" + "currency", + "spot_feed_history" ], - "type": "object", + "additionalProperties": false + }, + "SpotFeedHistoryResponseSchema": { "properties": { "price": { "title": "price", @@ -12013,22 +12007,15 @@ "description": "Timestamp bucket; this value is regularly spaced out with `period` seconds between data points, missing values are forward-filled from earlier data where possible, if no earlier data is available, values are back-filled from the first observed data point" } }, + "type": "object", + "required": [ + "price", + "timestamp", + "timestamp_bucket" + ], "additionalProperties": false }, "PrivateLiquidateParamsSchema": { - "required": [ - "cash_transfer", - "last_seen_trade_id", - "liquidated_subaccount_id", - "nonce", - "percent_bid", - "price_limit", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id" - ], - "type": "object", "properties": { "cash_transfer": { "title": "cash_transfer", @@ -12084,14 +12071,22 @@ "description": "Subaccount ID owned by wallet, that will be doing the bidding." } }, + "type": "object", + "required": [ + "cash_transfer", + "last_seen_trade_id", + "liquidated_subaccount_id", + "nonce", + "percent_bid", + "price_limit", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PrivateLiquidateResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -12109,16 +12104,14 @@ "$ref": "#/components/schemas/PrivateLiquidateResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateLiquidateResultSchema": { - "required": [ - "estimated_bid_price", - "estimated_discount_pnl", - "estimated_percent_bid", - "transaction_id" - ], - "type": "object", "properties": { "estimated_bid_price": { "title": "estimated_bid_price", @@ -12145,13 +12138,16 @@ "description": "The transaction id of the related settlement transaction" } }, + "type": "object", + "required": [ + "estimated_bid_price", + "estimated_discount_pnl", + "estimated_percent_bid", + "transaction_id" + ], "additionalProperties": false }, "PrivateGetRfqsParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "from_timestamp": { "title": "from_timestamp", @@ -12204,14 +12200,13 @@ "description": "Latest `last_update_timestamp` to filter by (in ms since Unix epoch). If not provied, defaults to returning all data up to current time." } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetRfqsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -12229,14 +12224,14 @@ "$ref": "#/components/schemas/PrivateGetRfqsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetRfqsResultSchema": { - "required": [ - "pagination", - "rfqs" - ], - "type": "object", "properties": { "pagination": { "$ref": "#/components/schemas/PaginationInfoSchema" @@ -12250,32 +12245,14 @@ } } }, + "type": "object", + "required": [ + "pagination", + "rfqs" + ], "additionalProperties": false }, "RFQResultSchema": { - "required": [ - "ask_total_cost", - "bid_total_cost", - "cancel_reason", - "counterparties", - "creation_timestamp", - "filled_direction", - "filled_pct", - "label", - "last_update_timestamp", - "legs", - "mark_total_cost", - "max_total_cost", - "min_total_cost", - "partial_fill_step", - "rfq_id", - "status", - "subaccount_id", - "total_cost", - "valid_until", - "wallet" - ], - "type": "object", "properties": { "ask_total_cost": { "title": "ask_total_cost", @@ -12432,13 +12409,32 @@ "description": "Wallet address of the RFQ sender" } }, + "type": "object", + "required": [ + "ask_total_cost", + "bid_total_cost", + "cancel_reason", + "counterparties", + "creation_timestamp", + "filled_direction", + "filled_pct", + "label", + "last_update_timestamp", + "legs", + "mark_total_cost", + "max_total_cost", + "min_total_cost", + "partial_fill_step", + "rfq_id", + "status", + "subaccount_id", + "total_cost", + "valid_until", + "wallet" + ], "additionalProperties": false }, "PrivateGetDepositHistoryParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "end_timestamp": { "title": "end_timestamp", @@ -12458,14 +12454,13 @@ "description": "Subaccount id" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetDepositHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -12483,13 +12478,14 @@ "$ref": "#/components/schemas/PrivateGetDepositHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetDepositHistoryResultSchema": { - "required": [ - "events" - ], - "type": "object", "properties": { "events": { "title": "events", @@ -12500,19 +12496,13 @@ } } }, + "type": "object", + "required": [ + "events" + ], "additionalProperties": false }, "DepositSchema": { - "required": [ - "amount", - "asset", - "error_log", - "timestamp", - "transaction_id", - "tx_hash", - "tx_status" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -12563,13 +12553,19 @@ "description": "Status of the transaction that deposited the funds" } }, + "type": "object", + "required": [ + "amount", + "asset", + "error_log", + "timestamp", + "transaction_id", + "tx_hash", + "tx_status" + ], "additionalProperties": false }, "PrivateGetSubaccountParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "subaccount_id": { "title": "subaccount_id", @@ -12577,14 +12573,13 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetSubaccountResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -12602,13 +12597,14 @@ "$ref": "#/components/schemas/PrivateGetSubaccountResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetOrderHistoryParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "page": { "title": "page", @@ -12628,14 +12624,13 @@ "description": "Subaccount_id for which to get order history" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetOrderHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -12653,15 +12648,14 @@ "$ref": "#/components/schemas/PrivateGetOrderHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetOrderHistoryResultSchema": { - "required": [ - "orders", - "pagination", - "subaccount_id" - ], - "type": "object", "properties": { "orders": { "title": "orders", @@ -12680,15 +12674,15 @@ "description": "Subaccount_id for which to get open orders" } }, + "type": "object", + "required": [ + "orders", + "pagination", + "subaccount_id" + ], "additionalProperties": false }, "PublicGetMarginParamsSchema": { - "required": [ - "margin_type", - "simulated_collaterals", - "simulated_positions" - ], - "type": "object", "properties": { "margin_type": { "title": "margin_type", @@ -12744,14 +12738,15 @@ } } }, + "type": "object", + "required": [ + "margin_type", + "simulated_collaterals", + "simulated_positions" + ], "additionalProperties": false }, "SimulatedCollateralSchema": { - "required": [ - "amount", - "asset_name" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -12765,14 +12760,14 @@ "description": "Collateral ERC20 asset name (e.g. ETH, USDC, WSTETH)" } }, + "type": "object", + "required": [ + "amount", + "asset_name" + ], "additionalProperties": false }, "SimulatedPositionSchema": { - "required": [ - "amount", - "instrument_name" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -12794,14 +12789,14 @@ "description": "Instrument name" } }, + "type": "object", + "required": [ + "amount", + "instrument_name" + ], "additionalProperties": false }, "PublicGetMarginResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -12819,18 +12814,14 @@ "$ref": "#/components/schemas/PublicGetMarginResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetMarginResultSchema": { - "required": [ - "is_valid_trade", - "post_initial_margin", - "post_maintenance_margin", - "pre_initial_margin", - "pre_maintenance_margin", - "subaccount_id" - ], - "type": "object", "properties": { "is_valid_trade": { "title": "is_valid_trade", @@ -12867,10 +12858,18 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "is_valid_trade", + "post_initial_margin", + "post_maintenance_margin", + "pre_initial_margin", + "pre_maintenance_margin", + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetNotificationsParamsSchema": { - "type": "object", "properties": { "page": { "title": "page", @@ -12933,14 +12932,10 @@ "nullable": true } }, + "type": "object", "additionalProperties": false }, "PrivateGetNotificationsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -12958,14 +12953,14 @@ "$ref": "#/components/schemas/PrivateGetNotificationsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetNotificationsResultSchema": { - "required": [ - "notifications", - "pagination" - ], - "type": "object", "properties": { "notifications": { "title": "notifications", @@ -12979,18 +12974,14 @@ "$ref": "#/components/schemas/PaginationInfoSchema" } }, + "type": "object", + "required": [ + "notifications", + "pagination" + ], "additionalProperties": false }, "NotificationResponseSchema": { - "required": [ - "event", - "event_details", - "id", - "status", - "subaccount_id", - "timestamp" - ], - "type": "object", "properties": { "event": { "title": "event", @@ -13038,13 +13029,18 @@ "nullable": true } }, + "type": "object", + "required": [ + "event", + "event_details", + "id", + "status", + "subaccount_id", + "timestamp" + ], "additionalProperties": false }, "PrivateGetFundingHistoryParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "end_timestamp": { "title": "end_timestamp", @@ -13083,14 +13079,13 @@ "description": "Subaccount id" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetFundingHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -13108,14 +13103,14 @@ "$ref": "#/components/schemas/PrivateGetFundingHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetFundingHistoryResultSchema": { - "required": [ - "events", - "pagination" - ], - "type": "object", "properties": { "events": { "title": "events", @@ -13129,16 +13124,14 @@ "$ref": "#/components/schemas/PaginationInfoSchema" } }, + "type": "object", + "required": [ + "events", + "pagination" + ], "additionalProperties": false }, "FundingPaymentSchema": { - "required": [ - "funding", - "instrument_name", - "pnl", - "timestamp" - ], - "type": "object", "properties": { "funding": { "title": "funding", @@ -13163,13 +13156,16 @@ "description": "Timestamp of the funding payment (in ms since UNIX epoch)" } }, + "type": "object", + "required": [ + "funding", + "instrument_name", + "pnl", + "timestamp" + ], "additionalProperties": false }, "PrivateGetWithdrawalHistoryParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "end_timestamp": { "title": "end_timestamp", @@ -13189,14 +13185,13 @@ "description": "Subaccount id" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetWithdrawalHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -13214,13 +13209,14 @@ "$ref": "#/components/schemas/PrivateGetWithdrawalHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetWithdrawalHistoryResultSchema": { - "required": [ - "events" - ], - "type": "object", "properties": { "events": { "title": "events", @@ -13231,18 +13227,13 @@ } } }, + "type": "object", + "required": [ + "events" + ], "additionalProperties": false }, "WithdrawalSchema": { - "required": [ - "amount", - "asset", - "error_log", - "timestamp", - "tx_hash", - "tx_status" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -13287,22 +13278,18 @@ "description": "Status of the transaction that deposited the funds" } }, - "additionalProperties": false - }, - "PrivateOrderDebugParamsSchema": { + "type": "object", "required": [ "amount", - "direction", - "instrument_name", - "limit_price", - "max_fee", - "nonce", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id" + "asset", + "error_log", + "timestamp", + "tx_hash", + "tx_status" ], - "type": "object", + "additionalProperties": false + }, + "PrivateOrderDebugParamsSchema": { "properties": { "amount": { "title": "amount", @@ -13451,14 +13438,22 @@ "nullable": true } }, + "type": "object", + "required": [ + "amount", + "direction", + "instrument_name", + "limit_price", + "max_fee", + "nonce", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PrivateOrderDebugResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -13476,17 +13471,14 @@ "$ref": "#/components/schemas/PrivateOrderDebugResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateOrderDebugResultSchema": { - "required": [ - "action_hash", - "encoded_data", - "encoded_data_hashed", - "raw_data", - "typed_data_hash" - ], - "type": "object", "properties": { "action_hash": { "title": "action_hash", @@ -13512,21 +13504,17 @@ "description": "EIP 712 typed data hash" } }, + "type": "object", + "required": [ + "action_hash", + "encoded_data", + "encoded_data_hashed", + "raw_data", + "typed_data_hash" + ], "additionalProperties": false }, "SignedTradeOrderSchema": { - "required": [ - "data", - "expiry", - "is_atomic_signing", - "module", - "nonce", - "owner", - "signature", - "signer", - "subaccount_id" - ], - "type": "object", "properties": { "data": { "$ref": "#/components/schemas/TradeModuleDataSchema" @@ -13564,20 +13552,21 @@ "type": "integer" } }, + "type": "object", + "required": [ + "data", + "expiry", + "is_atomic_signing", + "module", + "nonce", + "owner", + "signature", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "TradeModuleDataSchema": { - "required": [ - "asset", - "desired_amount", - "is_bid", - "limit_price", - "recipient_id", - "sub_id", - "trade_id", - "worst_fee" - ], - "type": "object", "properties": { "asset": { "title": "asset", @@ -13615,22 +13604,20 @@ "format": "decimal" } }, - "additionalProperties": false - }, - "PrivateReplaceParamsSchema": { + "type": "object", "required": [ - "amount", - "direction", - "instrument_name", + "asset", + "desired_amount", + "is_bid", "limit_price", - "max_fee", - "nonce", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id" + "recipient_id", + "sub_id", + "trade_id", + "worst_fee" ], - "type": "object", + "additionalProperties": false + }, + "PrivateReplaceParamsSchema": { "properties": { "amount": { "title": "amount", @@ -13802,14 +13789,22 @@ "nullable": true } }, + "type": "object", + "required": [ + "amount", + "direction", + "instrument_name", + "limit_price", + "max_fee", + "nonce", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PrivateReplaceResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -13827,13 +13822,14 @@ "$ref": "#/components/schemas/PrivateReplaceResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateReplaceResultSchema": { - "required": [ - "cancelled_order" - ], - "type": "object", "properties": { "cancelled_order": { "$ref": "#/components/schemas/OrderResponseSchema" @@ -13857,14 +13853,13 @@ "nullable": true } }, + "type": "object", + "required": [ + "cancelled_order" + ], "additionalProperties": false }, "PublicGetTickersParamsSchema": { - "required": [ - "currency", - "instrument_type" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -13889,14 +13884,14 @@ "description": "`erc20`, `option`, or `perp`" } }, + "type": "object", + "required": [ + "currency", + "instrument_type" + ], "additionalProperties": false }, "PublicGetTickersResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -13914,13 +13909,14 @@ "$ref": "#/components/schemas/PublicGetTickersResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetTickersResultSchema": { - "required": [ - "tickers" - ], - "type": "object", "properties": { "tickers": { "title": "tickers", @@ -13931,24 +13927,13 @@ } } }, + "type": "object", + "required": [ + "tickers" + ], "additionalProperties": false }, "TickerSlimSchema": { - "required": [ - "A", - "B", - "I", - "M", - "a", - "b", - "f", - "maxp", - "minp", - "option_pricing", - "stats", - "t" - ], - "type": "object", "properties": { "A": { "title": "A", @@ -14019,23 +14004,24 @@ "description": "Creation timestamp of the snapshot in milliseconds" } }, - "additionalProperties": false - }, - "OptionPricingSlimSchema": { + "type": "object", "required": [ - "ai", - "bi", - "d", - "df", + "A", + "B", + "I", + "M", + "a", + "b", "f", - "g", - "i", - "m", - "r", - "t", - "v" + "maxp", + "minp", + "option_pricing", + "stats", + "t" ], - "type": "object", + "additionalProperties": false + }, + "OptionPricingSlimSchema": { "properties": { "ai": { "title": "ai", @@ -14104,20 +14090,23 @@ "description": "Vega of the option" } }, - "additionalProperties": false - }, - "AggregateTradingStatsSlimSchema": { + "type": "object", "required": [ - "c", - "h", - "l", - "n", - "oi", - "p", - "pr", + "ai", + "bi", + "d", + "df", + "f", + "g", + "i", + "m", + "r", + "t", "v" ], - "type": "object", + "additionalProperties": false + }, + "AggregateTradingStatsSlimSchema": { "properties": { "c": { "title": "c", @@ -14167,19 +14156,20 @@ "description": "Notional volume traded during last 24 hours" } }, + "type": "object", + "required": [ + "c", + "h", + "l", + "n", + "oi", + "p", + "pr", + "v" + ], "additionalProperties": false }, "PrivateDepositParamsSchema": { - "required": [ - "amount", - "asset_name", - "nonce", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -14224,14 +14214,19 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "amount", + "asset_name", + "nonce", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PrivateDepositResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -14249,14 +14244,14 @@ "$ref": "#/components/schemas/PrivateDepositResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateDepositResultSchema": { - "required": [ - "status", - "transaction_id" - ], - "type": "object", "properties": { "status": { "title": "status", @@ -14270,15 +14265,14 @@ "description": "Transaction id of the deposit" } }, + "type": "object", + "required": [ + "status", + "transaction_id" + ], "additionalProperties": false }, "PrivateCancelParamsSchema": { - "required": [ - "instrument_name", - "order_id", - "subaccount_id" - ], - "type": "object", "properties": { "instrument_name": { "title": "instrument_name", @@ -14294,14 +14288,15 @@ "type": "integer" } }, + "type": "object", + "required": [ + "instrument_name", + "order_id", + "subaccount_id" + ], "additionalProperties": false }, "PrivateCancelResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -14319,36 +14314,14 @@ "$ref": "#/components/schemas/PrivateCancelResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateCancelResultSchema": { - "required": [ - "amount", - "average_price", - "cancel_reason", - "creation_timestamp", - "direction", - "filled_amount", - "instrument_name", - "is_transfer", - "label", - "last_update_timestamp", - "limit_price", - "max_fee", - "mmp", - "nonce", - "order_fee", - "order_id", - "order_status", - "order_type", - "quote_id", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id", - "time_in_force" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -14560,19 +14533,36 @@ "nullable": true } }, - "additionalProperties": false - }, - "PrivateWithdrawParamsSchema": { + "type": "object", "required": [ "amount", - "asset_name", - "nonce", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id" + "average_price", + "cancel_reason", + "creation_timestamp", + "direction", + "filled_amount", + "instrument_name", + "is_transfer", + "label", + "last_update_timestamp", + "limit_price", + "max_fee", + "mmp", + "nonce", + "order_fee", + "order_id", + "order_status", + "order_type", + "quote_id", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id", + "time_in_force" ], - "type": "object", + "additionalProperties": false + }, + "PrivateWithdrawParamsSchema": { "properties": { "amount": { "title": "amount", @@ -14617,14 +14607,19 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "amount", + "asset_name", + "nonce", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PrivateWithdrawResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -14642,14 +14637,14 @@ "$ref": "#/components/schemas/PrivateWithdrawResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateWithdrawResultSchema": { - "required": [ - "status", - "transaction_id" - ], - "type": "object", "properties": { "status": { "title": "status", @@ -14663,13 +14658,14 @@ "description": "Transaction id of the withdrawal" } }, + "type": "object", + "required": [ + "status", + "transaction_id" + ], "additionalProperties": false }, "PrivateCancelBatchRfqsParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "label": { "title": "label", @@ -14699,14 +14695,13 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateCancelBatchRfqsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -14724,13 +14719,14 @@ "$ref": "#/components/schemas/PrivateCancelBatchRfqsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateCancelBatchRfqsResultSchema": { - "required": [ - "cancelled_ids" - ], - "type": "object", "properties": { "cancelled_ids": { "title": "cancelled_ids", @@ -14743,18 +14739,13 @@ } } }, + "type": "object", + "required": [ + "cancelled_ids" + ], "additionalProperties": false }, "PublicWithdrawDebugParamsSchema": { - "required": [ - "amount", - "asset_name", - "nonce", - "signature_expiry_sec", - "signer", - "subaccount_id" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -14794,14 +14785,18 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "amount", + "asset_name", + "nonce", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PublicWithdrawDebugResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -14819,16 +14814,14 @@ "$ref": "#/components/schemas/PublicWithdrawDebugResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicWithdrawDebugResultSchema": { - "required": [ - "action_hash", - "encoded_data", - "encoded_data_hashed", - "typed_data_hash" - ], - "type": "object", "properties": { "action_hash": { "title": "action_hash", @@ -14851,14 +14844,16 @@ "description": "EIP 712 typed data hash" } }, + "type": "object", + "required": [ + "action_hash", + "encoded_data", + "encoded_data_hashed", + "typed_data_hash" + ], "additionalProperties": false }, "PrivateCancelByLabelParamsSchema": { - "required": [ - "label", - "subaccount_id" - ], - "type": "object", "properties": { "instrument_name": { "title": "instrument_name", @@ -14878,14 +14873,14 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "label", + "subaccount_id" + ], "additionalProperties": false }, "PrivateCancelByLabelResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -14903,13 +14898,14 @@ "$ref": "#/components/schemas/PrivateCancelByLabelResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateCancelByLabelResultSchema": { - "required": [ - "cancelled_orders" - ], - "type": "object", "properties": { "cancelled_orders": { "title": "cancelled_orders", @@ -14917,13 +14913,13 @@ "description": "Number of cancelled orders" } }, + "type": "object", + "required": [ + "cancelled_orders" + ], "additionalProperties": false }, "PublicGetCurrencyParamsSchema": { - "required": [ - "currency" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -14931,14 +14927,13 @@ "description": "Underlying currency of asset (`ETH`, `BTC`, etc)" } }, + "type": "object", + "required": [ + "currency" + ], "additionalProperties": false }, "PublicGetCurrencyResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -14956,26 +14951,14 @@ "$ref": "#/components/schemas/PublicGetCurrencyResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetCurrencyResultSchema": { - "required": [ - "asset_cap_and_supply_per_manager", - "borrow_apy", - "currency", - "instrument_types", - "managers", - "market_type", - "pm2_collateral_discounts", - "protocol_asset_addresses", - "spot_price", - "srm_im_discount", - "srm_mm_discount", - "supply_apy", - "total_borrow", - "total_supply" - ], - "type": "object", "properties": { "asset_cap_and_supply_per_manager": { "title": "asset_cap_and_supply_per_manager", @@ -15113,13 +15096,26 @@ "description": "Total collateral supplied in the protocol" } }, + "type": "object", + "required": [ + "asset_cap_and_supply_per_manager", + "borrow_apy", + "currency", + "instrument_types", + "managers", + "market_type", + "pm2_collateral_discounts", + "protocol_asset_addresses", + "spot_price", + "srm_im_discount", + "srm_mm_discount", + "supply_apy", + "total_borrow", + "total_supply" + ], "additionalProperties": false }, "PrivateResetMmpParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -15134,14 +15130,13 @@ "description": "Subaccount_id for which to reset the mmp state" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateResetMmpResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -15164,14 +15159,14 @@ "description": "The result of this method call, `ok` if successful" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetInterestRateHistoryParamsSchema": { - "required": [ - "from_timestamp_sec", - "to_timestamp_sec" - ], - "type": "object", "properties": { "from_timestamp_sec": { "title": "from_timestamp_sec", @@ -15196,14 +15191,14 @@ "description": "To timestamp in seconds" } }, + "type": "object", + "required": [ + "from_timestamp_sec", + "to_timestamp_sec" + ], "additionalProperties": false }, "PublicGetInterestRateHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -15221,14 +15216,14 @@ "$ref": "#/components/schemas/PublicGetInterestRateHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetInterestRateHistoryResultSchema": { - "required": [ - "interest_rates", - "pagination" - ], - "type": "object", "properties": { "interest_rates": { "title": "interest_rates", @@ -15242,18 +15237,14 @@ "$ref": "#/components/schemas/PaginationInfoSchema" } }, + "type": "object", + "required": [ + "interest_rates", + "pagination" + ], "additionalProperties": false }, "InterestRateHistoryResponseSchema": { - "required": [ - "block", - "borrow_apy", - "supply_apy", - "timestamp_sec", - "total_borrow", - "total_supply" - ], - "type": "object", "properties": { "block": { "title": "block", @@ -15290,13 +15281,18 @@ "description": "Total USDC supplied" } }, + "type": "object", + "required": [ + "block", + "borrow_apy", + "supply_apy", + "timestamp_sec", + "total_borrow", + "total_supply" + ], "additionalProperties": false }, "PrivatePollRfqsParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "from_timestamp": { "title": "from_timestamp", @@ -15356,14 +15352,13 @@ "description": "Latest `last_update_timestamp` to filter by (in ms since Unix epoch). If not provied, defaults to returning all data up to current time." } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivatePollRfqsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -15381,14 +15376,14 @@ "$ref": "#/components/schemas/PrivatePollRfqsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivatePollRfqsResultSchema": { - "required": [ - "pagination", - "rfqs" - ], - "type": "object", "properties": { "pagination": { "$ref": "#/components/schemas/PaginationInfoSchema" @@ -15402,27 +15397,14 @@ } } }, + "type": "object", + "required": [ + "pagination", + "rfqs" + ], "additionalProperties": false }, "RFQResultPublicSchema": { - "required": [ - "cancel_reason", - "creation_timestamp", - "fill_rate", - "filled_direction", - "filled_pct", - "last_update_timestamp", - "legs", - "partial_fill_step", - "recent_fill_rate", - "rfq_id", - "status", - "subaccount_id", - "total_cost", - "valid_until", - "wallet" - ], - "type": "object", "properties": { "cancel_reason": { "title": "cancel_reason", @@ -15539,14 +15521,27 @@ "description": "Wallet address of the RFQ sender" } }, + "type": "object", + "required": [ + "cancel_reason", + "creation_timestamp", + "fill_rate", + "filled_direction", + "filled_pct", + "last_update_timestamp", + "legs", + "partial_fill_step", + "recent_fill_rate", + "rfq_id", + "status", + "subaccount_id", + "total_cost", + "valid_until", + "wallet" + ], "additionalProperties": false }, "PrivateCancelQuoteParamsSchema": { - "required": [ - "quote_id", - "subaccount_id" - ], - "type": "object", "properties": { "quote_id": { "title": "quote_id", @@ -15560,14 +15555,14 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "quote_id", + "subaccount_id" + ], "additionalProperties": false }, "PrivateCancelQuoteResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -15585,35 +15580,14 @@ "$ref": "#/components/schemas/PrivateCancelQuoteResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateCancelQuoteResultSchema": { - "required": [ - "cancel_reason", - "creation_timestamp", - "direction", - "fee", - "fill_pct", - "is_transfer", - "label", - "last_update_timestamp", - "legs", - "legs_hash", - "liquidity_role", - "max_fee", - "mmp", - "nonce", - "quote_id", - "rfq_id", - "signature", - "signature_expiry_sec", - "signer", - "status", - "subaccount_id", - "tx_hash", - "tx_status" - ], - "type": "object", "properties": { "cancel_reason": { "title": "cancel_reason", @@ -15777,15 +15751,35 @@ "nullable": true } }, + "type": "object", + "required": [ + "cancel_reason", + "creation_timestamp", + "direction", + "fee", + "fill_pct", + "is_transfer", + "label", + "last_update_timestamp", + "legs", + "legs_hash", + "liquidity_role", + "max_fee", + "mmp", + "nonce", + "quote_id", + "rfq_id", + "signature", + "signature_expiry_sec", + "signer", + "status", + "subaccount_id", + "tx_hash", + "tx_status" + ], "additionalProperties": false }, "PrivateTransferPositionsParamsSchema": { - "required": [ - "maker_params", - "taker_params", - "wallet" - ], - "type": "object", "properties": { "maker_params": { "$ref": "#/components/schemas/SignedQuoteParamsSchema" @@ -15799,20 +15793,15 @@ "description": "Public key (wallet) of the account" } }, + "type": "object", + "required": [ + "maker_params", + "taker_params", + "wallet" + ], "additionalProperties": false }, "SignedQuoteParamsSchema": { - "required": [ - "direction", - "legs", - "max_fee", - "nonce", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id" - ], - "type": "object", "properties": { "direction": { "title": "direction", @@ -15863,14 +15852,20 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "direction", + "legs", + "max_fee", + "nonce", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PrivateTransferPositionsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -15888,14 +15883,14 @@ "$ref": "#/components/schemas/PrivateTransferPositionsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateTransferPositionsResultSchema": { - "required": [ - "maker_quote", - "taker_quote" - ], - "type": "object", "properties": { "maker_quote": { "$ref": "#/components/schemas/QuoteResultSchema" @@ -15904,13 +15899,14 @@ "$ref": "#/components/schemas/QuoteResultSchema" } }, + "type": "object", + "required": [ + "maker_quote", + "taker_quote" + ], "additionalProperties": false }, "PublicGetTransactionParamsSchema": { - "required": [ - "transaction_id" - ], - "type": "object", "properties": { "transaction_id": { "title": "transaction_id", @@ -15919,14 +15915,13 @@ "description": "transaction_id of the transaction to get" } }, + "type": "object", + "required": [ + "transaction_id" + ], "additionalProperties": false }, "PublicGetTransactionResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -15944,16 +15939,14 @@ "$ref": "#/components/schemas/PublicGetTransactionResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetTransactionResultSchema": { - "required": [ - "data", - "error_log", - "status", - "transaction_hash" - ], - "type": "object", "properties": { "data": { "title": "data", @@ -15988,13 +15981,16 @@ "nullable": true } }, + "type": "object", + "required": [ + "data", + "error_log", + "status", + "transaction_hash" + ], "additionalProperties": false }, "PrivateGetPositionsParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "subaccount_id": { "title": "subaccount_id", @@ -16002,14 +15998,13 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetPositionsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -16027,14 +16022,14 @@ "$ref": "#/components/schemas/PrivateGetPositionsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetPositionsResultSchema": { - "required": [ - "positions", - "subaccount_id" - ], - "type": "object", "properties": { "positions": { "title": "positions", @@ -16050,19 +16045,19 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "positions", + "subaccount_id" + ], "additionalProperties": false }, "PublicGetTimeParamsSchema": { - "type": "object", "properties": {}, + "type": "object", "additionalProperties": false }, "PublicGetTimeResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -16082,13 +16077,14 @@ "description": "Current time in milliseconds since UNIX epoch" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetInterestHistoryParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "end_timestamp": { "title": "end_timestamp", @@ -16108,14 +16104,13 @@ "description": "Subaccount id" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetInterestHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -16133,13 +16128,14 @@ "$ref": "#/components/schemas/PrivateGetInterestHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetInterestHistoryResultSchema": { - "required": [ - "events" - ], - "type": "object", "properties": { "events": { "title": "events", @@ -16150,14 +16146,13 @@ } } }, + "type": "object", + "required": [ + "events" + ], "additionalProperties": false }, "InterestPaymentSchema": { - "required": [ - "interest", - "timestamp" - ], - "type": "object", "properties": { "interest": { "title": "interest", @@ -16171,15 +16166,14 @@ "description": "Timestamp of the interest payment (in ms since UNIX epoch)" } }, + "type": "object", + "required": [ + "interest", + "timestamp" + ], "additionalProperties": false }, "PublicDeregisterSessionKeyParamsSchema": { - "required": [ - "public_session_key", - "signed_raw_tx", - "wallet" - ], - "type": "object", "properties": { "public_session_key": { "title": "public_session_key", @@ -16197,14 +16191,15 @@ "description": "Ethereum wallet address of account" } }, + "type": "object", + "required": [ + "public_session_key", + "signed_raw_tx", + "wallet" + ], "additionalProperties": false }, "PublicDeregisterSessionKeyResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -16222,14 +16217,14 @@ "$ref": "#/components/schemas/PublicDeregisterSessionKeyResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicDeregisterSessionKeyResultSchema": { - "required": [ - "public_session_key", - "transaction_id" - ], - "type": "object", "properties": { "public_session_key": { "title": "public_session_key", @@ -16243,13 +16238,14 @@ "description": "ID to lookup status of transaction" } }, + "type": "object", + "required": [ + "public_session_key", + "transaction_id" + ], "additionalProperties": false }, "PublicGetOptionSettlementPricesParamsSchema": { - "required": [ - "currency" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -16257,14 +16253,13 @@ "description": "Currency for which to show expiries" } }, + "type": "object", + "required": [ + "currency" + ], "additionalProperties": false }, "PublicGetOptionSettlementPricesResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -16282,13 +16277,14 @@ "$ref": "#/components/schemas/PublicGetOptionSettlementPricesResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetOptionSettlementPricesResultSchema": { - "required": [ - "expiries" - ], - "type": "object", "properties": { "expiries": { "title": "expiries", @@ -16299,15 +16295,13 @@ } } }, + "type": "object", + "required": [ + "expiries" + ], "additionalProperties": false }, "ExpiryResponseSchema": { - "required": [ - "expiry_date", - "price", - "utc_expiry_sec" - ], - "type": "object", "properties": { "expiry_date": { "title": "expiry_date", @@ -16328,13 +16322,15 @@ "description": "UTC timestamp of expiry" } }, + "type": "object", + "required": [ + "expiry_date", + "price", + "utc_expiry_sec" + ], "additionalProperties": false }, "PrivateCancelAllParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "cancel_trigger_orders": { "title": "cancel_trigger_orders", @@ -16347,14 +16343,13 @@ "type": "integer" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateCancelAllResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -16377,19 +16372,19 @@ "description": "" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetVaultStatisticsParamsSchema": { - "type": "object", "properties": {}, + "type": "object", "additionalProperties": false }, "PublicGetVaultStatisticsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -16412,21 +16407,14 @@ } } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "VaultStatisticsResponseSchema": { - "required": [ - "base_value", - "block_number", - "block_timestamp", - "subaccount_value_at_last_trade", - "total_supply", - "underlying_value", - "usd_tvl", - "usd_value", - "vault_name" - ], - "type": "object", "properties": { "base_value": { "title": "base_value", @@ -16484,19 +16472,26 @@ "description": "Name of the vault" } }, + "type": "object", + "required": [ + "base_value", + "block_number", + "block_timestamp", + "subaccount_value_at_last_trade", + "total_supply", + "underlying_value", + "usd_tvl", + "usd_value", + "vault_name" + ], "additionalProperties": false }, "PublicGetLiveIncidentsParamsSchema": { - "type": "object", "properties": {}, + "type": "object", "additionalProperties": false }, "PublicGetLiveIncidentsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -16514,13 +16509,14 @@ "$ref": "#/components/schemas/PublicGetLiveIncidentsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetLiveIncidentsResultSchema": { - "required": [ - "incidents" - ], - "type": "object", "properties": { "incidents": { "title": "incidents", @@ -16531,17 +16527,13 @@ } } }, + "type": "object", + "required": [ + "incidents" + ], "additionalProperties": false }, "IncidentResponseSchema": { - "required": [ - "creation_timestamp_sec", - "label", - "message", - "monitor_type", - "severity" - ], - "type": "object", "properties": { "creation_timestamp_sec": { "title": "creation_timestamp_sec", @@ -16578,14 +16570,17 @@ "description": "Incident severity" } }, + "type": "object", + "required": [ + "creation_timestamp_sec", + "label", + "message", + "monitor_type", + "severity" + ], "additionalProperties": false }, "PublicGetAllInstrumentsParamsSchema": { - "required": [ - "expired", - "instrument_type" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -16622,14 +16617,14 @@ "description": "Number of results per page (default 100, max 1000)" } }, + "type": "object", + "required": [ + "expired", + "instrument_type" + ], "additionalProperties": false }, "PublicGetAllInstrumentsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -16647,14 +16642,14 @@ "$ref": "#/components/schemas/PublicGetAllInstrumentsResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetAllInstrumentsResultSchema": { - "required": [ - "instruments", - "pagination" - ], - "type": "object", "properties": { "instruments": { "title": "instruments", @@ -16668,34 +16663,14 @@ "$ref": "#/components/schemas/PaginationInfoSchema" } }, + "type": "object", + "required": [ + "instruments", + "pagination" + ], "additionalProperties": false }, "InstrumentPublicResponseSchema": { - "required": [ - "amount_step", - "base_asset_address", - "base_asset_sub_id", - "base_currency", - "base_fee", - "erc20_details", - "fifo_min_allocation", - "instrument_name", - "instrument_type", - "is_active", - "maker_fee_rate", - "maximum_amount", - "minimum_amount", - "option_details", - "perp_details", - "pro_rata_amount_step", - "pro_rata_fraction", - "quote_currency", - "scheduled_activation", - "scheduled_deactivation", - "taker_fee_rate", - "tick_size" - ], - "type": "object", "properties": { "amount_step": { "title": "amount_step", @@ -16828,14 +16803,34 @@ "description": "Tick size of the instrument, i.e. minimum price increment" } }, + "type": "object", + "required": [ + "amount_step", + "base_asset_address", + "base_asset_sub_id", + "base_currency", + "base_fee", + "erc20_details", + "fifo_min_allocation", + "instrument_name", + "instrument_type", + "is_active", + "maker_fee_rate", + "maximum_amount", + "minimum_amount", + "option_details", + "perp_details", + "pro_rata_amount_step", + "pro_rata_fraction", + "quote_currency", + "scheduled_activation", + "scheduled_deactivation", + "taker_fee_rate", + "tick_size" + ], "additionalProperties": false }, "PublicGetMakerProgramScoresParamsSchema": { - "required": [ - "epoch_start_timestamp", - "program_name" - ], - "type": "object", "properties": { "epoch_start_timestamp": { "title": "epoch_start_timestamp", @@ -16848,14 +16843,14 @@ "description": "Program name" } }, + "type": "object", + "required": [ + "epoch_start_timestamp", + "program_name" + ], "additionalProperties": false }, "PublicGetMakerProgramScoresResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -16873,16 +16868,14 @@ "$ref": "#/components/schemas/PublicGetMakerProgramScoresResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PublicGetMakerProgramScoresResultSchema": { - "required": [ - "program", - "scores", - "total_score", - "total_volume" - ], - "type": "object", "properties": { "program": { "$ref": "#/components/schemas/ProgramResponseSchema" @@ -16908,19 +16901,16 @@ "description": "Total volume across all market makers for the epoch" } }, + "type": "object", + "required": [ + "program", + "scores", + "total_score", + "total_volume" + ], "additionalProperties": false }, "ProgramResponseSchema": { - "required": [ - "asset_types", - "currencies", - "end_timestamp", - "min_notional", - "name", - "rewards", - "start_timestamp" - ], - "type": "object", "properties": { "asset_types": { "title": "asset_types", @@ -16972,19 +16962,19 @@ "description": "Start timestamp of the epoch" } }, + "type": "object", + "required": [ + "asset_types", + "currencies", + "end_timestamp", + "min_notional", + "name", + "rewards", + "start_timestamp" + ], "additionalProperties": false }, "ScoreBreakdownSchema": { - "required": [ - "coverage_score", - "holder_boost", - "quality_score", - "total_score", - "volume", - "volume_multiplier", - "wallet" - ], - "type": "object", "properties": { "coverage_score": { "title": "coverage_score", @@ -17028,15 +17018,19 @@ "description": "Wallet address of the account" } }, + "type": "object", + "required": [ + "coverage_score", + "holder_boost", + "quality_score", + "total_score", + "volume", + "volume_multiplier", + "wallet" + ], "additionalProperties": false }, "PublicGetInstrumentsParamsSchema": { - "required": [ - "currency", - "expired", - "instrument_type" - ], - "type": "object", "properties": { "currency": { "title": "currency", @@ -17059,14 +17053,15 @@ "description": "`erc20`, `option`, or `perp`" } }, - "additionalProperties": false - }, - "PublicGetInstrumentsResponseSchema": { + "type": "object", "required": [ - "id", - "result" + "currency", + "expired", + "instrument_type" ], - "type": "object", + "additionalProperties": false + }, + "PublicGetInstrumentsResponseSchema": { "properties": { "id": { "oneOf": [ @@ -17089,13 +17084,14 @@ } } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetOptionSettlementHistoryParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "subaccount_id": { "title": "subaccount_id", @@ -17103,14 +17099,13 @@ "description": "Subaccount ID for which to get expired option settlement history" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetOptionSettlementHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -17128,14 +17123,14 @@ "$ref": "#/components/schemas/PrivateGetOptionSettlementHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetOptionSettlementHistoryResultSchema": { - "required": [ - "settlements", - "subaccount_id" - ], - "type": "object", "properties": { "settlements": { "title": "settlements", @@ -17151,13 +17146,14 @@ "description": "Subaccount_id for which to get expired option settlement history" } }, - "additionalProperties": false - }, - "PrivateGetMarginParamsSchema": { + "type": "object", "required": [ + "settlements", "subaccount_id" ], - "type": "object", + "additionalProperties": false + }, + "PrivateGetMarginParamsSchema": { "properties": { "simulated_collateral_changes": { "title": "simulated_collateral_changes", @@ -17185,14 +17181,13 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetMarginResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -17210,18 +17205,14 @@ "$ref": "#/components/schemas/PrivateGetMarginResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetMarginResultSchema": { - "required": [ - "is_valid_trade", - "post_initial_margin", - "post_maintenance_margin", - "pre_initial_margin", - "pre_maintenance_margin", - "subaccount_id" - ], - "type": "object", "properties": { "is_valid_trade": { "title": "is_valid_trade", @@ -17258,14 +17249,18 @@ "description": "Subaccount_id" } }, - "additionalProperties": false - }, - "PrivateChangeSubaccountLabelParamsSchema": { + "type": "object", "required": [ - "label", + "is_valid_trade", + "post_initial_margin", + "post_maintenance_margin", + "pre_initial_margin", + "pre_maintenance_margin", "subaccount_id" ], - "type": "object", + "additionalProperties": false + }, + "PrivateChangeSubaccountLabelParamsSchema": { "properties": { "label": { "title": "label", @@ -17278,14 +17273,14 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "label", + "subaccount_id" + ], "additionalProperties": false }, "PrivateChangeSubaccountLabelResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -17303,14 +17298,14 @@ "$ref": "#/components/schemas/PrivateChangeSubaccountLabelResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateChangeSubaccountLabelResultSchema": { - "required": [ - "label", - "subaccount_id" - ], - "type": "object", "properties": { "label": { "title": "label", @@ -17323,10 +17318,14 @@ "description": "Subaccount_id" } }, + "type": "object", + "required": [ + "label", + "subaccount_id" + ], "additionalProperties": false }, "PublicGetVaultBalancesParamsSchema": { - "type": "object", "properties": { "smart_contract_owner": { "title": "smart_contract_owner", @@ -17343,14 +17342,10 @@ "nullable": true } }, + "type": "object", "additionalProperties": false }, "PublicGetVaultBalancesResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -17373,17 +17368,14 @@ } } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "VaultBalanceResponseSchema": { - "required": [ - "address", - "amount", - "chain_id", - "name", - "vault_asset_type" - ], - "type": "object", "properties": { "address": { "title": "address", @@ -17407,19 +17399,22 @@ "type": "string" } }, + "type": "object", + "required": [ + "address", + "amount", + "chain_id", + "name", + "vault_asset_type" + ], "additionalProperties": false }, "PublicGetMakerProgramsParamsSchema": { - "type": "object", "properties": {}, + "type": "object", "additionalProperties": false }, "PublicGetMakerProgramsResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -17442,22 +17437,14 @@ } } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateExecuteQuoteParamsSchema": { - "required": [ - "direction", - "legs", - "max_fee", - "nonce", - "quote_id", - "rfq_id", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id" - ], - "type": "object", "properties": { "direction": { "title": "direction", @@ -17532,14 +17519,22 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "direction", + "legs", + "max_fee", + "nonce", + "quote_id", + "rfq_id", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PrivateExecuteQuoteResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -17557,36 +17552,14 @@ "$ref": "#/components/schemas/PrivateExecuteQuoteResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateExecuteQuoteResultSchema": { - "required": [ - "cancel_reason", - "creation_timestamp", - "direction", - "fee", - "fill_pct", - "is_transfer", - "label", - "last_update_timestamp", - "legs", - "legs_hash", - "liquidity_role", - "max_fee", - "mmp", - "nonce", - "quote_id", - "rfq_filled_pct", - "rfq_id", - "signature", - "signature_expiry_sec", - "signer", - "status", - "subaccount_id", - "tx_hash", - "tx_status" - ], - "type": "object", "properties": { "cancel_reason": { "title": "cancel_reason", @@ -17756,13 +17729,36 @@ "nullable": true } }, + "type": "object", + "required": [ + "cancel_reason", + "creation_timestamp", + "direction", + "fee", + "fill_pct", + "is_transfer", + "label", + "last_update_timestamp", + "legs", + "legs_hash", + "liquidity_role", + "max_fee", + "mmp", + "nonce", + "quote_id", + "rfq_filled_pct", + "rfq_id", + "signature", + "signature_expiry_sec", + "signer", + "status", + "subaccount_id", + "tx_hash", + "tx_status" + ], "additionalProperties": false }, "PrivateGetOrdersParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "instrument_name": { "title": "instrument_name", @@ -17810,14 +17806,13 @@ "description": "Subaccount_id for which to get open orders" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetOrdersResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -17835,15 +17830,14 @@ "$ref": "#/components/schemas/PrivateGetOrdersResultSchema" } }, - "additionalProperties": false - }, - "PrivateGetOrdersResultSchema": { + "type": "object", "required": [ - "orders", - "pagination", - "subaccount_id" + "id", + "result" ], - "type": "object", + "additionalProperties": false + }, + "PrivateGetOrdersResultSchema": { "properties": { "orders": { "title": "orders", @@ -17862,22 +17856,15 @@ "description": "Subaccount_id for which to get open orders" } }, - "additionalProperties": false - }, - "PrivateOrderParamsSchema": { + "type": "object", "required": [ - "amount", - "direction", - "instrument_name", - "limit_price", - "max_fee", - "nonce", - "signature", - "signature_expiry_sec", - "signer", + "orders", + "pagination", "subaccount_id" ], - "type": "object", + "additionalProperties": false + }, + "PrivateOrderParamsSchema": { "properties": { "amount": { "title": "amount", @@ -18026,14 +18013,22 @@ "nullable": true } }, + "type": "object", + "required": [ + "amount", + "direction", + "instrument_name", + "limit_price", + "max_fee", + "nonce", + "signature", + "signature_expiry_sec", + "signer", + "subaccount_id" + ], "additionalProperties": false }, "PrivateOrderResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -18051,14 +18046,14 @@ "$ref": "#/components/schemas/PrivateOrderResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateOrderResultSchema": { - "required": [ - "order", - "trades" - ], - "type": "object", "properties": { "order": { "$ref": "#/components/schemas/OrderResponseSchema" @@ -18071,13 +18066,14 @@ } } }, + "type": "object", + "required": [ + "order", + "trades" + ], "additionalProperties": false }, "PrivateCancelBatchQuotesParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "label": { "title": "label", @@ -18115,14 +18111,13 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateCancelBatchQuotesResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -18140,13 +18135,14 @@ "$ref": "#/components/schemas/PrivateCancelBatchQuotesResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateCancelBatchQuotesResultSchema": { - "required": [ - "cancelled_ids" - ], - "type": "object", "properties": { "cancelled_ids": { "title": "cancelled_ids", @@ -18159,14 +18155,13 @@ } } }, + "type": "object", + "required": [ + "cancelled_ids" + ], "additionalProperties": false }, "PrivateSetCancelOnDisconnectParamsSchema": { - "required": [ - "enabled", - "wallet" - ], - "type": "object", "properties": { "enabled": { "title": "enabled", @@ -18179,14 +18174,14 @@ "description": "Public key (wallet) of the account" } }, + "type": "object", + "required": [ + "enabled", + "wallet" + ], "additionalProperties": false }, "PrivateSetCancelOnDisconnectResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -18209,14 +18204,14 @@ "description": "" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateCancelRfqParamsSchema": { - "required": [ - "rfq_id", - "subaccount_id" - ], - "type": "object", "properties": { "rfq_id": { "title": "rfq_id", @@ -18230,14 +18225,14 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "rfq_id", + "subaccount_id" + ], "additionalProperties": false }, "PrivateCancelRfqResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -18260,14 +18255,14 @@ "description": "The result of this method call, `ok` if successful" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetOrderParamsSchema": { - "required": [ - "order_id", - "subaccount_id" - ], - "type": "object", "properties": { "order_id": { "title": "order_id", @@ -18280,14 +18275,14 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "order_id", + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetOrderResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -18305,36 +18300,14 @@ "$ref": "#/components/schemas/PrivateGetOrderResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetOrderResultSchema": { - "required": [ - "amount", - "average_price", - "cancel_reason", - "creation_timestamp", - "direction", - "filled_amount", - "instrument_name", - "is_transfer", - "label", - "last_update_timestamp", - "limit_price", - "max_fee", - "mmp", - "nonce", - "order_fee", - "order_id", - "order_status", - "order_type", - "quote_id", - "signature", - "signature_expiry_sec", - "signer", - "subaccount_id", - "time_in_force" - ], - "type": "object", "properties": { "amount": { "title": "amount", @@ -18546,20 +18519,36 @@ "nullable": true } }, - "additionalProperties": false - }, - "PrivateCreateSubaccountParamsSchema": { + "type": "object", "required": [ "amount", - "asset_name", - "margin_type", + "average_price", + "cancel_reason", + "creation_timestamp", + "direction", + "filled_amount", + "instrument_name", + "is_transfer", + "label", + "last_update_timestamp", + "limit_price", + "max_fee", + "mmp", "nonce", + "order_fee", + "order_id", + "order_status", + "order_type", + "quote_id", "signature", "signature_expiry_sec", "signer", - "wallet" + "subaccount_id", + "time_in_force" ], - "type": "object", + "additionalProperties": false + }, + "PrivateCreateSubaccountParamsSchema": { "properties": { "amount": { "title": "amount", @@ -18615,14 +18604,20 @@ "description": "Ethereum wallet address" } }, + "type": "object", + "required": [ + "amount", + "asset_name", + "margin_type", + "nonce", + "signature", + "signature_expiry_sec", + "signer", + "wallet" + ], "additionalProperties": false }, "PrivateCreateSubaccountResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -18640,14 +18635,14 @@ "$ref": "#/components/schemas/PrivateCreateSubaccountResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateCreateSubaccountResultSchema": { - "required": [ - "status", - "transaction_id" - ], - "type": "object", "properties": { "status": { "title": "status", @@ -18661,13 +18656,14 @@ "description": "Transaction id of the request" } }, + "type": "object", + "required": [ + "status", + "transaction_id" + ], "additionalProperties": false }, "PrivateGetLiquidatorHistoryParamsSchema": { - "required": [ - "subaccount_id" - ], - "type": "object", "properties": { "end_timestamp": { "title": "end_timestamp", @@ -18699,14 +18695,13 @@ "description": "Subaccount ID" } }, + "type": "object", + "required": [ + "subaccount_id" + ], "additionalProperties": false }, "PrivateGetLiquidatorHistoryResponseSchema": { - "required": [ - "id", - "result" - ], - "type": "object", "properties": { "id": { "oneOf": [ @@ -18724,14 +18719,14 @@ "$ref": "#/components/schemas/PrivateGetLiquidatorHistoryResultSchema" } }, + "type": "object", + "required": [ + "id", + "result" + ], "additionalProperties": false }, "PrivateGetLiquidatorHistoryResultSchema": { - "required": [ - "bids", - "pagination" - ], - "type": "object", "properties": { "bids": { "title": "bids", @@ -18745,6 +18740,11 @@ "$ref": "#/components/schemas/PaginationInfoSchema" } }, + "type": "object", + "required": [ + "bids", + "pagination" + ], "additionalProperties": false } } From a91fcf66c42c5fc59abc1712ebdc19eebb550a2f Mon Sep 17 00:00:00 2001 From: 8ball030 <8baller@station.codes> Date: Wed, 26 Nov 2025 12:04:56 +0000 Subject: [PATCH 4/8] feat:made-price-dynamic --- examples/01_quickstart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/01_quickstart.py b/examples/01_quickstart.py index 3c70898f..306a2597 100644 --- a/examples/01_quickstart.py +++ b/examples/01_quickstart.py @@ -78,7 +78,7 @@ order_result = client.orders.create( instrument_name="ETH-PERP", amount=D("0.10"), # 0.10 ETH - limit_price=D("3000"), # Buy at $3000 + limit_price=ticker.index_price * D(0.95), # Buy at 95% of the index price direction=Direction.buy, order_type=OrderType.limit, ) From ae6d17bc7ac4a616a8ab4559ff890ee7289a867a Mon Sep 17 00:00:00 2001 From: 8ball030 <8baller@station.codes> Date: Wed, 26 Nov 2025 12:08:14 +0000 Subject: [PATCH 5/8] feat:modfied-transfer-batch --- examples/05_position_transfer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/05_position_transfer.py b/examples/05_position_transfer.py index 4ffb0497..dee15ab2 100644 --- a/examples/05_position_transfer.py +++ b/examples/05_position_transfer.py @@ -235,7 +235,7 @@ # Build transfer list transfers = [] - for pos in positions_to_batch[:3]: # Max 3 for demo + for pos in positions_to_batch[2:4]: # Max 3 for demo transfers.append( PositionTransfer( instrument_name=pos.instrument_name, From 9a3c4d7474bfa67784172453e5af26eb0d780e60 Mon Sep 17 00:00:00 2001 From: 8ball030 <8baller@station.codes> Date: Wed, 26 Nov 2025 12:21:55 +0000 Subject: [PATCH 6/8] feat:attempt-to-resolve-position-txns --- examples/05_position_transfer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/05_position_transfer.py b/examples/05_position_transfer.py index dee15ab2..f168983f 100644 --- a/examples/05_position_transfer.py +++ b/examples/05_position_transfer.py @@ -235,7 +235,7 @@ # Build transfer list transfers = [] - for pos in positions_to_batch[2:4]: # Max 3 for demo + for pos in positions_to_batch[1:2]: # Max 3 for demo transfers.append( PositionTransfer( instrument_name=pos.instrument_name, From 0b6547df966fe9cb5fee57e0b20d3556b6d58e5b Mon Sep 17 00:00:00 2001 From: 8ball030 <8baller@station.codes> Date: Wed, 26 Nov 2025 12:34:27 +0000 Subject: [PATCH 7/8] feat:ensured-positions-close-properly --- tests/test_clients/test_rest/test_async_http/conftest.py | 4 ++-- .../test_clients/test_rest/test_async_http/test_positions.py | 1 + tests/test_clients/test_rest/test_http/conftest.py | 4 ++-- tests/test_clients/test_rest/test_http/test_positions.py | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/test_clients/test_rest/test_async_http/conftest.py b/tests/test_clients/test_rest/test_async_http/conftest.py index 7f18ed54..7f4d3aa5 100644 --- a/tests/test_clients/test_rest/test_async_http/conftest.py +++ b/tests/test_clients/test_rest/test_async_http/conftest.py @@ -88,9 +88,9 @@ async def client_owner_wallet_with_position(): if market_perp_instrument in [p.instrument_name for p in current_positions]: # we already have the position we must make sure it is large enough position = [p for p in current_positions if p.instrument_name == market_perp_instrument][0] - if abs(position.amount) < D("0.1"): + if abs(position.amount) < D("0.2"): # we need to increase the position size - additional_amount = D("0.1") - abs(position.amount) + additional_amount = D("0.2") - abs(position.amount) direction = Direction.buy if position.amount > 0 else Direction.sell # check if we can take liquidity ticker = await client_owner_wallet.markets.get_ticker(instrument_name=market_perp_instrument) diff --git a/tests/test_clients/test_rest/test_async_http/test_positions.py b/tests/test_clients/test_rest/test_async_http/test_positions.py index 43fc7011..9ac2eda5 100644 --- a/tests/test_clients/test_rest/test_async_http/test_positions.py +++ b/tests/test_clients/test_rest/test_async_http/test_positions.py @@ -60,6 +60,7 @@ async def test_position_transfer(client_owner_wallet_with_position): else: source = subaccount_a target = subaccount_b + initial_position = positions_a[0] with assert_api_calls(client_owner_wallet_with_position, expected=1): transfer = await source.positions.transfer( diff --git a/tests/test_clients/test_rest/test_http/conftest.py b/tests/test_clients/test_rest/test_http/conftest.py index d5be258e..a9b811c6 100644 --- a/tests/test_clients/test_rest/test_http/conftest.py +++ b/tests/test_clients/test_rest/test_http/conftest.py @@ -79,9 +79,9 @@ def client_owner_wallet_with_position(client_owner_wallet: HTTPClient): if market_perp_instrument in [p.instrument_name for p in current_positions]: # we already have the position we must make sure it is large enough position = [p for p in current_positions if p.instrument_name == market_perp_instrument][0] - if abs(position.amount) < D("0.1"): + if abs(position.amount) < D("0.2"): # we need to increase the position size - additional_amount = D("0.1") - abs(position.amount) + additional_amount = D("0.2") - abs(position.amount) direction = Direction.buy if position.amount > 0 else Direction.sell # check if we can take liquidity ticker = client_owner_wallet.markets.get_ticker(instrument_name=market_perp_instrument) diff --git a/tests/test_clients/test_rest/test_http/test_positions.py b/tests/test_clients/test_rest/test_http/test_positions.py index a49a7c3b..eda8c1d9 100644 --- a/tests/test_clients/test_rest/test_http/test_positions.py +++ b/tests/test_clients/test_rest/test_http/test_positions.py @@ -57,6 +57,7 @@ def test_position_transfer(client_owner_wallet_with_position): else: source = subaccount_a target = subaccount_b + initial_position = positions_a[0] with assert_api_calls(client_owner_wallet_with_position, expected=1): transfer = source.positions.transfer( From 75737e0bc28e6fd2dfdc8a69e28c5fa19607e79f Mon Sep 17 00:00:00 2001 From: 8ball030 <8baller@station.codes> Date: Wed, 26 Nov 2025 12:36:26 +0000 Subject: [PATCH 8/8] feat:ensured-usinmg-best-bid-for-market-orders --- examples/04_trading_basics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/04_trading_basics.py b/examples/04_trading_basics.py index 01ce156e..811b88c6 100644 --- a/examples/04_trading_basics.py +++ b/examples/04_trading_basics.py @@ -163,7 +163,7 @@ instrument_name=INSTRUMENT, amount=MINIMUM_AMOUNT, direction=Direction.buy, - limit_price=ticker.mark_price * D(1.05), + limit_price=ticker.best_ask_price, order_type=OrderType.market, ) print("\nMarket order executed:") @@ -179,7 +179,7 @@ instrument_name=INSTRUMENT, amount=MINIMUM_AMOUNT, direction=Direction.sell, - limit_price=ticker.mark_price * D(0.95), + limit_price=ticker.best_bid_price * D("0.99"), # Acceptable worst price order_type=OrderType.market, ) print(f"\nPosition closed: {close_order.order_id}")