{
  "components": {
    "parameters": {},
    "securitySchemes": {
      "ApiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "Call `public/auth` with `grant_type: coinbase_cdp` and a CDP JWT. Send the returned `access_token` as `Authorization: Bearer`."
      },
      "OAuth2": {
        "type": "oauth2",
        "description": "Call `public/auth` with `grant_type: coinbase_oauth2` and an OAuth access token. Send the returned `access_token` as `Authorization: Bearer`.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.coinbase.com/oauth2/auth",
            "tokenUrl": "https://login.coinbase.com/oauth2/token",
            "scopes": {
              "wallet:user:read": "View your account information.",
              "wallet:user:update": "Update your account information.",
              "wallet:accounts:read": "View your accounts.",
              "wallet:buys:create": "Place, edit, and cancel orders.",
              "wallet:trades:read": "View your cryptocurrency conversions.",
              "wallet:trades:create": "Convert cryptocurrencies.",
              "wallet:transactions:read": "View your transactions.",
              "wallet:transactions:transfer": "Transfer funds between accounts.",
              "wallet:payment-methods:read": "View your payment methods."
            }
          }
        }
      }
    },
    "responses": {
      "ErrorMessageResponse": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorMessageResponse"
            }
          }
        },
        "description": "Success response"
      },
      "Getunsubscribe200response": {
        "content": {
          "application/json": {
            "examples": {
              "jsonObject": {
                "value": {
                  "id": 3370,
                  "jsonrpc": "2.0",
                  "result": [
                    "deribit_price_index.btc_usd"
                  ]
                }
              },
              "response": {
                "description": "Response example",
                "value": {
                  "id": 3370,
                  "jsonrpc": "2.0",
                  "result": [
                    "deribit_price_index.btc_usd"
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Getunsubscribe200response"
            }
          }
        },
        "description": "Successfully unsubscribed from channels"
      },
      "OkResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1569,
                  "jsonrpc": "2.0",
                  "result": "ok"
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/OkResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateAcceptBlockRfqResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "block_trades": [
                      {
                        "id": "BLOCK-423",
                        "timestamp": 1730798381504,
                        "trades": [
                          {
                            "amount": 100,
                            "api": true,
                            "block_rfq_id": 1,
                            "block_trade_id": "BLOCK-423",
                            "block_trade_leg_count": 2,
                            "combo_id": "BTC-CS-8NOV24-70000_72000",
                            "contracts": 100,
                            "direction": "buy",
                            "fee": 1.5e-07,
                            "fee_currency": "BTC",
                            "index_price": 70000,
                            "instrument_name": "BTC-8NOV24-70000-C",
                            "liquidity": "T",
                            "mark_price": 0.03,
                            "matching_id": null,
                            "mmp": false,
                            "order_id": "2899",
                            "order_type": "limit",
                            "post_only": false,
                            "price": 69696.8,
                            "profit_loss": 0,
                            "reduce_only": false,
                            "risk_reducing": false,
                            "self_trade": false,
                            "state": "filled",
                            "tick_direction": 2,
                            "timestamp": 1730798381502,
                            "trade_id": "771",
                            "trade_seq": 113
                          },
                          {
                            "amount": 100,
                            "api": true,
                            "block_rfq_id": 1,
                            "block_trade_id": "BLOCK-423",
                            "block_trade_leg_count": 2,
                            "combo_id": "BTC-CS-8NOV24-70000_72000",
                            "contracts": 100,
                            "direction": "sell",
                            "fee": 1.5e-07,
                            "fee_currency": "BTC",
                            "index_price": 70000,
                            "instrument_name": "BTC-8NOV24-72000-C",
                            "liquidity": "T",
                            "mark_price": 0.02,
                            "matching_id": null,
                            "mmp": false,
                            "order_id": "2900",
                            "order_type": "limit",
                            "post_only": false,
                            "price": 69677.4,
                            "profit_loss": 0,
                            "reduce_only": false,
                            "risk_reducing": false,
                            "self_trade": false,
                            "state": "filled",
                            "tick_direction": 2,
                            "timestamp": 1730798381502,
                            "trade_id": "772",
                            "trade_seq": 113
                          }
                        ]
                      }
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateAcceptBlockRfqResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateAccountResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 2515,
                  "jsonrpc": "2.0",
                  "result": {
                    "available_funds": 301.38059622,
                    "available_withdrawal_funds": 301.35396172,
                    "balance": 302.60065765,
                    "block_rfq_self_match_prevention": true,
                    "creation_timestamp": 1687352432143,
                    "cross_collateral_enabled": false,
                    "currency": "BTC",
                    "delta_total": 31.602958,
                    "delta_total_map": {
                      "btc_usd": 31.594357699
                    },
                    "email": "user@example.com",
                    "equity": 302.61869214,
                    "estimated_liquidation_ratio": 0.10098722,
                    "estimated_liquidation_ratio_map": {
                      "btc_usd": 0.1009872222854525
                    },
                    "fee_balance": 0,
                    "fees": {
                      "btc_usd": {
                        "future": {
                          "block_trade": 0.3,
                          "default": {
                            "maker": -0.0001,
                            "taker": 0.00035000000000000005,
                            "type": "fixed"
                          }
                        },
                        "option": {
                          "block_trade": 0.625,
                          "default": {
                            "maker": 0.625,
                            "taker": 0.625,
                            "type": "relative"
                          }
                        },
                        "perpetual": {
                          "block_trade": 0.3,
                          "default": {
                            "maker": -0.0001,
                            "taker": 0.00035000000000000005,
                            "type": "fixed"
                          }
                        }
                      }
                    },
                    "futures_pl": -0.32434225,
                    "futures_session_rpl": -0.03258105,
                    "futures_session_upl": 0.05921555,
                    "id": 10,
                    "initial_margin": 1.24669592,
                    "interuser_transfers_enabled": false,
                    "limits": {
                      "limits_per_currency": false,
                      "matching_engine": {
                        "cancel_all": {
                          "burst": 250,
                          "rate": 200
                        },
                        "guaranteed_quotes": {
                          "burst": 2,
                          "rate": 2
                        },
                        "max_quotes": {
                          "burst": 10,
                          "rate": 10
                        },
                        "quotes": {
                          "burst": 500,
                          "rate": 500
                        },
                        "spot": {
                          "burst": 250,
                          "rate": 200
                        },
                        "trading": {
                          "total": {
                            "burst": 250,
                            "rate": 200
                          }
                        }
                      },
                      "non_matching_engine": {
                        "burst": 1500,
                        "rate": 1000
                      }
                    },
                    "login_enabled": false,
                    "maintenance_margin": 0.8857841,
                    "margin_balance": 302.62729214,
                    "margin_model": "segregated_sm",
                    "mmp_enabled": false,
                    "options_delta": -1.01962,
                    "options_gamma": 1e-05,
                    "options_gamma_map": {
                      "btc_usd": 1e-05
                    },
                    "options_pl": -0.0065,
                    "options_session_rpl": 0,
                    "options_session_upl": -0.0065,
                    "options_theta": 15.97071,
                    "options_theta_map": {
                      "btc_usd": 15.97071
                    },
                    "options_value": -0.0086,
                    "options_vega": 0.0858,
                    "options_vega_map": {
                      "btc_usd": 0.0858
                    },
                    "portfolio_margining_enabled": false,
                    "projected_delta_total": 32.613978,
                    "projected_initial_margin": 1.01529592,
                    "projected_maintenance_margin": 0.7543841,
                    "referrer_id": null,
                    "security_keys_enabled": false,
                    "self_trading_extended_to_subaccounts": false,
                    "self_trading_reject_mode": "cancel_maker",
                    "session_rpl": -0.03258105,
                    "session_upl": 0.05271555,
                    "spot_reserve": 0,
                    "system_name": "user",
                    "total_pl": -0.33084225,
                    "type": "main",
                    "username": "user"
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateAccountResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateAccountSummariesResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 2515,
                  "jsonrpc": "2.0",
                  "result": {
                    "block_rfq_self_match_prevention": true,
                    "creation_timestamp": 1687352432143,
                    "email": "user@example.com",
                    "id": 10,
                    "interuser_transfers_enabled": false,
                    "login_enabled": false,
                    "mmp_enabled": false,
                    "referrer_id": null,
                    "security_keys_enabled": false,
                    "self_trading_extended_to_subaccounts": false,
                    "self_trading_reject_mode": "cancel_maker",
                    "summaries": [
                      {
                        "available_funds": 301.38059622,
                        "available_withdrawal_funds": 301.35396172,
                        "balance": 302.60065765,
                        "cross_collateral_enabled": false,
                        "currency": "BTC",
                        "delta_total": 31.602958,
                        "delta_total_map": {
                          "btc_usd": 31.594357699
                        },
                        "equity": 302.61869214,
                        "estimated_liquidation_ratio": 0.10098722,
                        "estimated_liquidation_ratio_map": {
                          "btc_usd": 0.1009872222854525
                        },
                        "fee_balance": 0,
                        "fees": {
                          "btc_usd": {
                            "future": {
                              "block_trade": 0.3,
                              "default": {
                                "maker": -0.0001,
                                "taker": 0.00035000000000000005,
                                "type": "fixed"
                              }
                            },
                            "option": {
                              "block_trade": 0.625,
                              "default": {
                                "maker": 0.625,
                                "taker": 0.625,
                                "type": "relative"
                              }
                            },
                            "perpetual": {
                              "block_trade": 0.3,
                              "default": {
                                "maker": -0.0001,
                                "taker": 0.00035000000000000005,
                                "type": "fixed"
                              }
                            }
                          }
                        },
                        "futures_pl": -0.32434225,
                        "futures_session_rpl": -0.03258105,
                        "futures_session_upl": 0.05921555,
                        "initial_margin": 1.24669592,
                        "limits": {
                          "limits_per_currency": false,
                          "matching_engine": {
                            "cancel_all": {
                              "burst": 250,
                              "rate": 200
                            },
                            "guaranteed_quotes": {
                              "burst": 2,
                              "rate": 2
                            },
                            "max_quotes": {
                              "burst": 10,
                              "rate": 10
                            },
                            "quotes": {
                              "burst": 500,
                              "rate": 500
                            },
                            "spot": {
                              "burst": 250,
                              "rate": 200
                            },
                            "trading": {
                              "total": {
                                "burst": 250,
                                "rate": 200
                              }
                            }
                          },
                          "non_matching_engine": {
                            "burst": 1500,
                            "rate": 1000
                          }
                        },
                        "maintenance_margin": 0.8857841,
                        "margin_balance": 302.62729214,
                        "margin_model": "segregated_sm",
                        "options_delta": -1.01962,
                        "options_gamma": 1e-05,
                        "options_gamma_map": {
                          "btc_usd": 1e-05
                        },
                        "options_pl": -0.0065,
                        "options_session_rpl": 0,
                        "options_session_upl": -0.0065,
                        "options_theta": 15.97071,
                        "options_value": -0.0086,
                        "options_vega": 0.0858,
                        "options_vega_map": {
                          "btc_usd": 0.0858
                        },
                        "portfolio_margining_enabled": false,
                        "projected_delta_total": 32.613978,
                        "projected_initial_margin": 1.01529592,
                        "projected_maintenance_margin": 0.7543841,
                        "session_rpl": -0.03258105,
                        "session_upl": 0.05271555,
                        "spot_reserve": 0,
                        "total_pl": -0.33084225
                      },
                      {
                        "additional_reserve": 0,
                        "available_funds": 99.999598,
                        "available_withdrawal_funds": 99.999597,
                        "balance": 100,
                        "cross_collateral_enabled": false,
                        "currency": "ETH",
                        "delta_total": 0,
                        "delta_total_map": {
                          "eth_usd": 0
                        },
                        "equity": 100,
                        "estimated_liquidation_ratio": 0,
                        "estimated_liquidation_ratio_map": {
                          "eth_usd": 0
                        },
                        "fee_balance": 0,
                        "fees": {
                          "eth_usd": {
                            "future": {
                              "block_trade": 0.2,
                              "default": {
                                "maker": -5e-05,
                                "taker": 0.00025,
                                "type": "fixed"
                              }
                            },
                            "option": {
                              "block_trade": 0.5,
                              "default": {
                                "maker": 0.5,
                                "taker": 0.5,
                                "type": "relative"
                              }
                            },
                            "perpetual": {
                              "block_trade": 0.2,
                              "default": {
                                "maker": -5e-05,
                                "taker": 0.00025,
                                "type": "fixed"
                              }
                            }
                          }
                        },
                        "futures_pl": 0,
                        "futures_session_rpl": 0,
                        "futures_session_upl": 0,
                        "initial_margin": 0.000402,
                        "limits": {
                          "limits_per_currency": false,
                          "matching_engine": {
                            "cancel_all": {
                              "burst": 250,
                              "rate": 200
                            },
                            "guaranteed_quotes": {
                              "burst": 2,
                              "rate": 2
                            },
                            "max_quotes": {
                              "burst": 10,
                              "rate": 10
                            },
                            "quotes": {
                              "burst": 500,
                              "rate": 500
                            },
                            "spot": {
                              "burst": 250,
                              "rate": 200
                            },
                            "trading": {
                              "total": {
                                "burst": 250,
                                "rate": 200
                              }
                            }
                          },
                          "non_matching_engine": {
                            "burst": 1500,
                            "rate": 1000
                          }
                        },
                        "maintenance_margin": 0,
                        "margin_balance": 100,
                        "margin_model": "segregated_sm",
                        "options_delta": 0,
                        "options_gamma": 0,
                        "options_gamma_map": {},
                        "options_pl": 0,
                        "options_session_rpl": 0,
                        "options_session_upl": 0,
                        "options_theta": 0,
                        "options_theta_map": {},
                        "options_value": 0,
                        "options_vega": 0,
                        "options_vega_map": {},
                        "portfolio_margining_enabled": false,
                        "projected_delta_total": 0,
                        "projected_initial_margin": 0.0002,
                        "projected_maintenance_margin": 0,
                        "session_rpl": 0,
                        "session_upl": 0,
                        "spot_reserve": 0.0002,
                        "total_pl": 0
                      }
                    ],
                    "system_name": "user",
                    "type": "main",
                    "username": "user"
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateAccountSummariesResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateAddBlockRfqQuoteResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "amount": 10000,
                    "block_rfq_id": 3,
                    "block_rfq_quote_id": 8,
                    "creation_timestamp": 1731076586371,
                    "direction": "buy",
                    "filled_amount": 0,
                    "hedge": {
                      "amount": 10,
                      "direction": "buy",
                      "instrument_name": "BTC-PERPETUAL",
                      "price": 70000
                    },
                    "label": "example_quote",
                    "last_update_timestamp": 1731076586371,
                    "legs": [
                      {
                        "direction": "buy",
                        "instrument_name": "BTC-15NOV24",
                        "price": 69600,
                        "ratio": 1
                      }
                    ],
                    "price": 69600,
                    "quote_state": "open",
                    "replaced": false
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateAddBlockRfqQuoteResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateBuyAndSellResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 6130,
                  "jsonrpc": "2.0",
                  "result": {
                    "order": {
                      "amount": 21,
                      "api": true,
                      "average_price": 202.8,
                      "creation_timestamp": 1590486335742,
                      "direction": "sell",
                      "filled_amount": 21,
                      "instrument_name": "ETH-PERPETUAL",
                      "is_liquidation": false,
                      "is_rebalance": false,
                      "label": "",
                      "last_update_timestamp": 1590486335742,
                      "max_show": 21,
                      "order_id": "ETH-584864807",
                      "order_state": "filled",
                      "order_type": "limit",
                      "post_only": false,
                      "price": 198.75,
                      "reduce_only": true,
                      "replaced": false,
                      "time_in_force": "good_til_cancelled",
                      "web": false
                    },
                    "trades": [
                      {
                        "amount": 21,
                        "direction": "sell",
                        "fee": 7.766e-05,
                        "fee_currency": "ETH",
                        "index_price": 202.86,
                        "instrument_name": "ETH-PERPETUAL",
                        "liquidity": "T",
                        "mark_price": 202.79,
                        "matching_id": null,
                        "order_id": "ETH-584864807",
                        "order_type": "limit",
                        "post_only": false,
                        "price": 202.8,
                        "reduce_only": true,
                        "state": "filled",
                        "tick_direction": 0,
                        "timestamp": 1590486335742,
                        "trade_id": "ETH-2696097",
                        "trade_seq": 1966068
                      }
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateBuyAndSellResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateCancelAllBlockRfqQuotesResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "jsonrpc": "2.0",
                  "result": 1
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateCancelAllBlockRfqQuotesResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateCancelAllResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 47,
                  "jsonrpc": "2.0",
                  "result": 4
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateCancelAllResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateCancelBlockRfqQuoteResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "amount": 20000,
                    "block_rfq_id": 3,
                    "block_rfq_quote_id": 8,
                    "creation_timestamp": 1731076586371,
                    "direction": "buy",
                    "filled_amount": 0,
                    "hedge": {
                      "amount": 10,
                      "direction": "buy",
                      "instrument_name": "BTC-PERPETUAL",
                      "price": 70000
                    },
                    "label": "example_quote",
                    "last_update_timestamp": 1731076655746,
                    "legs": [
                      {
                        "direction": "buy",
                        "instrument_name": "BTC-15NOV24",
                        "price": 74600,
                        "ratio": 1
                      }
                    ],
                    "price": 74600,
                    "quote_state": "cancelled",
                    "replaced": false
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateCancelBlockRfqQuoteResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateCancelBlockRfqResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "amount": 100000,
                    "asks": [],
                    "bids": [],
                    "block_rfq_id": 366,
                    "combo_id": "BTC-FS-1NOV24_PERP",
                    "creation_timestamp": 1729855159611,
                    "expiration_timestamp": 1729855459611,
                    "label": "example",
                    "legs": [
                      {
                        "direction": "sell",
                        "instrument_name": "BTC-1NOV24",
                        "ratio": 1
                      },
                      {
                        "direction": "buy",
                        "instrument_name": "BTC-PERPETUAL",
                        "ratio": 1
                      }
                    ],
                    "makers": [],
                    "role": "taker",
                    "state": "cancelled"
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateCancelBlockRfqResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateCancelBlockRfqTriggerResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "amount": 100,
                    "app_name": "Example Application",
                    "block_rfq_id": 123,
                    "combo_id": "BTC-CS-8NOV24-70000_72000",
                    "creation_timestamp": 1730798381504,
                    "disclosed": false,
                    "expiration_timestamp": 1730798481504,
                    "label": "My Block RFQ",
                    "legs": [
                      {
                        "instrument_name": "BTC-8NOV24-70000-C",
                        "ratio": 1
                      },
                      {
                        "instrument_name": "BTC-8NOV24-72000-C",
                        "ratio": 1
                      }
                    ],
                    "makers": [
                      "maker1",
                      "maker2"
                    ],
                    "mark_price": 0.025,
                    "min_trade_amount": 10,
                    "role": "taker",
                    "state": "open",
                    "taker_rating": "1-2",
                    "trade_trigger": {
                      "cancel_reason": "User cancelled",
                      "direction": "buy",
                      "price": 0.01,
                      "state": "cancelled"
                    }
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateCancelBlockRfqTriggerResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateCancelResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 4214,
                  "jsonrpc": "2.0",
                  "result": {
                    "amount": 5,
                    "api": false,
                    "creation_timestamp": 1550575961291,
                    "direction": "sell",
                    "instrument_name": "ETH-PERPETUAL",
                    "is_liquidation": false,
                    "is_rebalance": false,
                    "label": "",
                    "last_update_timestamp": 1550575961291,
                    "max_show": 5,
                    "order_id": "ETH-SLIS-12",
                    "order_state": "untriggered",
                    "order_type": "stop_market",
                    "post_only": false,
                    "price": "market_price",
                    "reduce_only": false,
                    "time_in_force": "good_til_cancelled",
                    "trigger": "index_price",
                    "trigger_price": 144.73,
                    "triggered": false
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateCancelResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateChangeMarginModelResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "currency": "eth",
                      "new_state": {
                        "available_balance": 0,
                        "initial_margin_rate": 0,
                        "maintenance_margin_rate": 0
                      },
                      "old_state": {
                        "available_balance": 0,
                        "initial_margin_rate": 0,
                        "maintenance_margin_rate": 0
                      }
                    },
                    {
                      "currency": "btc",
                      "new_state": {
                        "available_balance": 0.98106428,
                        "initial_margin_rate": 0.03252245,
                        "maintenance_margin_rate": 0.02710204
                      },
                      "old_state": {
                        "available_balance": 0.553590509,
                        "initial_margin_rate": 0.45407615,
                        "maintenance_margin_rate": 0.02862727
                      }
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateChangeMarginModelResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateCreateBlockRfqResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "amount": 20000,
                    "asks": [],
                    "bids": [],
                    "block_rfq_id": 507,
                    "combo_id": "BTC-15NOV24",
                    "creation_timestamp": 1731062187555,
                    "expiration_timestamp": 1731062487555,
                    "hedge": {
                      "amount": 10,
                      "direction": "buy",
                      "instrument_name": "BTC-PERPETUAL",
                      "price": 70000
                    },
                    "label": "example",
                    "legs": [
                      {
                        "direction": "sell",
                        "instrument_name": "BTC-15NOV24",
                        "ratio": 1
                      }
                    ],
                    "makers": [
                      "MAKER1"
                    ],
                    "role": "taker",
                    "state": "created"
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateCreateBlockRfqResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateCreateComboResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 6,
                  "jsonrpc": "2.0",
                  "result": {
                    "creation_timestamp": 1650960943000,
                    "id": "BTC-REV-29APR22-37500",
                    "instrument_id": 52,
                    "legs": [
                      {
                        "amount": 1,
                        "instrument_name": "BTC-29APR22-37500-C"
                      },
                      {
                        "amount": -1,
                        "instrument_name": "BTC-29APR22-37500-P"
                      }
                    ],
                    "state": "active",
                    "state_timestamp": 1650960943922
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateCreateComboResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateEditBlockRfqQuoteResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "amount": 20000,
                    "block_rfq_id": 3,
                    "block_rfq_quote_id": 8,
                    "creation_timestamp": 1731076586371,
                    "direction": "buy",
                    "filled_amount": 0,
                    "hedge": {
                      "amount": 10,
                      "direction": "buy",
                      "instrument_name": "BTC-PERPETUAL",
                      "price": 70000
                    },
                    "label": "example_quote",
                    "last_update_timestamp": 1731076638591,
                    "legs": [
                      {
                        "direction": "buy",
                        "instrument_name": "BTC-15NOV24",
                        "price": 74600,
                        "ratio": 1
                      }
                    ],
                    "price": 74600,
                    "quote_state": "open",
                    "replaced": true
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateEditBlockRfqQuoteResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateEditResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 9,
                  "jsonrpc": "2.0",
                  "result": {
                    "order": {
                      "amount": 150,
                      "api": true,
                      "average_price": 0.0,
                      "creation_timestamp": 1616155547764,
                      "direction": "buy",
                      "filled_amount": 0,
                      "instrument_name": "BTC-PERPETUAL",
                      "is_liquidation": false,
                      "is_rebalance": false,
                      "label": "i_love_deribit",
                      "last_update_timestamp": 1616155550773,
                      "max_show": 150,
                      "order_id": "94166",
                      "order_state": "open",
                      "order_type": "limit",
                      "post_only": false,
                      "price": 50111.0,
                      "reduce_only": false,
                      "replaced": true,
                      "time_in_force": "good_til_cancelled",
                      "web": false
                    },
                    "trades": []
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateEditResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetAccessLogResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "data": [
                      {
                        "city": "Local Town",
                        "country": "Local Country",
                        "id": 45,
                        "ip": "127.0.0.1",
                        "result": "success",
                        "timestamp": 1575876682576
                      },
                      {
                        "city": "Local Town",
                        "country": "Local Country",
                        "id": 44,
                        "ip": "127.0.0.1",
                        "result": "success",
                        "timestamp": 1575876459309
                      },
                      {
                        "city": "Local Town",
                        "country": "Local Country",
                        "id": 43,
                        "ip": "127.0.0.1",
                        "result": "disabled_tfa",
                        "timestamp": 1575546252774
                      }
                    ],
                    "records_total": 34
                  },
                  "testnet": false,
                  "usDiff": 1417,
                  "usIn": 1575903572350348,
                  "usOut": 1575903572351765
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetAccessLogResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetBlockRfqMakersResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": [
                    "MAKER1",
                    "MAKER2",
                    "MAKER3"
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetBlockRfqMakersResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetBlockRfqQuotesResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "amount": 20000,
                    "block_rfq_id": 1,
                    "block_rfq_quote_id": 8,
                    "creation_timestamp": 1731076586371,
                    "direction": "buy",
                    "execution_instruction": "all_or_none",
                    "filled_amount": 0,
                    "hedge": {
                      "amount": 10,
                      "direction": "buy",
                      "instrument_name": "BTC-PERPETUAL",
                      "price": 70000
                    },
                    "label": "example_quote",
                    "last_update_timestamp": 1731076638591,
                    "legs": [
                      {
                        "direction": "buy",
                        "instrument_name": "BTC-15NOV24",
                        "price": 74600,
                        "ratio": 1
                      }
                    ],
                    "price": 74600,
                    "quote_state": "open",
                    "replaced": false
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetBlockRfqQuotesResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetBlockRfqUserInfoResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "parent": {
                      "identity": "MAKER1",
                      "is_maker": true
                    },
                    "users": [
                      {
                        "identity": "TAKER1",
                        "is_maker": false,
                        "taker_rating": 98.5,
                        "user_id": 1
                      },
                      {
                        "taker_rating": 97.0,
                        "user_id": 2
                      }
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetBlockRfqUserInfoResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetBlockRfqsResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "block_rfqs": [
                      {
                        "amount": 40000,
                        "block_rfq_id": 508,
                        "combo_id": "BTC-15NOV24",
                        "creation_timestamp": 1731062457741,
                        "expiration_timestamp": 1731062757741,
                        "hedge": {
                          "amount": 10,
                          "direction": "buy",
                          "instrument_name": "BTC-PERPETUAL",
                          "price": 70000
                        },
                        "legs": [
                          {
                            "direction": "sell",
                            "instrument_name": "BTC-15NOV24",
                            "ratio": 1
                          }
                        ],
                        "role": "maker",
                        "state": "open",
                        "taker_rating": "1-2"
                      }
                    ],
                    "continuation": null
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetBlockRfqsResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetBlockTradeRequestsResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "broker_code": "jpqYKgg1",
                      "broker_name": "Test Broker",
                      "counterparty_state": {
                        "timestamp": 1742824052538,
                        "value": "approved"
                      },
                      "nonce": "29rKkuD3NSBPet4njrpNWEuHBm9s",
                      "role": "taker",
                      "state": {
                        "timestamp": 1742824052539,
                        "value": "initial"
                      },
                      "timestamp": 1742824052538,
                      "trades": [
                        {
                          "amount": 100000,
                          "direction": "buy",
                          "instrument_name": "BTC-PERPETUAL",
                          "price": 87516.83
                        }
                      ],
                      "user_id": 8,
                      "username": "Trader"
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetBlockTradeRequestsResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetBlockTradeResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "jsonrpc": "2.0",
                  "result": {
                    "id": "61",
                    "timestamp": 1565089523720,
                    "trades": [
                      {
                        "amount": 10,
                        "block_trade_id": "61",
                        "direction": "sell",
                        "fee": 0.00025,
                        "fee_currency": "BTC",
                        "index_price": 11738,
                        "instrument_name": "BTC-9AUG19-10250-C",
                        "iv": 0,
                        "liquidity": "T",
                        "matching_id": null,
                        "order_id": "343062",
                        "order_type": "limit",
                        "price": 0.0001,
                        "state": "filled",
                        "tick_direction": 3,
                        "timestamp": 1565089523719,
                        "trade_id": "92437",
                        "trade_seq": 37
                      },
                      {
                        "amount": 190,
                        "block_trade_id": "61",
                        "direction": "buy",
                        "fee": 1.64e-06,
                        "fee_currency": "BTC",
                        "index_price": 11737.98,
                        "instrument_name": "BTC-PERPETUAL",
                        "liquidity": "T",
                        "matching_id": null,
                        "order_id": "343058",
                        "order_type": "limit",
                        "price": 11590,
                        "state": "filled",
                        "tick_direction": 3,
                        "timestamp": 1565089523719,
                        "trade_id": "92435",
                        "trade_seq": 25350
                      }
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetBlockTradeResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetBlockTradesResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "id": "66",
                      "timestamp": 1565093070165,
                      "trades": [
                        {
                          "amount": 2.3,
                          "block_trade_id": "66",
                          "direction": "sell",
                          "fee": 0,
                          "fee_currency": "BTC",
                          "index_price": 11758.65,
                          "instrument_name": "BTC-9AUG19-11500-P",
                          "iv": 72.38,
                          "liquidity": "M",
                          "matching_id": null,
                          "order_id": "343121",
                          "order_type": "limit",
                          "price": 0.0151,
                          "state": "filled",
                          "tick_direction": 2,
                          "timestamp": 1565093070164,
                          "trade_id": "92462",
                          "trade_seq": 4
                        },
                        {
                          "amount": 50,
                          "block_trade_id": "66",
                          "direction": "sell",
                          "fee": 0,
                          "fee_currency": "BTC",
                          "index_price": 11758.65,
                          "instrument_name": "BTC-9AUG19",
                          "liquidity": "M",
                          "matching_id": null,
                          "order_id": "343117",
                          "order_type": "limit",
                          "price": 11753,
                          "state": "filled",
                          "tick_direction": 2,
                          "timestamp": 1565093070164,
                          "trade_id": "92460",
                          "trade_seq": 41
                        }
                      ]
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetBlockTradesResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetBrokerTradeRequestsResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 7,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "maker": {
                        "client_id": 1,
                        "client_link_id": 2,
                        "client_link_name": "Test Client 2",
                        "client_name": "Test Client",
                        "state": "initial",
                        "user_id": "***009"
                      },
                      "nonce": "3WqPoAsmde9aXCSEBVUmi2XxGkgA",
                      "state": "activated",
                      "taker": {
                        "client_id": 1,
                        "client_link_id": 1,
                        "client_link_name": "Test Client 1",
                        "client_name": "Test Client",
                        "state": "initial",
                        "user_id": "***008"
                      },
                      "timestamp": 1742824052547,
                      "trades": [
                        {
                          "amount": 100000,
                          "direction": "buy",
                          "instrument_name": "BTC-PERPETUAL",
                          "price": 87516.83
                        }
                      ]
                    },
                    {
                      "maker": {
                        "client_id": 1,
                        "client_link_id": 2,
                        "client_link_name": "Test Client 2",
                        "client_name": "Test Client",
                        "state": "approved",
                        "user_id": "***009"
                      },
                      "nonce": "29rKkuD3NSBPet4njrpNWEuHBm9s",
                      "state": "activated",
                      "taker": {
                        "client_id": 1,
                        "client_link_id": 1,
                        "client_link_name": "Test Client 1",
                        "client_name": "Test Client",
                        "state": "initial",
                        "user_id": "***008"
                      },
                      "timestamp": 1742824052538,
                      "trades": [
                        {
                          "amount": 100000,
                          "direction": "buy",
                          "instrument_name": "BTC-PERPETUAL",
                          "price": 87516.83
                        }
                      ]
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetBrokerTradeRequestsResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetBrokerTradesResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "history": [
                      {
                        "id": "BLOCK-7",
                        "maker": {
                          "client_id": 2,
                          "client_link_id": 2,
                          "client_link_name": "Test Client 2 l",
                          "client_name": "Test Client 2",
                          "user_id": "****009"
                        },
                        "taker": {
                          "client_id": 1,
                          "client_link_id": 1,
                          "client_link_name": "Test Client 1 l",
                          "client_name": "Test Client 1",
                          "user_id": "****008"
                        },
                        "timestamp": 1747239767111,
                        "trades": [
                          {
                            "amount": 100000,
                            "block_trade_id": "BLOCK-7",
                            "block_trade_leg_count": 1,
                            "contracts": 10000,
                            "direction": "buy",
                            "index_price": 102079.75,
                            "instrument_name": "BTC-PERPETUAL",
                            "mark_price": 102079.75,
                            "price": 102079.75,
                            "tick_direction": 1,
                            "timestamp": 1747239767111,
                            "trade_id": "7",
                            "trade_seq": 7
                          }
                        ]
                      }
                    ],
                    "next_start_id": 6
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetBrokerTradesResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetCancelOnDisconnectResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 220,
                  "jsonrpc": "2.0",
                  "result": {
                    "enabled": false,
                    "scope": "account"
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetCancelOnDisconnectResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetLegPricesResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "amount": 2,
                    "legs": [
                      {
                        "direction": "buy",
                        "instrument_name": "BTC-1NOV24-67000-C",
                        "price": 0.6001,
                        "ratio": 1
                      },
                      {
                        "direction": "sell",
                        "instrument_name": "BTC-1NOV24-66000-C",
                        "price": 0.0001,
                        "ratio": 1
                      }
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetLegPricesResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetMarginsResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 7,
                  "jsonrpc": "2.0",
                  "result": {
                    "buy": 0.0219949,
                    "max_price": 3759.24,
                    "min_price": 3684.8,
                    "sell": 0
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetMarginsResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetOpenOrdersResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1953,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "amount": 10,
                      "api": true,
                      "average_price": 0,
                      "creation_timestamp": 1550050597036,
                      "direction": "buy",
                      "filled_amount": 0,
                      "instrument_name": "BTC-15FEB19-3250-P",
                      "is_liquidation": false,
                      "is_rebalance": false,
                      "label": "fooBar",
                      "last_update_timestamp": 1550050597036,
                      "max_show": 10,
                      "order_id": "146062",
                      "order_state": "open",
                      "order_type": "limit",
                      "post_only": false,
                      "price": 0.0028,
                      "reduce_only": false,
                      "time_in_force": "good_til_cancelled"
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetOpenOrdersResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetOrderHistoryResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 9305,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "amount": 40,
                      "api": true,
                      "average_price": 3659.8,
                      "creation_timestamp": 1550661808761,
                      "direction": "buy",
                      "filled_amount": 40,
                      "instrument_name": "BTC-PERPETUAL",
                      "is_liquidation": false,
                      "is_rebalance": false,
                      "label": "",
                      "last_update_timestamp": 1550661808761,
                      "max_show": 40,
                      "order_id": "146475",
                      "order_state": "filled",
                      "order_type": "limit",
                      "post_only": false,
                      "price": 3886.5,
                      "reduce_only": false,
                      "time_in_force": "good_til_cancelled"
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetOrderHistoryResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetOrderMarginByIdsResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 5625,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "initial_margin": 0.00091156,
                      "initial_margin_currency": "ETH",
                      "order_id": "ETH-349278"
                    },
                    {
                      "initial_margin": 0,
                      "initial_margin_currency": "ETH",
                      "order_id": "ETH-349279"
                    },
                    {
                      "initial_margin": 0,
                      "initial_margin_currency": "ETH",
                      "order_id": "ETH-349280"
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetOrderMarginByIdsResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetOrderStateByLabelResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 4316,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "amount": 37,
                      "api": false,
                      "average_price": 118.94,
                      "creation_timestamp": 1550219749176,
                      "direction": "sell",
                      "filled_amount": 37,
                      "instrument_name": "ETH-PERPETUAL",
                      "is_liquidation": false,
                      "is_rebalance": false,
                      "label": "fooBar",
                      "last_update_timestamp": 1550219810944,
                      "max_show": 37,
                      "order_id": "ETH-331562",
                      "order_state": "filled",
                      "order_type": "limit",
                      "post_only": false,
                      "price": 118.94,
                      "reduce_only": false,
                      "time_in_force": "good_til_cancelled"
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetOrderStateByLabelResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetOrderStateResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 4316,
                  "jsonrpc": "2.0",
                  "result": {
                    "amount": 37,
                    "api": false,
                    "average_price": 118.94,
                    "creation_timestamp": 1550219749176,
                    "direction": "sell",
                    "filled_amount": 37,
                    "instrument_name": "ETH-PERPETUAL",
                    "is_liquidation": false,
                    "is_rebalance": false,
                    "label": "",
                    "last_update_timestamp": 1550219810944,
                    "max_show": 37,
                    "order_id": "ETH-331562",
                    "order_state": "filled",
                    "order_type": "limit",
                    "post_only": false,
                    "price": 118.94,
                    "reduce_only": false,
                    "time_in_force": "good_til_cancelled"
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetOrderStateResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetPositionResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 404,
                  "jsonrpc": "2.0",
                  "result": {
                    "average_price": 0,
                    "delta": 0,
                    "direction": "buy",
                    "estimated_liquidation_price": 0,
                    "floating_profit_loss": 0,
                    "index_price": 3555.86,
                    "initial_margin": 0,
                    "instrument_name": "BTC-PERPETUAL",
                    "interest_value": 1.7362511643080387,
                    "kind": "future",
                    "leverage": 100,
                    "maintenance_margin": 0,
                    "mark_price": 3556.62,
                    "open_orders_margin": 0.000165889,
                    "realized_profit_loss": 0,
                    "settlement_price": 3555.44,
                    "size": 0,
                    "size_currency": 0,
                    "total_profit_loss": 0
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetPositionResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetPositionsResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 2236,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "average_price": 7440.18,
                      "delta": 0.006687487,
                      "direction": "buy",
                      "estimated_liquidation_price": 1.74,
                      "floating_profit_loss": 0,
                      "index_price": 7466.79,
                      "initial_margin": 0.000197283,
                      "instrument_name": "BTC-PERPETUAL",
                      "interest_value": 1.7362511643080387,
                      "kind": "future",
                      "leverage": 34,
                      "maintenance_margin": 0.000143783,
                      "mark_price": 7476.65,
                      "open_orders_margin": 0.000197288,
                      "realized_funding": -1e-08,
                      "realized_profit_loss": -9e-09,
                      "settlement_price": 7476.65,
                      "size": 50,
                      "size_currency": 0.006687487,
                      "total_profit_loss": 3.2781e-05
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetPositionsResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetTransactionLogResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 4,
                  "jsonrpc": "2.0",
                  "result": {
                    "continuation": 61282,
                    "logs": [
                      {
                        "balance": 3001.22270418,
                        "cashflow": -2.5,
                        "change": -2.5,
                        "commission": 0,
                        "currency": "BTC",
                        "equity": 3000.9275869,
                        "id": 61312,
                        "info": {
                          "other_user": "Subaccount",
                          "other_user_id": 27,
                          "transfer_type": "subaccount"
                        },
                        "instrument_name": null,
                        "interest_pl": null,
                        "order_id": null,
                        "position": null,
                        "price": null,
                        "side": "-",
                        "timestamp": 1613659830333,
                        "trade_id": null,
                        "type": "transfer",
                        "user_id": 7,
                        "user_seq": 6009,
                        "username": "TestUser"
                      },
                      {
                        "amount": 1520,
                        "balance": 3003.72270418,
                        "cashflow": 0.00215706,
                        "change": 0.00215706,
                        "commission": null,
                        "currency": "BTC",
                        "equity": 3003.42821428,
                        "id": 61311,
                        "info": {
                          "floating_pl": 0.00220172,
                          "settlement_price": 51807
                        },
                        "instrument_name": "BTC-PERPETUAL",
                        "interest_pl": 9.93e-06,
                        "order_id": null,
                        "position": 1520,
                        "price": 51807.07,
                        "price_currency": "USD",
                        "session_rpl": -4.467e-05,
                        "session_upl": 0.00220172,
                        "side": "long",
                        "timestamp": 1613659544153,
                        "total_interest_pl": 1.243e-05,
                        "trade_id": null,
                        "type": "settlement",
                        "user_id": 7,
                        "user_seq": 6008,
                        "username": "TestUser"
                      },
                      {
                        "balance": 3003.72054712,
                        "cashflow": 0.65,
                        "change": 0.65,
                        "commission": 0,
                        "currency": "BTC",
                        "equity": 3003.4876111,
                        "id": 61291,
                        "info": {
                          "addr": "2N8prMvpZHr8aYqodX3S4yhz5wMxjY8La3p",
                          "deposit_type": "wallet",
                          "transaction": "de6eba075855f32c9510f338d3ca0900376cedcb9f7b142caccfbdc292d3237e"
                        },
                        "instrument_name": null,
                        "interest_pl": null,
                        "order_id": null,
                        "position": null,
                        "price": null,
                        "side": "-",
                        "timestamp": 1613657828414,
                        "trade_id": null,
                        "type": "deposit",
                        "user_id": 7,
                        "user_seq": 6007,
                        "username": "TestUser"
                      },
                      {
                        "amount": 0.7,
                        "balance": 3003.07054712,
                        "cashflow": -0.10759,
                        "change": -0.10759,
                        "commission": 0,
                        "currency": "BTC",
                        "equity": 3002.83270455,
                        "id": 61289,
                        "info": "Source: api",
                        "instrument_name": "BTC-19FEB21-49200-C",
                        "interest_pl": 0,
                        "ip": "11.222.33.44",
                        "mark_price": 0.04884653215049635,
                        "order_id": "67546",
                        "position": 0.7,
                        "price": 0.1537,
                        "price_currency": "BTC",
                        "profit_as_cashflow": false,
                        "side": "open buy",
                        "timestamp": 1613657734620,
                        "trade_id": "28349",
                        "type": "trade",
                        "user_id": 7,
                        "user_role": "maker",
                        "user_seq": 6006,
                        "username": "TestUser"
                      },
                      {
                        "amount": 0.3,
                        "balance": 3003.17813712,
                        "cashflow": -0.04611,
                        "change": -0.04611,
                        "commission": 0,
                        "currency": "BTC",
                        "equity": 3002.83270455,
                        "id": 61288,
                        "info": "Source: api",
                        "instrument_name": "BTC-19FEB21-49200-C",
                        "interest_pl": 0,
                        "mark_price": 0.04884653215049635,
                        "order_id": "67546",
                        "position": 0,
                        "price": 0.1537,
                        "price_currency": "BTC",
                        "profit_as_cashflow": false,
                        "side": "close buy",
                        "timestamp": 1613657734620,
                        "trade_id": "28349",
                        "type": "trade",
                        "user_id": 7,
                        "user_role": "maker",
                        "user_seq": 6005,
                        "username": "TestUser"
                      }
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetTransactionLogResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetTriggerOrderHistoryResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 2192,
                  "jsonrpc": "2.0",
                  "result": {
                    "continuation": "1555918941451.SLIS-103",
                    "entries": [
                      {
                        "amount": 10,
                        "direction": "buy",
                        "instrument_name": "BTC-PERPETUAL",
                        "offset": 277,
                        "order_id": "671473",
                        "order_state": "new",
                        "price": 5179.28,
                        "request": "trigger:order",
                        "timestamp": 1555918941451,
                        "trigger": "index",
                        "trigger_order_id": "SLIS-103",
                        "trigger_price": 5285
                      }
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetTriggerOrderHistoryResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetUserTradesByOrderResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 3466,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "amount": 100,
                      "direction": "buy",
                      "fee": 0.00036801,
                      "fee_currency": "ETH",
                      "index_price": 203.89,
                      "instrument_name": "ETH-PERPETUAL",
                      "liquidity": "T",
                      "mark_price": 203.78,
                      "matching_id": null,
                      "order_id": "ETH-584830574",
                      "order_type": "market",
                      "post_only": false,
                      "price": 203.8,
                      "reduce_only": false,
                      "state": "filled",
                      "tick_direction": 3,
                      "timestamp": 1590480712800,
                      "trade_id": "ETH-2696068",
                      "trade_seq": 1966042
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetUserTradesByOrderResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateGetUserTradesHistoryResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 9292,
                  "jsonrpc": "2.0",
                  "result": {
                    "has_more": false,
                    "trades": [
                      {
                        "amount": 1,
                        "direction": "sell",
                        "fee": 0.0004,
                        "fee_currency": "BTC",
                        "index_price": 8993.47,
                        "instrument_name": "BTC-27MAY20-8750-C",
                        "iv": 38.51,
                        "liquidity": "M",
                        "mark_price": 0.03135383,
                        "matching_id": null,
                        "order_id": "4008699030",
                        "order_type": "limit",
                        "post_only": false,
                        "price": 0.028,
                        "reduce_only": false,
                        "state": "filled",
                        "tick_direction": 1,
                        "timestamp": 1590480620145,
                        "trade_id": "48078936",
                        "trade_seq": 1,
                        "underlying_price": 8994.95
                      },
                      {
                        "amount": 10,
                        "direction": "buy",
                        "fee": -2.1e-07,
                        "fee_currency": "BTC",
                        "index_price": 9679.48,
                        "instrument_name": "BTC-26JUN20",
                        "liquidity": "M",
                        "mark_price": 9684,
                        "matching_id": null,
                        "order_id": "3993343822",
                        "order_type": "limit",
                        "post_only": false,
                        "price": 9681.5,
                        "reduce_only": false,
                        "state": "filled",
                        "tick_direction": 2,
                        "timestamp": 1589923311862,
                        "trade_id": "47958936",
                        "trade_seq": 299513
                      }
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateGetUserTradesHistoryResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivatePmeSimulateResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 2255,
                  "jsonrpc": "2.0",
                  "result": {
                    "aggregated_risk_vectors": {
                      "btc_btc": {
                        "extended": [
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0
                        ],
                        "standard": [
                          -0.05968587238095239,
                          -0.05968587238095239,
                          -0.05968587238095239,
                          -0.04272965863636364,
                          -0.04272965863636364,
                          -0.04272965863636364,
                          -0.02724789826086957,
                          -0.02724789826086957,
                          -0.02724789826086957,
                          -0.013056284583333334,
                          -0.013056284583333334,
                          -0.013056284583333334,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0,
                          0
                        ]
                      }
                    },
                    "index_price": {
                      "btc_usd": 65666.19
                    },
                    "initial_risk_vectors": {
                      "BTC-28JUN24": {
                        "extended": [
                          0.0002261969523809524,
                          0.0002261969523809524,
                          -0.0001637977931034483,
                          -0.0001637977931034483,
                          -0.0001637977931034483,
                          -0.0001637977931034483,
                          -0.0001637977931034483,
                          -0.0001637977931034483
                        ],
                        "standard": [
                          0.0002261969523809524,
                          0.0002261969523809524,
                          0.0002261969523809524,
                          0.00016193645454545456,
                          0.00016193645454545456,
                          0.00016193645454545456,
                          0.00010326382608695652,
                          0.00010326382608695652,
                          0.00010326382608695652,
                          4.948058333333334e-05,
                          4.948058333333334e-05,
                          4.948058333333334e-05,
                          0,
                          0,
                          0,
                          -4.567438461538462e-05,
                          -4.567438461538462e-05,
                          -4.567438461538462e-05,
                          -8.796548148148148e-05,
                          -8.796548148148148e-05,
                          -8.796548148148148e-05,
                          -0.0001272357857142857,
                          -0.0001272357857142857,
                          -0.0001272357857142857,
                          -0.00016379779310344832,
                          -0.00016379779310344832,
                          -0.00016379779310344832
                        ]
                      },
                      "BTC-PERPETUAL": {
                        "extended": [
                          -0.05991206933333334,
                          -0.05991206933333334,
                          0.04338460193103449,
                          0.04338460193103449,
                          0.04338460193103449,
                          0.04338460193103449,
                          0.04338460193103449,
                          0.04338460193103449
                        ],
                        "standard": [
                          -0.05991206933333334,
                          -0.05991206933333334,
                          -0.05991206933333334,
                          -0.04289159509090909,
                          -0.04289159509090909,
                          -0.04289159509090909,
                          -0.027351162086956524,
                          -0.027351162086956524,
                          -0.027351162086956524,
                          -0.013105765166666668,
                          -0.013105765166666668,
                          -0.013105765166666668,
                          0,
                          0,
                          0,
                          0.012097629384615385,
                          0.012097629384615385,
                          0.012097629384615385,
                          0.023299138074074074,
                          0.023299138074074074,
                          0.023299138074074074,
                          0.033700538999999995,
                          0.033700538999999995,
                          0.033700538999999995,
                          0.043384601931034494,
                          0.043384601931034494,
                          0.043384601931034494
                        ]
                      }
                    },
                    "margins": {
                      "btc": {
                        "initial_margin": 0.122861343,
                        "initial_margin_details": {
                          "mmp_margin": 0.06,
                          "open_orders_margin": 1.8212e-05,
                          "risk_matrix_margin": 0.06284313098,
                          "risk_matrix_margin_details": {
                            "correlation_contingency": 0,
                            "delta_shock": 0,
                            "roll_shock": 0.00315725898,
                            "worst_case": 0.05968587238095239,
                            "worst_case_bucket": {
                              "bucket": 1,
                              "index": 1,
                              "side": "left",
                              "source": "standard"
                            }
                          },
                          "spot_margin": 0
                        },
                        "maintenance_margin": 0.050274504784
                      }
                    },
                    "model_params": {
                      "currency": {
                        "btc": {
                          "annualised_move_risk": 0.075,
                          "correlation_set": false,
                          "equity_side_impact": "both",
                          "extended_dampener": 100000,
                          "haircut": 0,
                          "max_offsetable_pnl": 0,
                          "min_annualised_move": 0.01,
                          "pnl_offset": 0
                        },
                        "usd": {
                          "annualised_move_risk": 0.1,
                          "correlation_set": false,
                          "equity_side_impact": "none",
                          "extended_dampener": 25000,
                          "haircut": 0,
                          "max_offsetable_pnl": 0,
                          "min_annualised_move": 0.01,
                          "pnl_offset": 0
                        }
                      },
                      "currency_pair": {
                        "btc_usd": {
                          "delta_total_liq_shock_threshold": 20000000,
                          "extended_table_factor": 1,
                          "long_term_vega_power": 0.13,
                          "m_inc": 5e-05,
                          "max_delta_shock": 0.1,
                          "min_volatility_for_shock_up": 0.5,
                          "price_range": 0.16,
                          "short_term_vega_power": 0.3,
                          "volatility_range_down": 0.25,
                          "volatility_range_up": 0.5
                        }
                      },
                      "general": {
                        "buckets_count": 4,
                        "mm_factor": 0.8,
                        "timestamp": 1718619740501,
                        "vol_scenarios_count": 3
                      }
                    },
                    "portfolio": {
                      "currency": {},
                      "position": {
                        "BTC-28JUN24": -0.001187534,
                        "BTC-PERPETUAL": 0.314538364
                      }
                    },
                    "ticker": {
                      "BTC-28JUN24": {
                        "index_price": 65666.19,
                        "mark_price": 67371.75
                      },
                      "BTC-PERPETUAL": {
                        "index_price": 65666.19,
                        "mark_price": 65910.57
                      }
                    }
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivatePmeSimulateResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateSettlementResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 2192,
                  "jsonrpc": "2.0",
                  "result": {
                    "continuation": "xY7T6cusbMBNpH9SNmKb94jXSBxUPojJEdCPL4YociHBUgAhWQvEP",
                    "settlements": [
                      {
                        "index_price": 119.8,
                        "instrument_name": "ETH-22FEB19",
                        "mark_price": 121.67,
                        "position": -66,
                        "profit_loss": -0.001783937,
                        "session_profit_loss": 0.038358299,
                        "timestamp": 1550475692526,
                        "type": "settlement"
                      }
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateSettlementResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateSimulateBlockTradeResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "jsonrpc": "2.0",
                  "result": true
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateSimulateBlockTradeResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateSimulatePortfolioResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 2,
                  "jsonrpc": "2.0",
                  "result": {
                    "additional_reserve": 0,
                    "available_funds": 115871741.76065847,
                    "available_subaccount_transfer_funds": 0,
                    "available_withdrawal_funds": 115871741.76065847,
                    "balance": 150076473.4995114,
                    "cross_collateral_enabled": true,
                    "currency": "BTC",
                    "delta_total": 69080.932029,
                    "delta_total_map": {
                      "btc_usd": 68024.519462366
                    },
                    "equity": 150075253.91354558,
                    "fee_balance": 0,
                    "futures_pl": 39497.54616685,
                    "futures_session_rpl": 1.309136,
                    "futures_session_upl": -164.48253509,
                    "initial_margin": 37662472.03416069,
                    "locked_balance": 0,
                    "maintenance_margin": 30129215.84817124,
                    "margin_balance": 153534213.79481918,
                    "margin_model": "cross_pm",
                    "options_delta": 2883.38481,
                    "options_gamma": -0.03907,
                    "options_gamma_map": {
                      "btc_usd": -0.03907
                    },
                    "options_pl": 921.55562578,
                    "options_session_rpl": 0,
                    "options_session_upl": -174.67960675,
                    "options_theta": 142583.29246,
                    "options_theta_map": {
                      "btc_usd": 142583.29246
                    },
                    "options_value": -1056.41256672,
                    "options_vega": -39322.23046,
                    "options_vega_map": {
                      "btc_usd": -39322.23046
                    },
                    "portfolio_margining_enabled": true,
                    "projected_delta_total": 69080.932029,
                    "projected_initial_margin": 37662472.03416069,
                    "projected_maintenance_margin": 30129215.84817124,
                    "session_rpl": 1.309136,
                    "session_upl": -339.16214185,
                    "spot_reserve": 0,
                    "total_delta_total_usd": 6157454218.3753195,
                    "total_equity_usd": 13075634611389.318,
                    "total_initial_margin_usd": 3139528603778.822,
                    "total_maintenance_margin_usd": 2511559381417.215,
                    "total_margin_balance_usd": 12798550648250.61,
                    "total_pl": 40419.10179263
                  },
                  "testnet": true,
                  "usDiff": 13650,
                  "usIn": 1742210019774525,
                  "usOut": 1742210019788175
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateSimulatePortfolioResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateSubscribeResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 4235,
                  "jsonrpc": "2.0",
                  "result": [
                    "deribit_price_index.btc_usd"
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateSubscribeResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PrivateVerifyBlockTradeResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "jsonrpc": "2.0",
                  "result": {
                    "signature": "1565172710935.1ESE83qh.g6fbgRd4VWagaJz7xdi2WaV-q-d3J0njoz1jZavuRudZJZif9uH8XdUAx1LHsu0E3e0ZG_xe1UPYlwo41xRVrkWU6OMgygDRafUkEmBuk9iLqjc9rh4"
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PrivateVerifyBlockTradeResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicAuthResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 9929,
                  "jsonrpc": "2.0",
                  "result": {
                    "access_token": "a3f8c2e1d4b7f09e5c6a2d8b1e4f7c0a9d3b6e2f5a8c1d4e7b0f3a6c9d2e5f8",
                    "expires_in": 3600,
                    "scope": "wallet:user:read wallet:accounts:read wallet:transactions:read wallet:buys:create",
                    "token_type": "bearer"
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicAuthResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetAnnouncementsResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 3022,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
                      "id": 1550058362418,
                      "important": false,
                      "publication_timestamp": 1550058362418,
                      "title": "Example announcement"
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetAnnouncementsResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetBlockRfqTradesResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": {
                    "block_rfqs": [
                      {
                        "amount": 12.5,
                        "combo_id": "BTC-CS-28FEB25-100000_106000",
                        "direction": "sell",
                        "hedge": {
                          "amount": 50,
                          "direction": "sell",
                          "instrument_name": "BTC-PERPETUAL",
                          "price": 96000
                        },
                        "id": 6611,
                        "index_prices": {
                          "btc_usd": 96000,
                          "btc_usdc": 95950
                        },
                        "legs": [
                          {
                            "direction": "buy",
                            "instrument_name": "BTC-28FEB25-100000-C",
                            "price": 0.1,
                            "ratio": 1
                          },
                          {
                            "direction": "sell",
                            "instrument_name": "BTC-28FEB25-106000-C",
                            "price": 0.05,
                            "ratio": 1
                          }
                        ],
                        "mark_price": 0.010356754,
                        "timestamp": 1739803305362,
                        "trades": [
                          {
                            "amount": 12.5,
                            "direction": "sell",
                            "hedge_amount": 50,
                            "price": 0.05
                          }
                        ]
                      },
                      {
                        "amount": 12.5,
                        "combo_id": "BTC-CS-28FEB25-100000_106000",
                        "direction": "sell",
                        "hedge": {
                          "amount": 50,
                          "direction": "sell",
                          "instrument_name": "BTC-PERPETUAL",
                          "price": 96000
                        },
                        "id": 6600,
                        "index_prices": {
                          "btc_usd": 96000,
                          "btc_usdc": 95950
                        },
                        "legs": [
                          {
                            "direction": "buy",
                            "instrument_name": "BTC-28FEB25-100000-C",
                            "price": 0.1,
                            "ratio": 1
                          },
                          {
                            "direction": "sell",
                            "instrument_name": "BTC-28FEB25-106000-C",
                            "price": 0.05,
                            "ratio": 1
                          }
                        ],
                        "mark_price": 0.007458089,
                        "timestamp": 1739774397766,
                        "trades": [
                          {
                            "amount": 12.5,
                            "direction": "sell",
                            "hedge_amount": 50,
                            "price": 0.05
                          }
                        ]
                      },
                      {
                        "amount": 12.5,
                        "combo_id": "BTC-CS-17FEB25-89000_90000",
                        "direction": "sell",
                        "id": 6579,
                        "legs": [
                          {
                            "direction": "buy",
                            "instrument_name": "BTC-17FEB25-89000-C",
                            "price": 0.08,
                            "ratio": 1
                          },
                          {
                            "direction": "sell",
                            "instrument_name": "BTC-17FEB25-90000-C",
                            "price": 0.075,
                            "ratio": 1
                          }
                        ],
                        "mark_price": 0.010314468,
                        "timestamp": 1739743922308,
                        "trades": [
                          {
                            "amount": 12.5,
                            "direction": "sell",
                            "price": 0.005
                          }
                        ]
                      }
                    ],
                    "continuation": "1739739009234:6570"
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetBlockRfqTradesResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetBookSummaryResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 3659,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "ask_price": 0.34,
                      "base_currency": "ETH",
                      "bid_price": 0.1488,
                      "creation_timestamp": 1550227952163,
                      "high": 0.34,
                      "instrument_name": "ETH-22FEB19-140-P",
                      "interest_rate": 0.207,
                      "last": 0.34,
                      "low": 0.34,
                      "mark_price": 80,
                      "mid_price": 0.2444,
                      "open_interest": 0.55,
                      "price_change": -26.7793594,
                      "quote_currency": "USD",
                      "underlying_index": "index_price",
                      "underlying_price": 121.38,
                      "volume": 0.55
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetBookSummaryResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetComboDetailsResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 3,
                  "jsonrpc": "2.0",
                  "result": {
                    "creation_timestamp": 1650620575000,
                    "id": "BTC-FS-29APR22_PERP",
                    "instrument_id": 27,
                    "legs": [
                      {
                        "amount": -1,
                        "instrument_name": "BTC-PERPETUAL"
                      },
                      {
                        "amount": 1,
                        "instrument_name": "BTC-29APR22"
                      }
                    ],
                    "state": "active",
                    "state_timestamp": 1650620605150
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetComboDetailsResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetComboIdsResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": [
                    "BTC-CS-29APR22-39300_39600",
                    "BTC-FS-29APR22_PERP"
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetComboIdsResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetCombosResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 2,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "creation_timestamp": 1650636235000,
                      "id": "BTC-CS-29APR22-39300_39600",
                      "instrument_id": 28,
                      "legs": [
                        {
                          "amount": 1,
                          "instrument_name": "BTC-29APR22-39300-C"
                        },
                        {
                          "amount": -1,
                          "instrument_name": "BTC-29APR22-39600-C"
                        }
                      ],
                      "state": "active",
                      "state_timestamp": 1650636265101
                    },
                    {
                      "creation_timestamp": 1650620575000,
                      "id": "BTC-FS-29APR22_PERP",
                      "instrument_id": 27,
                      "legs": [
                        {
                          "amount": -1,
                          "instrument_name": "BTC-PERPETUAL"
                        },
                        {
                          "amount": 1,
                          "instrument_name": "BTC-29APR22"
                        }
                      ],
                      "state": "active",
                      "state_timestamp": 1650620605150
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetCombosResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetContractSizeResponse": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PublicGetContractSizeResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetCurrenciesResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 7538,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "coin_type": "ETHER",
                      "currency": "ETH",
                      "currency_long": "Ethereum",
                      "decimals": 6,
                      "min_confirmations": 1,
                      "min_withdrawal_fee": 0.0001,
                      "network_currency": "ETH",
                      "network_fee": 0.0006,
                      "withdrawal_fee": 0.0006,
                      "withdrawal_priorities": []
                    },
                    {
                      "coin_type": "BITCOIN",
                      "currency": "BTC",
                      "currency_long": "Bitcoin",
                      "decimals": 8,
                      "min_confirmations": 1,
                      "min_withdrawal_fee": 0.0001,
                      "network_currency": "BTC",
                      "network_fee": 0.0001,
                      "withdrawal_fee": 0.0001,
                      "withdrawal_priorities": [
                        {
                          "name": "very_low",
                          "value": 0.15
                        },
                        {
                          "name": "very_high",
                          "value": 1.5
                        }
                      ]
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetCurrenciesResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetDeliveryPricesResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 3601,
                  "jsonrpc": "2.0",
                  "result": {
                    "data": [
                      {
                        "date": "2020-01-02",
                        "delivery_price": 7131.214606410254
                      },
                      {
                        "date": "2019-12-21",
                        "delivery_price": 7150.943217777777
                      },
                      {
                        "date": "2019-12-20",
                        "delivery_price": 7175.988445532345
                      },
                      {
                        "date": "2019-12-19",
                        "delivery_price": 7189.540776143791
                      },
                      {
                        "date": "2019-12-18",
                        "delivery_price": 6698.353743857118
                      }
                    ],
                    "records_total": 58
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetDeliveryPricesResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetExpirationsResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "jsonrpc": "2.0",
                  "result": {
                    "future": [
                      "21SEP24",
                      "22SEP24",
                      "PERPETUAL"
                    ],
                    "option": [
                      "21SEP24",
                      "22SEP24",
                      "23SEP24"
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetExpirationsResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetFundingChartDataResponse": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PublicGetFundingChartDataResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetFundingRateHistoryResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 7617,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "index_price": 8222.87,
                      "interest_1h": -4.739622041017375e-07,
                      "interest_8h": -9.234260068476106e-05,
                      "prev_index_price": 8305.72,
                      "timestamp": 1569891600000
                    },
                    {
                      "index_price": 8286.49,
                      "interest_1h": -2.8583510923267753e-07,
                      "interest_8h": -6.720918180255509e-05,
                      "prev_index_price": 8222.87,
                      "timestamp": 1569895200000
                    },
                    {
                      "index_price": 8431.97,
                      "interest_1h": -3.815906848177951e-06,
                      "interest_8h": -3.544496169694662e-05,
                      "prev_index_price": 8286.49,
                      "timestamp": 1569898800000
                    },
                    {
                      "index_price": 8422.36,
                      "interest_1h": 8.312033064379086e-07,
                      "interest_8h": -1.404147515584998e-05,
                      "prev_index_price": 8431.97,
                      "timestamp": 1569902400000
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetFundingRateHistoryResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetFundingRateValueResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 7617,
                  "jsonrpc": "2.0",
                  "result": -0.00025056853702101664
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetFundingRateValueResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetHistoricalVolatilityResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 8387,
                  "jsonrpc": "2.0",
                  "result": [
                    [
                      1549720800000,
                      14.747743607344217
                    ],
                    [
                      1549720800000,
                      14.747743607344217
                    ],
                    [
                      1549724400000,
                      14.74257778551467
                    ],
                    [
                      1549728000000,
                      14.73502799931767
                    ],
                    [
                      1549731600000,
                      14.73502799931767
                    ],
                    [
                      1549735200000,
                      14.73502799931767
                    ],
                    [
                      1550228400000,
                      46.371891307340015
                    ]
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetHistoricalVolatilityResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetIndexChartDataResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": [
                    [
                      1573228800000,
                      8751.7138636
                    ],
                    [
                      1573232400000,
                      8751.7138636
                    ],
                    [
                      1573236000000,
                      8751.7138636
                    ],
                    [
                      1573239600000,
                      8751.7138636
                    ],
                    [
                      1573243200000,
                      8751.7138636
                    ]
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetIndexChartDataResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetIndexPriceNamesResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 25718,
                  "jsonrpc": "2.0",
                  "result": [
                    "btc_eth",
                    "btc_usdc",
                    "eth_usdc"
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetIndexPriceNamesResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetIndexPriceResponse": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/PublicGetIndexPriceResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetInstrumentResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 2,
                  "jsonrpc": "2.0",
                  "result": {
                    "base_currency": "BTC",
                    "block_trade_commission": 0.00015,
                    "block_trade_min_trade_amount": 25,
                    "block_trade_tick_size": 0.0001,
                    "contract_size": 1,
                    "counter_currency": "USD",
                    "creation_timestamp": 1671696002000,
                    "expiration_timestamp": 1673596800000,
                    "instrument_id": 144613,
                    "instrument_name": "BTC-13JAN23-16000-P",
                    "is_active": true,
                    "kind": "option",
                    "maker_commission": 0.0003,
                    "min_trade_amount": 0.1,
                    "option_type": "put",
                    "price_index": "btc_usd",
                    "quote_currency": "BTC",
                    "settlement_currency": "BTC",
                    "settlement_period": "week",
                    "state": "open",
                    "strike": 16000,
                    "taker_commission": 0.0003,
                    "tick_size": 0.0005,
                    "tick_size_steps": [
                      {
                        "above_price": 120,
                        "tick_size": 0.001
                      },
                      {
                        "above_price": 200,
                        "tick_size": 0.003
                      }
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetInstrumentResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetInstrumentsResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "base_currency": "BTC",
                      "block_trade_commission": 0.00025,
                      "block_trade_min_trade_amount": 200000,
                      "block_trade_tick_size": 0.01,
                      "contract_size": 10,
                      "counter_currency": "USD",
                      "creation_timestamp": 1664524802000,
                      "expiration_timestamp": 1695974400000,
                      "instrument_id": 138583,
                      "instrument_name": "BTC-29SEP23",
                      "instrument_type": "reversed",
                      "is_active": true,
                      "kind": "future",
                      "maker_commission": 0,
                      "max_leverage": 50,
                      "max_liquidation_commission": 0.0075,
                      "min_trade_amount": 10,
                      "price_index": "btc_usd",
                      "quote_currency": "USD",
                      "settlement_currency": "BTC",
                      "settlement_period": "month",
                      "state": "open",
                      "taker_commission": 0.0005,
                      "tick_size": 2.5,
                      "tick_size_steps": []
                    },
                    {
                      "base_currency": "BTC",
                      "block_trade_commission": 0.00025,
                      "block_trade_min_trade_amount": 200000,
                      "block_trade_tick_size": 0.01,
                      "contract_size": 10,
                      "counter_currency": "USD",
                      "creation_timestamp": 1534167754000,
                      "expiration_timestamp": 32503708800000,
                      "instrument_id": 124972,
                      "instrument_name": "BTC-PERPETUAL",
                      "instrument_type": "reversed",
                      "is_active": true,
                      "kind": "future",
                      "maker_commission": 0,
                      "max_leverage": 50,
                      "max_liquidation_commission": 0.0075,
                      "min_trade_amount": 10,
                      "price_index": "btc_usd",
                      "quote_currency": "USD",
                      "settlement_currency": "BTC",
                      "settlement_period": "perpetual",
                      "state": "open",
                      "taker_commission": 0.0005,
                      "tick_size": 0.5,
                      "tick_size_steps": []
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetInstrumentsResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetMarkPriceHistoryResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 25,
                  "jsonrpc": "2.0",
                  "result": [
                    [
                      1608142381229,
                      0.5165791606037885
                    ],
                    [
                      1608142380231,
                      0.5165737855432504
                    ],
                    [
                      1608142379227,
                      0.5165768236356326
                    ]
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetMarkPriceHistoryResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetOrderBookResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 8772,
                  "jsonrpc": "2.0",
                  "result": {
                    "asks": [],
                    "best_ask_amount": 0.0,
                    "best_ask_price": 0.0,
                    "best_bid_amount": 30.0,
                    "best_bid_price": 3955.75,
                    "bids": [
                      [
                        3955.75,
                        30.0
                      ],
                      [
                        3940.75,
                        102020.0
                      ],
                      [
                        3423.0,
                        42840.0
                      ]
                    ],
                    "change_id": 474988,
                    "current_funding": 0.00500063,
                    "funding_8h": 0.00455263,
                    "index_price": 3910.46,
                    "instrument_name": "BTC-PERPETUAL",
                    "last_price": 3955.75,
                    "mark_price": 3931.97,
                    "max_price": 3971.74,
                    "min_price": 3932.22,
                    "open_interest": 45.27600333464605,
                    "settlement_price": 3925.85,
                    "state": "open",
                    "stats": {
                      "high": 3976.25,
                      "low": 3940.75,
                      "price_change": 0.6913,
                      "volume": 93.35589552
                    },
                    "timestamp": 1550757626706
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetOrderBookResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetTimeResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 7365,
                  "jsonrpc": "2.0",
                  "result": 1550147385946
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetTimeResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetTradesVolumesResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 6387,
                  "jsonrpc": "2.0",
                  "result": [
                    {
                      "calls_volume": 145,
                      "currency": "BTC",
                      "futures_volume": 6.25578452,
                      "puts_volume": 48,
                      "spot_volume": 11.1
                    },
                    {
                      "calls_volume": 37.4,
                      "currency": "ETH",
                      "futures_volume": 374.392173,
                      "puts_volume": 122.65,
                      "spot_volume": 57.7
                    }
                  ]
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetTradesVolumesResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetTradingviewChartDataResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 833,
                  "jsonrpc": "2.0",
                  "result": {
                    "close": [
                      5052.95,
                      5013.59
                    ],
                    "cost": [
                      19000.0,
                      23400.0
                    ],
                    "high": [
                      5185.45,
                      5250.87
                    ],
                    "low": [
                      4728.94,
                      4726.6
                    ],
                    "open": [
                      4963.42,
                      4986.29
                    ],
                    "status": "ok",
                    "ticks": [
                      1554373800000,
                      1554375600000
                    ],
                    "volume": [
                      19.007942601,
                      20.095877981
                    ]
                  },
                  "testnet": false,
                  "usDiff": 205,
                  "usIn": 1554381680742493,
                  "usOut": 1554381680742698
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetTradingviewChartDataResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicGetVolatilityIndexDataResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 5,
                  "jsonrpc": "2.0",
                  "result": {
                    "continuation": null,
                    "data": [
                      [
                        1598019300000,
                        0.210084879,
                        0.212860821,
                        0.210084879,
                        0.212860821
                      ],
                      [
                        1598019360000,
                        0.212869011,
                        0.212987527,
                        0.212869011,
                        0.212987527
                      ],
                      [
                        1598019420000,
                        0.212987723,
                        0.212992597,
                        0.212987723,
                        0.212992597
                      ]
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicGetVolatilityIndexDataResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicSettlementResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 5482,
                  "jsonrpc": "2.0",
                  "result": {
                    "continuation": "2Z7mdtavzYvfuyYcHkJXvPTr9ZSMsEzM3sLCH7AbYEDd1AzTXY2hnhegQDiaP1TtU4b5iSJZ4",
                    "settlements": [
                      {
                        "index_price": 3796.43,
                        "instrument_name": "BTC-22FEB19",
                        "mark_price": 3578.16,
                        "position": 240,
                        "profit_loss": -9.999999999886402e-10,
                        "session_profit_loss": 0.116509752,
                        "timestamp": 1550502000023,
                        "type": "settlement"
                      }
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicSettlementResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicStatusResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 55,
                  "jsonrpc": "2.0",
                  "result": {
                    "locked": true,
                    "locked_currencies": [
                      "BTC",
                      "ETH"
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicStatusResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicTestResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 8212,
                  "jsonrpc": "2.0",
                  "result": {
                    "version": "1.2.26"
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicTestResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicTickerResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 8106,
                  "jsonrpc": "2.0",
                  "result": {
                    "best_ask_amount": 53040,
                    "best_ask_price": 36290,
                    "best_bid_amount": 4600,
                    "best_bid_price": 36289.5,
                    "current_funding": 0,
                    "estimated_delivery_price": 36297.02,
                    "funding_8h": 2.203e-05,
                    "index_price": 36297.02,
                    "instrument_name": "BTC-PERPETUAL",
                    "interest_value": 1.7362511643080387,
                    "last_price": 36289.5,
                    "mark_price": 36288.31,
                    "max_price": 36833.4,
                    "min_price": 35744.73,
                    "open_interest": 502231260,
                    "settlement_price": 36169.49,
                    "state": "open",
                    "stats": {
                      "high": 36824.5,
                      "low": 35213.5,
                      "price_change": 0.2362,
                      "volume": 7831.26548117,
                      "volume_usd": 282615600
                    },
                    "timestamp": 1623059681955
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicTickerResponse"
            }
          }
        },
        "description": "Success response"
      },
      "PublicTradesHistoryResponse": {
        "content": {
          "application/json": {
            "examples": {
              "response": {
                "description": "Response example",
                "value": {
                  "id": 1469,
                  "jsonrpc": "2.0",
                  "result": {
                    "has_more": true,
                    "trades": [
                      {
                        "amount": 3.0,
                        "contracts": 3.0,
                        "direction": "buy",
                        "index_price": 66930.31,
                        "instrument_name": "BTC-24APR26-72000-C",
                        "iv": 45.91,
                        "mark_price": 0.05253883,
                        "price": 0.0525,
                        "tick_direction": 2,
                        "timestamp": 1770984454552,
                        "trade_id": "415305279",
                        "trade_seq": 467
                      }
                    ]
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PublicTradesHistoryResponse"
            }
          }
        },
        "description": "Success response"
      }
    },
    "schemas": {
      "ErrorMessageResponse": {
        "properties": {
          "error": {
            "type": "integer"
          },
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "jsonrpc",
          "message",
          "error"
        ],
        "type": "object"
      },
      "Getunsubscribe200response": {
        "properties": {
          "id": {
            "example": 8691,
            "type": "integer"
          },
          "jsonrpc": {
            "example": "2.0",
            "type": "string"
          },
          "result": {
            "description": "List of channels that were successfully unsubscribed in this request",
            "example": [
              "deribit_price_index.btc_usd"
            ],
            "items": {
              "type": "string",
              "x-deribit-type": "channel"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "OkResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "description": "Result of method execution. `ok` in case of success",
            "enum": [
              "ok"
            ],
            "type": "string"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateAcceptBlockRfqResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "block_trades": {
                "items": {
                  "$ref": "#/components/schemas/block_trade"
                },
                "type": "array"
              },
              "trade_trigger": {
                "properties": {
                  "direction": {
                    "enum": [
                      "buy",
                      "sell"
                    ],
                    "type": "string"
                  },
                  "price": {
                    "type": "number"
                  },
                  "state": {
                    "enum": [
                      "untriggered"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              }
            },
            "required": [
              "trade_trigger",
              "block_trades"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateAccountResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "additional_reserve": {
                "$ref": "#/components/schemas/additional_reserve"
              },
              "affiliate_promotion_fee": {
                "description": "Affiliate promotion fee (if greater than 0.0)",
                "example": 0.0,
                "type": "number"
              },
              "available_funds": {
                "description": "The account's available funds. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
                "example": 2.2638913,
                "type": "number"
              },
              "available_withdrawal_funds": {
                "description": "The account's available to withdrawal funds",
                "example": 2.26,
                "type": "number"
              },
              "balance": {
                "description": "The account's balance",
                "example": 3.4906363,
                "type": "number"
              },
              "creation_timestamp": {
                "description": "Time at which the account was created (milliseconds since the Unix epoch; available when parameter `extended` = `true`)",
                "example": 1542100802842,
                "type": "integer"
              },
              "cross_collateral_enabled": {
                "description": "When `true` cross collateral is enabled for user",
                "example": true,
                "type": "boolean"
              },
              "currency": {
                "description": "The selected currency",
                "example": "ETH",
                "type": "string"
              },
              "delta_total": {
                "$ref": "#/components/schemas/delta_total"
              },
              "deposit_address": {
                "description": "The deposit address for the account (if available)",
                "example": "14diAAyXL5UzhPTCKC998ch2GV7DMb7yDi",
                "type": "string"
              },
              "email": {
                "description": "User email (available when parameter `extended` = `true`)",
                "example": "support@deribit.com",
                "type": "string"
              },
              "equity": {
                "description": "The account's current equity",
                "example": 2.6437733,
                "type": "number"
              },
              "estimated_liquidation_ratio": {
                "$ref": "#/components/schemas/estimated_liquidation_ratio"
              },
              "fee_balance": {
                "$ref": "#/components/schemas/fee_balance"
              },
              "fee_group": {
                "description": "Fee group indicates the level of fee discounts applied to an account. Use `extended`: `true` to view this field. If the field is missing, the account is not assigned to any fee group. **📖 Related Support Article:** [Automatically applied volume based fee discounts](https://support.deribit.com/hc/en-us/articles/25944746248989-Fees#heading-11)",
                "type": "string"
              },
              "fees": {
                "additionalProperties": {
                  "additionalProperties": {
                    "properties": {
                      "block_trade": {
                        "description": "Block trade fee (if applicable)",
                        "type": "number"
                      },
                      "default": {
                        "properties": {
                          "maker": {
                            "description": "Maker fee",
                            "type": "number"
                          },
                          "taker": {
                            "description": "Taker fee",
                            "type": "number"
                          },
                          "type": {
                            "description": "Fee type - `relative` if fee is calculated as a fraction of base instrument fee, `fixed` if fee is calculated solely using user fee",
                            "type": "string"
                          }
                        },
                        "required": [
                          "type",
                          "taker",
                          "maker"
                        ],
                        "type": "object"
                      }
                    },
                    "required": [
                      "default"
                    ],
                    "type": "object"
                  },
                  "type": "object"
                },
                "description": "Fee structure for all currency pairs and instrument types related to the currency (available when parameter `extended` = `true` and user has any discounts). Keys are index names (e.g., \"btc_usd\"), values are objects with instrument types as keys (option, perpetual, future).",
                "type": "object"
              },
              "futures_pl": {
                "description": "Futures profit and Loss",
                "example": 0,
                "type": "number"
              },
              "futures_session_rpl": {
                "description": "Futures session realized profit and Loss",
                "example": 0,
                "type": "number"
              },
              "futures_session_upl": {
                "description": "Futures session unrealized profit and Loss",
                "example": 0,
                "type": "number"
              },
              "has_non_block_chain_equity": {
                "description": "Optional field returned with value `true` when user has non block chain equity that is excluded from proof of reserve calculations",
                "type": "boolean"
              },
              "id": {
                "description": "Account id (available when parameter `extended` = `true`)",
                "example": 12354,
                "type": "integer"
              },
              "initial_margin": {
                "description": "The account's initial margin. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
                "example": 0.379882,
                "type": "number"
              },
              "interuser_transfers_enabled": {
                "description": "`true` when the inter-user transfers are enabled for user (available when parameter `extended` = `true`)",
                "example": false,
                "type": "boolean"
              },
              "is_direct_access_allowed": {
                "description": "Whether Direct Access trading is enabled for the account.",
                "example": false,
                "type": "boolean"
              },
              "limits": {
                "$ref": "#/components/schemas/api_limits"
              },
              "login_enabled": {
                "description": "Whether account is loginable using email and password (available when parameter `extended` = `true` and account is a subaccount)",
                "example": false,
                "type": "boolean"
              },
              "maintenance_margin": {
                "description": "The maintenance margin. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
                "example": 0.1334519,
                "type": "number"
              },
              "margin_balance": {
                "description": "The account's margin balance. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
                "example": 2.25,
                "type": "number"
              },
              "margin_model": {
                "description": "Name of user's currently enabled margin model",
                "example": "segregated_sm",
                "type": "string"
              },
              "mmp_enabled": {
                "description": "Whether MMP is enabled (available when parameter `extended` = `true`)",
                "example": false,
                "type": "boolean"
              },
              "options_delta": {
                "description": "Options summary delta",
                "example": 0,
                "type": "number"
              },
              "options_gamma": {
                "description": "Options summary gamma",
                "example": 0,
                "type": "number"
              },
              "options_gamma_map": {
                "description": "Map of options' gammas per index",
                "type": "object"
              },
              "options_pl": {
                "description": "Options profit and Loss",
                "example": 0,
                "type": "number"
              },
              "options_session_rpl": {
                "description": "Options session realized profit and Loss",
                "example": 0,
                "type": "number"
              },
              "options_session_upl": {
                "description": "Options session unrealized profit and Loss",
                "example": 0,
                "type": "number"
              },
              "options_theta": {
                "description": "Options summary theta",
                "example": 0,
                "type": "number"
              },
              "options_theta_map": {
                "description": "Map of options' thetas per index",
                "type": "object"
              },
              "options_value": {
                "description": "Options value",
                "example": 0,
                "type": "number"
              },
              "options_vega": {
                "description": "Options summary vega",
                "example": 0,
                "type": "number"
              },
              "options_vega_map": {
                "description": "Map of options' vegas per index",
                "type": "object"
              },
              "portfolio_margining_enabled": {
                "description": "`true` when portfolio margining is enabled for user",
                "example": true,
                "type": "boolean"
              },
              "projected_delta_total": {
                "$ref": "#/components/schemas/projected_delta_total"
              },
              "projected_initial_margin": {
                "$ref": "#/components/schemas/projected_initial_margin"
              },
              "projected_maintenance_margin": {
                "$ref": "#/components/schemas/projected_maintenance_margin"
              },
              "receive_notifications": {
                "description": "Whether the account receives notifications",
                "example": false,
                "type": "boolean"
              },
              "referrer_id": {
                "description": "Optional identifier of the referrer (of the affiliation program, and available when parameter `extended` = `true`), which link was used by this account at registration. It coincides with suffix of the affiliation link path after `/reg-`",
                "example": "517.6035",
                "type": "string"
              },
              "security_keys_enabled": {
                "description": "Whether Security Key authentication is enabled (available when parameter `extended` = `true`)",
                "example": false,
                "type": "boolean"
              },
              "self_trading_extended_to_subaccounts": {
                "description": "`true` if self trading rejection behavior is applied to trades between subaccounts (available when parameter `extended` = `true`)",
                "type": "string"
              },
              "self_trading_reject_mode": {
                "description": "Self trading rejection behavior - `reject_taker` or `cancel_maker` (available when parameter `extended` = `true`)",
                "type": "string"
              },
              "session_rpl": {
                "$ref": "#/components/schemas/rpl"
              },
              "session_upl": {
                "$ref": "#/components/schemas/upl"
              },
              "spot_reserve": {
                "description": "The account's balance reserved in active spot orders",
                "example": 0.3,
                "type": "number"
              },
              "system_name": {
                "description": "System generated user nickname (available when parameter `extended` = `true`)",
                "example": "myname",
                "type": "string"
              },
              "total_delta_total_usd": {
                "description": "Optional (only for users using cross margin). The account's total delta total in all cross collateral currencies, expressed in USD",
                "example": 1.8,
                "type": "number"
              },
              "total_equity_usd": {
                "description": "Optional (only for users using cross margin). The account's total equity in all cross collateral currencies, expressed in USD",
                "example": 2.6437733,
                "type": "number"
              },
              "total_initial_margin_usd": {
                "description": "Optional (only for users using cross margin). The account's total initial margin in all cross collateral currencies, expressed in USD",
                "example": 0.379882,
                "type": "number"
              },
              "total_maintenance_margin_usd": {
                "description": "Optional (only for users using cross margin). The account's total maintenance margin in all cross collateral currencies, expressed in USD",
                "example": 0.1334519,
                "type": "number"
              },
              "total_margin_balance_usd": {
                "description": "Optional (only for users using cross margin). The account's total margin balance in all cross collateral currencies, expressed in USD",
                "example": 2.25,
                "type": "number"
              },
              "total_pl": {
                "description": "Profit and loss",
                "example": 0.02032221,
                "type": "number"
              },
              "trading_products_details": {
                "description": "Which trading products are enabled or can be overwritten for the account",
                "type": "object"
              },
              "type": {
                "description": "Account type (available when parameter `extended` = `true`)",
                "enum": [
                  "main",
                  "subaccount"
                ],
                "type": "string"
              },
              "username": {
                "description": "Account name (given by user) (available when parameter `extended` = `true`)",
                "example": "name",
                "type": "string"
              }
            },
            "required": [
              "equity",
              "currency",
              "maintenance_margin",
              "initial_margin",
              "available_funds",
              "available_withdrawal_funds",
              "balance",
              "session_upl",
              "session_rpl",
              "total_pl",
              "options_pl",
              "options_session_upl",
              "options_session_rpl",
              "options_delta",
              "options_gamma",
              "options_vega",
              "options_value",
              "options_theta",
              "futures_pl",
              "options_gamma_map",
              "options_theta_map",
              "options_vega_map",
              "futures_session_upl",
              "futures_session_rpl",
              "projected_maintenance_margin",
              "delta_total",
              "projected_delta_total",
              "security_keys_enabled",
              "system_name",
              "username",
              "email",
              "type",
              "id"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateAccountSummariesResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "affiliate_promotion_fee": {
                "description": "Affiliate promotion fee (if greater than 0.0)",
                "example": 0.0,
                "type": "number"
              },
              "block_rfq_self_match_prevention": {
                "description": "When Block RFQ Self Match Prevention is enabled, it ensures that RFQs cannot be executed between accounts that belong to the same legal entity. This setting is independent of the general self-match prevention settings and must be configured separately.",
                "type": "string"
              },
              "creation_timestamp": {
                "description": "Time at which the account was created (milliseconds since the Unix epoch; available when parameter `extended` = `true`)",
                "example": 1542100802842,
                "type": "integer"
              },
              "email": {
                "description": "User email (available when parameter `extended` = `true`)",
                "example": "support@deribit.com",
                "type": "string"
              },
              "id": {
                "description": "Account id (available when parameter `extended` = `true`)",
                "example": 12354,
                "type": "integer"
              },
              "interuser_transfers_enabled": {
                "description": "`true` when the inter-user transfers are enabled for user (available when parameter `extended` = `true`)",
                "example": false,
                "type": "boolean"
              },
              "login_enabled": {
                "description": "Whether account is loginable using email and password (available when parameter `extended` = `true` and account is a subaccount)",
                "example": false,
                "type": "boolean"
              },
              "mmp_enabled": {
                "description": "Whether MMP is enabled (available when parameter `extended` = `true`)",
                "example": false,
                "type": "boolean"
              },
              "receive_notifications": {
                "description": "Whether the account receives notifications",
                "example": false,
                "type": "boolean"
              },
              "referrer_id": {
                "description": "Optional identifier of the referrer (of the affiliation program, and available when parameter `extended` = `true`), which link was used by this account at registration. It coincides with suffix of the affiliation link path after `/reg-`",
                "example": "517.6035",
                "type": "string"
              },
              "security_keys_enabled": {
                "description": "Whether Security Key authentication is enabled (available when parameter `extended` = `true`)",
                "example": false,
                "type": "boolean"
              },
              "self_trading_extended_to_subaccounts": {
                "description": "`true` if self trading rejection behavior is applied to trades between subaccounts (available when parameter `extended` = `true`)",
                "type": "string"
              },
              "self_trading_reject_mode": {
                "description": "Self trading rejection behavior - `reject_taker` or `cancel_maker` (available when parameter `extended` = `true`)",
                "type": "string"
              },
              "summaries": {
                "description": "Aggregated list of per-currency account summaries",
                "items": {
                  "properties": {
                    "additional_reserve": {
                      "$ref": "#/components/schemas/additional_reserve"
                    },
                    "affiliate_promotion_fee": {
                      "description": "Affiliate promotion fee (if greater than 0.0)",
                      "example": 0.0,
                      "type": "number"
                    },
                    "available_funds": {
                      "description": "The account's available funds. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
                      "example": 2.2638913,
                      "type": "number"
                    },
                    "available_withdrawal_funds": {
                      "description": "The account's available to withdrawal funds",
                      "example": 2.26,
                      "type": "number"
                    },
                    "balance": {
                      "description": "The account's balance",
                      "example": 3.4906363,
                      "type": "number"
                    },
                    "cross_collateral_enabled": {
                      "description": "When `true` cross collateral is enabled for user",
                      "example": true,
                      "type": "boolean"
                    },
                    "currency": {
                      "description": "Currency of the summary",
                      "example": "ETH",
                      "type": "string"
                    },
                    "delta_total": {
                      "$ref": "#/components/schemas/delta_total"
                    },
                    "deposit_address": {
                      "description": "The deposit address for the account (if available)",
                      "example": "14diAAyXL5UzhPTCKC998ch2GV7DMb7yDi",
                      "type": "string"
                    },
                    "equity": {
                      "description": "The account's current equity",
                      "example": 2.6437733,
                      "type": "number"
                    },
                    "estimated_liquidation_ratio": {
                      "$ref": "#/components/schemas/estimated_liquidation_ratio"
                    },
                    "fee_balance": {
                      "$ref": "#/components/schemas/fee_balance"
                    },
                    "fee_group": {
                      "description": "Fee group indicates the level of fee discounts applied to an account. Use `extended`: `true` to view this field. If the field is missing, the account is not assigned to any fee group. **📖 Related Support Article:** [Automatically applied volume based fee discounts](https://support.deribit.com/hc/en-us/articles/25944746248989-Fees#heading-11)",
                      "type": "string"
                    },
                    "fees": {
                      "additionalProperties": {
                        "additionalProperties": {
                          "properties": {
                            "block_trade": {
                              "description": "Block trade fee (if applicable)",
                              "type": "number"
                            },
                            "default": {
                              "properties": {
                                "maker": {
                                  "description": "Maker fee",
                                  "type": "number"
                                },
                                "taker": {
                                  "description": "Taker fee",
                                  "type": "number"
                                },
                                "type": {
                                  "description": "Fee calculation type (e.g., fixed, relative)",
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "taker",
                                "maker"
                              ],
                              "type": "object"
                            }
                          },
                          "required": [
                            "default"
                          ],
                          "type": "object"
                        },
                        "type": "object"
                      },
                      "description": "Fee structure for all currency pairs and instrument types related to the currency (available when parameter `extended` = `true` and user has any discounts). Keys are index names (e.g., \"btc_usd\"), values are objects with instrument types as keys (option, perpetual, future).",
                      "type": "object"
                    },
                    "futures_pl": {
                      "description": "Futures profit and Loss",
                      "example": 0,
                      "type": "number"
                    },
                    "futures_session_rpl": {
                      "description": "Futures session realized profit and Loss",
                      "example": 0,
                      "type": "number"
                    },
                    "futures_session_upl": {
                      "description": "Futures session unrealized profit and Loss",
                      "example": 0,
                      "type": "number"
                    },
                    "has_non_block_chain_equity": {
                      "description": "Optional field returned with value `true` when user has non block chain equity that is excluded from proof of reserve calculations",
                      "type": "boolean"
                    },
                    "initial_margin": {
                      "description": "The account's initial margin. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
                      "example": 0.379882,
                      "type": "number"
                    },
                    "limits": {
                      "$ref": "#/components/schemas/api_limits"
                    },
                    "maintenance_margin": {
                      "description": "The maintenance margin. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
                      "example": 0.1334519,
                      "type": "number"
                    },
                    "margin_balance": {
                      "description": "The account's margin balance. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
                      "example": 2.25,
                      "type": "number"
                    },
                    "margin_model": {
                      "description": "Name of user's currently enabled margin model",
                      "example": "segregated_sm",
                      "type": "string"
                    },
                    "options_delta": {
                      "description": "Options summary delta",
                      "example": 0,
                      "type": "number"
                    },
                    "options_gamma": {
                      "description": "Options summary gamma",
                      "example": 0,
                      "type": "number"
                    },
                    "options_gamma_map": {
                      "description": "Map of options' gammas per index",
                      "type": "object"
                    },
                    "options_pl": {
                      "description": "Options profit and Loss",
                      "example": 0,
                      "type": "number"
                    },
                    "options_session_rpl": {
                      "description": "Options session realized profit and Loss",
                      "example": 0,
                      "type": "number"
                    },
                    "options_session_upl": {
                      "description": "Options session unrealized profit and Loss",
                      "example": 0,
                      "type": "number"
                    },
                    "options_theta": {
                      "description": "Options summary theta",
                      "example": 0,
                      "type": "number"
                    },
                    "options_theta_map": {
                      "description": "Map of options' thetas per index",
                      "type": "object"
                    },
                    "options_value": {
                      "description": "Options value",
                      "example": 0,
                      "type": "number"
                    },
                    "options_vega": {
                      "description": "Options summary vega",
                      "example": 0,
                      "type": "number"
                    },
                    "options_vega_map": {
                      "description": "Map of options' vegas per index",
                      "type": "object"
                    },
                    "portfolio_margining_enabled": {
                      "description": "`true` when portfolio margining is enabled for user",
                      "example": true,
                      "type": "boolean"
                    },
                    "projected_delta_total": {
                      "$ref": "#/components/schemas/projected_delta_total"
                    },
                    "projected_initial_margin": {
                      "$ref": "#/components/schemas/projected_initial_margin"
                    },
                    "projected_maintenance_margin": {
                      "$ref": "#/components/schemas/projected_maintenance_margin"
                    },
                    "receive_notifications": {
                      "description": "Whether the account receives notifications",
                      "example": false,
                      "type": "boolean"
                    },
                    "session_rpl": {
                      "$ref": "#/components/schemas/rpl"
                    },
                    "session_upl": {
                      "$ref": "#/components/schemas/upl"
                    },
                    "spot_reserve": {
                      "description": "The account's balance reserved in active spot orders",
                      "example": 0.3,
                      "type": "number"
                    },
                    "total_delta_total_usd": {
                      "description": "Optional (only for users using cross margin). The account's total delta total in all cross collateral currencies, expressed in USD",
                      "example": 1.8,
                      "type": "number"
                    },
                    "total_equity_usd": {
                      "description": "Optional (only for users using cross margin). The account's total equity in all cross collateral currencies, expressed in USD",
                      "example": 2.6437733,
                      "type": "number"
                    },
                    "total_initial_margin_usd": {
                      "description": "Optional (only for users using cross margin). The account's total initial margin in all cross collateral currencies, expressed in USD",
                      "example": 0.379882,
                      "type": "number"
                    },
                    "total_maintenance_margin_usd": {
                      "description": "Optional (only for users using cross margin). The account's total maintenance margin in all cross collateral currencies, expressed in USD",
                      "example": 0.1334519,
                      "type": "number"
                    },
                    "total_margin_balance_usd": {
                      "description": "Optional (only for users using cross margin). The account's total margin balance in all cross collateral currencies, expressed in USD",
                      "example": 2.25,
                      "type": "number"
                    },
                    "total_pl": {
                      "description": "Profit and loss",
                      "example": 0.02032221,
                      "type": "number"
                    },
                    "trading_products_details": {
                      "description": "Which trading products are enabled or can be overwritten for the account",
                      "type": "object"
                    }
                  },
                  "required": [
                    "equity",
                    "currency",
                    "maintenance_margin",
                    "initial_margin",
                    "available_funds",
                    "available_withdrawal_funds",
                    "balance",
                    "session_upl",
                    "session_rpl",
                    "total_pl",
                    "options_pl",
                    "options_session_upl",
                    "options_session_rpl",
                    "options_delta",
                    "options_gamma",
                    "options_vega",
                    "options_value",
                    "options_theta",
                    "futures_pl",
                    "options_gamma_map",
                    "options_theta_map",
                    "options_vega_map",
                    "futures_session_upl",
                    "futures_session_rpl",
                    "projected_maintenance_margin",
                    "delta_total",
                    "projected_delta_total"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "system_name": {
                "description": "System generated user nickname (available when parameter `extended` = `true`)",
                "example": "myname",
                "type": "string"
              },
              "trading_products_details": {
                "description": "Which trading products are enabled or can be overwritten for the account",
                "type": "object"
              },
              "type": {
                "description": "Account type (available when parameter `extended` = `true`)",
                "enum": [
                  "main",
                  "subaccount"
                ],
                "type": "string"
              },
              "username": {
                "description": "Account name (given by user) (available when parameter `extended` = `true`)",
                "example": "name",
                "type": "string"
              }
            },
            "required": [
              "security_keys_enabled",
              "system_name",
              "username",
              "email",
              "type",
              "id"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateAddBlockRfqQuoteResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/block_rfq_quote"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateBuyAndSellResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "order": {
                "$ref": "#/components/schemas/order"
              },
              "trades": {
                "items": {
                  "$ref": "#/components/schemas/user_trade"
                },
                "type": "array"
              }
            },
            "required": [
              "order",
              "trades"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateCancelAllBlockRfqQuotesResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "description": "Total number of successfully cancelled quotes",
            "example": 7,
            "type": "number"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateCancelAllResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "description": "Total number of successfully cancelled orders",
            "example": 7,
            "type": "number"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateCancelBlockRfqQuoteResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/block_rfq_quote"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateCancelBlockRfqResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/block_rfq"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateCancelBlockRfqTriggerResponse": {
        "$ref": "#/components/schemas/block_rfq"
      },
      "PrivateCancelResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/order"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateChangeMarginModelResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "properties": {
                "currency": {
                  "$ref": "#/components/schemas/currency"
                },
                "new_state": {
                  "description": "Represents portfolio state after change",
                  "properties": {
                    "available_balance": {
                      "description": "Available balance after change",
                      "type": "number"
                    },
                    "initial_margin_rate": {
                      "description": "Initial margin rate after change",
                      "type": "number"
                    },
                    "maintenance_margin_rate": {
                      "description": "Maintenance margin rate after change",
                      "type": "number"
                    }
                  },
                  "required": [
                    "maintenance_margin_rate",
                    "initial_margin_rate",
                    "available_balance"
                  ],
                  "type": "object"
                },
                "old_state": {
                  "description": "Represents portfolio state before change",
                  "properties": {
                    "available_balance": {
                      "description": "Available balance before change",
                      "type": "number"
                    },
                    "initial_margin_rate": {
                      "description": "Initial margin rate before change",
                      "type": "number"
                    },
                    "maintenance_margin_rate": {
                      "description": "Maintenance margin rate before change",
                      "type": "number"
                    }
                  },
                  "required": [
                    "maintenance_margin_rate",
                    "initial_margin_rate",
                    "available_balance"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "old_state",
                "new_state",
                "currency"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateCreateBlockRfqResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/block_rfq"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateCreateComboResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/combo"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateEditBlockRfqQuoteResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/block_rfq_quote"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateEditResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "order": {
                "$ref": "#/components/schemas/order"
              },
              "trades": {
                "items": {
                  "$ref": "#/components/schemas/user_trade"
                },
                "type": "array"
              }
            },
            "required": [
              "order",
              "trades"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetAccessLogResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/access_log"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetBlockRfqMakersResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "description": "A list of available makers.",
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetBlockRfqQuotesResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/block_rfq_quote"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetBlockRfqUserInfoResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "parent": {
                "description": "Parent Identity (group alias), representing the overall account group (main + subaccounts).",
                "properties": {
                  "identity": {
                    "description": "Group-level alias identifying the account group as a whole.",
                    "type": "string"
                  },
                  "is_maker": {
                    "description": "Indicates whether the Parent Identity has maker scope.",
                    "type": "boolean"
                  }
                },
                "type": "object"
              },
              "users": {
                "items": {
                  "properties": {
                    "identity": {
                      "description": "Specific alias identifying this account individually.",
                      "type": "string"
                    },
                    "is_maker": {
                      "description": "Indicates whether this account has maker scope.",
                      "type": "boolean"
                    },
                    "taker_rating": {
                      "description": "Taker rating associated with this account, if available.",
                      "type": "number"
                    },
                    "user_id": {
                      "$ref": "#/components/schemas/user_id"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetBlockRfqsResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "block_rfqs": {
                "items": {
                  "$ref": "#/components/schemas/block_rfq"
                },
                "type": "array"
              },
              "continuation": {
                "$ref": "#/components/schemas/continuation"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetBlockTradeRequestsResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/pending_block_trade"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetBlockTradeResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/block_trade"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetBlockTradesResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/block_trade"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetBrokerTradeRequestsResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "properties": {
                "maker": {
                  "properties": {
                    "client_id": {
                      "description": "ID of a client; available to broker. Represents a group of users under a common name.",
                      "type": "integer"
                    },
                    "client_link_id": {
                      "description": "ID assigned to a single user in a client; available to broker.",
                      "type": "integer"
                    },
                    "client_link_name": {
                      "description": "Name of the linked user within the client; available to broker.",
                      "type": "string"
                    },
                    "client_name": {
                      "description": "Name of the client; available to broker.",
                      "type": "string"
                    },
                    "state": {
                      "description": "State of the request from the maker side: `initial`, `approved`, or `rejected`.",
                      "type": "string"
                    },
                    "user_id": {
                      "description": "Obscured user id of the maker.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "nonce": {
                  "description": "Nonce for approving or rejecting the broker block trade request.",
                  "type": "string"
                },
                "state": {
                  "description": "State of the broker block trade request.",
                  "type": "string"
                },
                "taker": {
                  "properties": {
                    "client_id": {
                      "description": "ID of a client; available to broker. Represents a group of users under a common name.",
                      "type": "integer"
                    },
                    "client_link_id": {
                      "description": "ID assigned to a single user in a client; available to broker.",
                      "type": "integer"
                    },
                    "client_link_name": {
                      "description": "Name of the linked user within the client; available to broker.",
                      "type": "string"
                    },
                    "client_name": {
                      "description": "Name of the client; available to broker.",
                      "type": "string"
                    },
                    "state": {
                      "description": "State of the request from the taker side: `initial`, `approved`, or `rejected`.",
                      "type": "string"
                    },
                    "user_id": {
                      "description": "Obscured user id of the taker.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "timestamp": {
                  "description": "Timestamp of the broker block trade request (milliseconds since the UNIX epoch).",
                  "type": "integer"
                },
                "trades": {
                  "items": {
                    "properties": {
                      "amount": {
                        "description": "Trade amount.",
                        "type": "number"
                      },
                      "direction": {
                        "description": "Trade direction (buy or sell).",
                        "type": "string"
                      },
                      "instrument_name": {
                        "description": "Name of the traded instrument.",
                        "type": "string"
                      },
                      "price": {
                        "description": "Trade price.",
                        "type": "number"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                }
              },
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetBrokerTradesResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "history": {
                "items": {
                  "properties": {
                    "id": {
                      "description": "Unique identifier of the block trade history entry.",
                      "type": "string"
                    },
                    "maker": {
                      "properties": {
                        "client_id": {
                          "description": "ID of a client; available to broker. Represents a group of users under a common name.",
                          "type": "integer"
                        },
                        "client_link_id": {
                          "description": "ID assigned to a single user in a client; available to broker.",
                          "type": "integer"
                        },
                        "client_link_name": {
                          "description": "Name of the linked user within the client; available to broker.",
                          "type": "string"
                        },
                        "client_name": {
                          "description": "Name of the client; available to broker.",
                          "type": "string"
                        },
                        "user_id": {
                          "description": "Obscured user id of the maker.",
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    },
                    "taker": {
                      "properties": {
                        "client_id": {
                          "description": "ID of a client; available to broker. Represents a group of users under a common name.",
                          "type": "integer"
                        },
                        "client_link_id": {
                          "description": "ID assigned to a single user in a client; available to broker.",
                          "type": "integer"
                        },
                        "client_link_name": {
                          "description": "Name of the linked user within the client; available to broker.",
                          "type": "string"
                        },
                        "client_name": {
                          "description": "Name of the client; available to broker.",
                          "type": "string"
                        },
                        "user_id": {
                          "description": "Obscured user id of the taker.",
                          "type": "integer"
                        }
                      },
                      "type": "object"
                    },
                    "timestamp": {
                      "description": "Timestamp of the block trade history entry (milliseconds since the UNIX epoch).",
                      "type": "integer"
                    },
                    "trades": {
                      "items": {
                        "$ref": "#/components/schemas/block_trade"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "next_start_id": {
                "description": "The next start ID for pagination.",
                "type": "integer"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetCancelOnDisconnectResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "enabled": {
                "$ref": "#/components/schemas/enabled_field"
              },
              "scope": {
                "$ref": "#/components/schemas/cod_scope"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetLegPricesResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "amount": {
                "description": "This value multiplied by the ratio of a leg gives trade size on that leg.",
                "type": "number"
              },
              "legs": {
                "$ref": "#/components/schemas/leg_structure"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetMarginsResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "buy": {
                "description": "Margin when buying",
                "example": 0.01681367,
                "type": "number"
              },
              "max_price": {
                "$ref": "#/components/schemas/max_price"
              },
              "min_price": {
                "$ref": "#/components/schemas/min_price"
              },
              "sell": {
                "description": "Margin when selling",
                "example": 0.01680479,
                "type": "number"
              }
            },
            "required": [
              "buy",
              "sell",
              "min_price",
              "max_price"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetOpenOrdersResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/order"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetOrderHistoryResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/order"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetOrderMarginByIdsResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/order_id_initial_margin_pair"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetOrderStateByLabelResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/orders"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetOrderStateResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/order"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetPositionResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/position_with_elp"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetPositionsResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/position_with_elp"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetTransactionLogResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "continuation": {
                "$ref": "#/components/schemas/continuation_with_null"
              },
              "logs": {
                "items": {
                  "$ref": "#/components/schemas/transaction_log"
                },
                "type": "array"
              }
            },
            "required": [
              "continuation",
              "logs"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetTriggerOrderHistoryResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "continuation": {
                "$ref": "#/components/schemas/continuation"
              },
              "entries": {
                "items": {
                  "$ref": "#/components/schemas/trigger_order_history_record"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateGetUserTradesByOrderResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          }
        },
        "required": [
          "jsonrpc"
        ],
        "type": "object"
      },
      "PrivateGetUserTradesHistoryResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "has_more": {
                "type": "boolean"
              },
              "trades": {
                "items": {
                  "$ref": "#/components/schemas/user_trade"
                },
                "type": "array"
              }
            },
            "required": [
              "trades",
              "has_more"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivatePmeSimulateResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "description": "Simulation details",
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateSettlementResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "continuation": {
                "$ref": "#/components/schemas/continuation"
              },
              "settlements": {
                "items": {
                  "$ref": "#/components/schemas/settlement"
                },
                "type": "array"
              }
            },
            "required": [
              "continuation",
              "settlements"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateSimulateBlockTradeResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "description": "`true` if block trade can be executed, `false` otherwise",
            "type": "boolean"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateSimulatePortfolioResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "description": "Portfolio margin simulation result",
            "properties": {
              "additional_reserve": {
                "$ref": "#/components/schemas/additional_reserve"
              },
              "available_funds": {
                "description": "The account's available funds. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
                "example": 115871741.76065847,
                "type": "number"
              },
              "available_subaccount_transfer_funds": {
                "description": "The account's available funds for subaccount transfers",
                "example": 0,
                "type": "number"
              },
              "available_withdrawal_funds": {
                "description": "The account's available to withdrawal funds",
                "example": 115871741.76065847,
                "type": "number"
              },
              "balance": {
                "description": "The account's balance",
                "example": 150076473.4995114,
                "type": "number"
              },
              "cross_collateral_enabled": {
                "description": "When `true` cross collateral is enabled for user",
                "example": true,
                "type": "boolean"
              },
              "currency": {
                "description": "Currency of the simulation",
                "example": "BTC",
                "type": "string"
              },
              "delta_total": {
                "$ref": "#/components/schemas/delta_total"
              },
              "delta_total_map": {
                "description": "Map of total deltas per index",
                "type": "object"
              },
              "equity": {
                "description": "The account's current equity",
                "example": 150075253.91354558,
                "type": "number"
              },
              "fee_balance": {
                "$ref": "#/components/schemas/fee_balance"
              },
              "futures_pl": {
                "description": "Futures profit and loss",
                "example": 39497.54616685,
                "type": "number"
              },
              "futures_session_rpl": {
                "description": "Futures session realized profit and loss",
                "example": 1.309136,
                "type": "number"
              },
              "futures_session_upl": {
                "description": "Futures session unrealized profit and loss",
                "example": -164.48253509,
                "type": "number"
              },
              "initial_margin": {
                "description": "The account's initial margin. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
                "example": 37662472.03416069,
                "type": "number"
              },
              "locked_balance": {
                "description": "The account's locked balance",
                "example": 0,
                "type": "number"
              },
              "maintenance_margin": {
                "description": "The maintenance margin. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
                "example": 30129215.84817124,
                "type": "number"
              },
              "margin_balance": {
                "description": "The account's margin balance. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
                "example": 153534213.79481918,
                "type": "number"
              },
              "margin_model": {
                "description": "Name of user's currently enabled margin model",
                "example": "cross_pm",
                "type": "string"
              },
              "options_delta": {
                "description": "Options summary delta",
                "example": 2883.38481,
                "type": "number"
              },
              "options_gamma": {
                "description": "Options summary gamma",
                "example": -0.03907,
                "type": "number"
              },
              "options_gamma_map": {
                "description": "Map of options' gammas per index",
                "type": "object"
              },
              "options_pl": {
                "description": "Options profit and loss",
                "example": 921.55562578,
                "type": "number"
              },
              "options_session_rpl": {
                "description": "Options session realized profit and loss",
                "example": 0,
                "type": "number"
              },
              "options_session_upl": {
                "description": "Options session unrealized profit and loss",
                "example": -174.67960675,
                "type": "number"
              },
              "options_theta": {
                "description": "Options summary theta",
                "example": 142583.29246,
                "type": "number"
              },
              "options_theta_map": {
                "description": "Map of options' thetas per index",
                "type": "object"
              },
              "options_value": {
                "description": "Options value",
                "example": -1056.41256672,
                "type": "number"
              },
              "options_vega": {
                "description": "Options summary vega",
                "example": -39322.23046,
                "type": "number"
              },
              "options_vega_map": {
                "description": "Map of options' vegas per index",
                "type": "object"
              },
              "portfolio_margining_enabled": {
                "description": "`true` when portfolio margining is enabled for user",
                "example": true,
                "type": "boolean"
              },
              "projected_delta_total": {
                "$ref": "#/components/schemas/projected_delta_total"
              },
              "projected_initial_margin": {
                "$ref": "#/components/schemas/projected_initial_margin"
              },
              "projected_maintenance_margin": {
                "$ref": "#/components/schemas/projected_maintenance_margin"
              },
              "session_rpl": {
                "$ref": "#/components/schemas/rpl"
              },
              "session_upl": {
                "$ref": "#/components/schemas/upl"
              },
              "spot_reserve": {
                "description": "The account's balance reserved in active spot orders",
                "example": 0,
                "type": "number"
              },
              "total_delta_total_usd": {
                "description": "Optional (only for users using cross margin). The account's total delta total in all cross collateral currencies, expressed in USD",
                "example": 6157454218.3753195,
                "type": "number"
              },
              "total_equity_usd": {
                "description": "Optional (only for users using cross margin). The account's total equity in all cross collateral currencies, expressed in USD",
                "example": 13075634611389.318,
                "type": "number"
              },
              "total_initial_margin_usd": {
                "description": "Optional (only for users using cross margin). The account's total initial margin in all cross collateral currencies, expressed in USD",
                "example": 3139528603778.822,
                "type": "number"
              },
              "total_maintenance_margin_usd": {
                "description": "Optional (only for users using cross margin). The account's total maintenance margin in all cross collateral currencies, expressed in USD",
                "example": 2511559381417.215,
                "type": "number"
              },
              "total_margin_balance_usd": {
                "description": "Optional (only for users using cross margin). The account's total margin balance in all cross collateral currencies, expressed in USD",
                "example": 12798550648250.61,
                "type": "number"
              },
              "total_pl": {
                "description": "Profit and loss",
                "example": 40419.10179263,
                "type": "number"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateSubscribeResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "description": "A list of subscribed channels.",
            "items": {
              "example": "deribit_price_index.btc_usd",
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PrivateVerifyBlockTradeResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "signature": {
                "$ref": "#/components/schemas/block_trade_signature"
              }
            },
            "required": [
              "signature"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicAuthResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "access_token": {
                "description": "Access token to be used for authentication of subsequent requests.",
                "type": "string"
              },
              "expires_in": {
                "description": "Token lifetime in seconds",
                "type": "integer"
              },
              "scope": {
                "description": "Space-separated list of granted scopes",
                "type": "string"
              },
              "token_type": {
                "description": "Authorization type, always `bearer`",
                "enum": [
                  "bearer"
                ],
                "type": "string"
              }
            },
            "required": [
              "access_token",
              "token_type",
              "expires_in",
              "scope"
            ],
            "type": "object"
          }
        }
      },
      "PublicGetAnnouncementsResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "properties": {
                "body": {
                  "description": "The HTML body of the announcement",
                  "example": "An&nbsp;announcement",
                  "type": "string"
                },
                "confirmation": {
                  "description": "Whether the user confirmation is required for this announcement",
                  "example": false,
                  "type": "boolean"
                },
                "id": {
                  "description": "A unique identifier for the announcement",
                  "example": 19288317,
                  "type": "number"
                },
                "important": {
                  "description": "Whether the announcement is marked as important",
                  "example": false,
                  "type": "boolean"
                },
                "publication_timestamp": {
                  "description": "The timestamp (milliseconds since the Unix epoch) of announcement publication",
                  "example": 1527844253000,
                  "type": "integer"
                },
                "title": {
                  "description": "The title of the announcement",
                  "example": "Example announcement",
                  "type": "string"
                }
              },
              "required": [
                "title",
                "body",
                "important",
                "id",
                "publication_timestamp"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetBlockRfqTradesResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "block_rfqs": {
                "items": {
                  "properties": {
                    "amount": {
                      "description": "This value multiplied by the ratio of a leg gives trade size on that leg.",
                      "type": "number"
                    },
                    "combo_id": {
                      "$ref": "#/components/schemas/combo_id"
                    },
                    "direction": {
                      "$ref": "#/components/schemas/direction",
                      "description": "Trade direction of the taker"
                    },
                    "hedge": {
                      "$ref": "#/components/schemas/block_rfq_hedge_leg"
                    },
                    "id": {
                      "description": "ID of the Block RFQ",
                      "type": "integer"
                    },
                    "index_prices": {
                      "description": "A map of index prices for the underlying instrument(s) at the time of trade execution, where keys are price index names and values are prices.",
                      "type": "object"
                    },
                    "legs": {
                      "$ref": "#/components/schemas/leg_structure"
                    },
                    "mark_price": {
                      "description": "Mark Price at the moment of trade",
                      "type": "number"
                    },
                    "timestamp": {
                      "$ref": "#/components/schemas/trade_timestamp"
                    },
                    "trades": {
                      "items": {
                        "properties": {
                          "amount": {
                            "description": "Trade amount. For options, linear futures, linear perpetuals and spots the amount is denominated in the underlying base currency coin. The inverse perpetuals and inverse futures are denominated in USD units.",
                            "type": "number"
                          },
                          "direction": {
                            "$ref": "#/components/schemas/direction"
                          },
                          "hedge_amount": {
                            "description": "Amount of the hedge leg. For linear futures, linear perpetuals and spots the amount is denominated in the underlying base currency coin. The inverse perpetuals and inverse futures are denominated in USD units.",
                            "type": "number"
                          },
                          "price": {
                            "$ref": "#/components/schemas/price"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                },
                "type": "array"
              },
              "continuation": {
                "$ref": "#/components/schemas/block_rfq_trade_tape_continuation"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetBookSummaryResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/book_summary"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetComboDetailsResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/combo"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetComboIdsResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/combo_id"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetCombosResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/combo"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetContractSizeResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "contract_size": {
                "$ref": "#/components/schemas/contract_size"
              }
            },
            "required": [
              "contract_size"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetCurrenciesResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/currency_with_apr"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetDeliveryPricesResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "data": {
                "items": {
                  "properties": {
                    "date": {
                      "$ref": "#/components/schemas/date"
                    },
                    "delivery_price": {
                      "$ref": "#/components/schemas/delivery_price"
                    }
                  },
                  "required": [
                    "date",
                    "delivery_price"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "records_total": {
                "description": "Available delivery prices",
                "example": 120,
                "type": "number"
              }
            },
            "required": [
              "records_total",
              "data"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetExpirationsResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/expirations"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetFundingChartDataResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "current_interest": {
                "description": "Current interest",
                "example": 0.005000670552845,
                "type": "number"
              },
              "data": {
                "items": {
                  "properties": {
                    "index_price": {
                      "$ref": "#/components/schemas/index_price"
                    },
                    "interest_8h": {
                      "description": "Historical interest 8h value",
                      "example": 0.004999511380756577,
                      "type": "number"
                    },
                    "timestamp": {
                      "$ref": "#/components/schemas/timestamp"
                    }
                  },
                  "required": [
                    "timestamp",
                    "index_price",
                    "interest_8h"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "interest_8h": {
                "description": "Current interest 8h",
                "example": 0.0040080896931,
                "type": "number"
              }
            },
            "required": [
              "current_interest",
              "data",
              "interest_8h"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetFundingRateHistoryResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "properties": {
                "index_price": {
                  "$ref": "#/components/schemas/price"
                },
                "interest_1h": {
                  "description": "1hour interest rate",
                  "type": "number"
                },
                "interest_8h": {
                  "description": "8hour interest rate",
                  "type": "number"
                },
                "prev_index_price": {
                  "$ref": "#/components/schemas/price"
                },
                "timestamp": {
                  "$ref": "#/components/schemas/timestamp"
                }
              },
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetFundingRateValueResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "type": "number"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetHistoricalVolatilityResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "properties": {
                "timestamp": {
                  "type": "integer"
                },
                "value": {
                  "type": "number"
                }
              },
              "required": [
                "timestamp",
                "value"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetIndexChartDataResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "description": "**Response:**\nThe response returns an array of data points, where each data point is an array containing:\n\n- **Index 0**: Timestamp in milliseconds since the Unix epoch\n- **Index 1**: Average index price at that timestamp\n\nExample response structure:\n```json\n[\n [1573228800000, 8751.7138636],\n [1573232400000, 8751.7138636],\n [1573236000000, 8751.7138636]\n]\n```\n\nEach entry in the result array represents a single data point:\n\n- The first value (timestamp) indicates when the price was recorded\n- The second value (price) is the average index price at that timestamp\n\nThe data points are returned in chronological order, making them ready for direct use in charting libraries.\n",
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetIndexPriceNamesResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "properties": {
                "future_combo_creation_enabled": {
                  "description": "Whether future combo creation is enabled for this index (only present when `extended`=`true`)",
                  "type": "boolean"
                },
                "name": {
                  "description": "Index name",
                  "type": "string"
                },
                "option_combo_creation_enabled": {
                  "description": "Whether option combo creation is enabled for this index (only present when `extended`=`true`)",
                  "type": "boolean"
                }
              },
              "required": [
                "name"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetIndexPriceResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "estimated_delivery_price": {
                "description": "Estimated delivery price for the market. For more details, see Documentation > General > Expiration Price",
                "example": 11628.81,
                "type": "number"
              },
              "index_price": {
                "description": "Value of requested index",
                "example": 11628.81,
                "type": "number"
              }
            },
            "required": [
              "index_price",
              "estimated_delivery_price"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetInstrumentResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/instrument"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetInstrumentsResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/instrument"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetMarkPriceHistoryResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "description": "Markprice history values as an array of arrays with 2 values each. The inner values correspond to the timestamp in ms and the markprice itself.",
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetOrderBookResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/TickerNotificationWithBidsAndAsks"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetTimeResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "description": "Current timestamp (milliseconds since the UNIX epoch)",
            "example": 1517329113791,
            "type": "integer"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetTradesVolumesResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "items": {
              "$ref": "#/components/schemas/trades_volumes"
            },
            "type": "array"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetTradingviewChartDataResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "close": {
                "description": "List of prices at close (one per candle)",
                "items": {
                  "$ref": "#/components/schemas/quote_price"
                },
                "type": "array"
              },
              "cost": {
                "description": "List of cost bars (volume in quote currency, one per candle)",
                "items": {
                  "$ref": "#/components/schemas/chart_volume"
                },
                "type": "array"
              },
              "high": {
                "description": "List of highest price levels (one per candle)",
                "items": {
                  "$ref": "#/components/schemas/quote_price"
                },
                "type": "array"
              },
              "low": {
                "description": "List of lowest price levels (one per candle)",
                "items": {
                  "$ref": "#/components/schemas/quote_price"
                },
                "type": "array"
              },
              "open": {
                "description": "List of prices at open (one per candle)",
                "items": {
                  "$ref": "#/components/schemas/quote_price"
                },
                "type": "array"
              },
              "status": {
                "description": "Status of the query: `ok` or `no_data`",
                "enum": [
                  "ok",
                  "no_data"
                ],
                "type": "string"
              },
              "ticks": {
                "description": "Values of the time axis given in milliseconds since UNIX epoch",
                "items": {
                  "$ref": "#/components/schemas/timestamp"
                },
                "type": "array"
              },
              "volume": {
                "description": "List of volume bars (in base currency, one per candle)",
                "items": {
                  "$ref": "#/components/schemas/chart_volume"
                },
                "type": "array"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicGetVolatilityIndexDataResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "description": "Volatility index candles.",
            "properties": {
              "continuation": {
                "description": "Continuation - to be used as the `end_timestamp` parameter on the next request. `NULL` when no continuation.",
                "type": "integer"
              },
              "data": {
                "description": "Candles as an array of arrays with 5 values each. The inner values correspond to the timestamp in ms, open, high, low, and close values of the volatility index correspondingly.",
                "type": "array"
              }
            },
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicSettlementResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "continuation": {
                "$ref": "#/components/schemas/continuation"
              },
              "settlements": {
                "items": {
                  "$ref": "#/components/schemas/settlement"
                },
                "type": "array"
              }
            },
            "required": [
              "continuation",
              "settlements"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicStatusResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "locked": {
                "description": "`true` when platform is locked in all currencies, `partial` when some currencies are locked, `false` - when there are not currencies locked",
                "type": "string"
              },
              "locked_indices": {
                "description": "List of currency indices locked platform-wise",
                "type": "array"
              }
            },
            "required": [
              "locked"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicTestResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "version": {
                "description": "The API version",
                "example": "2.1.26",
                "type": "string"
              }
            },
            "required": [
              "version"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicTickerResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/TickerNotification"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "PublicTradesHistoryResponse": {
        "properties": {
          "id": {
            "description": "The id that was sent in the request",
            "type": "integer"
          },
          "jsonrpc": {
            "description": "The JSON-RPC version (2.0)",
            "enum": [
              "2.0"
            ],
            "type": "string"
          },
          "result": {
            "properties": {
              "has_more": {
                "type": "boolean"
              },
              "trades": {
                "items": {
                  "$ref": "#/components/schemas/public_trade"
                },
                "type": "array"
              }
            },
            "required": [
              "trades",
              "has_more"
            ],
            "type": "object"
          }
        },
        "required": [
          "jsonrpc",
          "result"
        ],
        "type": "object"
      },
      "TickerNotification": {
        "properties": {
          "anchor_max_price": {
            "description": "The upper bound of the anchor price band, computed as anchor_price * (1 + bandwidth). Only present for RWA perpetual instruments when an anchor price and bandwidth are defined.",
            "type": "number"
          },
          "anchor_min_price": {
            "description": "The lower bound of the anchor price band, computed as anchor_price * (1 - bandwidth). Only present for RWA perpetual instruments when an anchor price and bandwidth are defined.",
            "type": "number"
          },
          "ask_iv": {
            "$ref": "#/components/schemas/ask_iv"
          },
          "best_ask_amount": {
            "$ref": "#/components/schemas/best_ask_amount"
          },
          "best_ask_price": {
            "$ref": "#/components/schemas/best_ask_price"
          },
          "best_bid_amount": {
            "$ref": "#/components/schemas/best_bid_amount"
          },
          "best_bid_price": {
            "$ref": "#/components/schemas/best_bid_price"
          },
          "bid_iv": {
            "$ref": "#/components/schemas/bid_iv"
          },
          "current_funding": {
            "$ref": "#/components/schemas/current_funding"
          },
          "delivery_price": {
            "$ref": "#/components/schemas/delivery_price"
          },
          "estimated_delivery_price": {
            "$ref": "#/components/schemas/estimated_delivery_price"
          },
          "funding_8h": {
            "$ref": "#/components/schemas/funding_8h"
          },
          "greeks": {
            "$ref": "#/components/schemas/greeks"
          },
          "index_price": {
            "$ref": "#/components/schemas/index_price"
          },
          "instrument_name": {
            "$ref": "#/components/schemas/instrument_name"
          },
          "interest_rate": {
            "$ref": "#/components/schemas/interest_rate"
          },
          "interest_value": {
            "$ref": "#/components/schemas/interest_value"
          },
          "is_anchor_breached": {
            "description": "Whether the mark price has breached the anchor price band. Only present for RWA perpetual instruments when an anchor price is active.",
            "type": "boolean"
          },
          "last_price": {
            "$ref": "#/components/schemas/last_price"
          },
          "mark_iv": {
            "$ref": "#/components/schemas/mark_iv"
          },
          "mark_price": {
            "$ref": "#/components/schemas/mark_price"
          },
          "max_price": {
            "$ref": "#/components/schemas/max_price"
          },
          "min_price": {
            "$ref": "#/components/schemas/min_price"
          },
          "open_interest": {
            "$ref": "#/components/schemas/open_interest"
          },
          "settlement_price": {
            "$ref": "#/components/schemas/settlement_price"
          },
          "state": {
            "$ref": "#/components/schemas/book_state"
          },
          "stats": {
            "$ref": "#/components/schemas/stats"
          },
          "timestamp": {
            "$ref": "#/components/schemas/timestamp"
          },
          "underlying_index": {
            "$ref": "#/components/schemas/underlying_index"
          },
          "underlying_price": {
            "$ref": "#/components/schemas/underlying_price"
          }
        },
        "required": [
          "instrument_name",
          "timestamp",
          "state",
          "stats",
          "open_interest",
          "index_price",
          "best_bid_price",
          "best_bid_amount",
          "best_ask_price",
          "best_ask_amount",
          "min_price",
          "max_price",
          "mark_price",
          "last_price",
          "estimated_delivery_price"
        ],
        "type": "object"
      },
      "TickerNotificationWithBidsAndAsks": {
        "properties": {
          "anchor_max_price": {
            "description": "The upper bound of the anchor price band, computed as anchor_price * (1 + bandwidth). Only present for RWA perpetual instruments when an anchor price and bandwidth are defined.",
            "type": "number"
          },
          "anchor_min_price": {
            "description": "The lower bound of the anchor price band, computed as anchor_price * (1 - bandwidth). Only present for RWA perpetual instruments when an anchor price and bandwidth are defined.",
            "type": "number"
          },
          "ask_iv": {
            "$ref": "#/components/schemas/ask_iv"
          },
          "asks": {
            "$ref": "#/components/schemas/asks"
          },
          "best_ask_amount": {
            "$ref": "#/components/schemas/best_ask_amount"
          },
          "best_ask_price": {
            "$ref": "#/components/schemas/best_ask_price"
          },
          "best_bid_amount": {
            "$ref": "#/components/schemas/best_bid_amount"
          },
          "best_bid_price": {
            "$ref": "#/components/schemas/best_bid_price"
          },
          "bid_iv": {
            "$ref": "#/components/schemas/bid_iv"
          },
          "bids": {
            "$ref": "#/components/schemas/bids"
          },
          "current_funding": {
            "$ref": "#/components/schemas/current_funding"
          },
          "delivery_price": {
            "$ref": "#/components/schemas/delivery_price"
          },
          "funding_8h": {
            "$ref": "#/components/schemas/funding_8h"
          },
          "greeks": {
            "$ref": "#/components/schemas/greeks"
          },
          "index_price": {
            "$ref": "#/components/schemas/index_price"
          },
          "instrument_name": {
            "$ref": "#/components/schemas/instrument_name"
          },
          "interest_rate": {
            "$ref": "#/components/schemas/interest_rate"
          },
          "is_anchor_breached": {
            "description": "Whether the mark price has breached the anchor price band. Only present for RWA perpetual instruments when an anchor price is active.",
            "type": "boolean"
          },
          "last_price": {
            "$ref": "#/components/schemas/last_price"
          },
          "mark_iv": {
            "$ref": "#/components/schemas/mark_iv"
          },
          "mark_price": {
            "$ref": "#/components/schemas/mark_price"
          },
          "max_price": {
            "$ref": "#/components/schemas/max_price"
          },
          "min_price": {
            "$ref": "#/components/schemas/min_price"
          },
          "open_interest": {
            "$ref": "#/components/schemas/open_interest"
          },
          "settlement_price": {
            "$ref": "#/components/schemas/settlement_price"
          },
          "state": {
            "$ref": "#/components/schemas/book_state"
          },
          "stats": {
            "$ref": "#/components/schemas/stats"
          },
          "timestamp": {
            "$ref": "#/components/schemas/timestamp"
          },
          "underlying_index": {
            "$ref": "#/components/schemas/underlying_index"
          },
          "underlying_price": {
            "$ref": "#/components/schemas/underlying_price"
          }
        },
        "required": [
          "instrument_name",
          "timestamp",
          "state",
          "stats",
          "open_interest",
          "index_price",
          "best_bid_price",
          "best_bid_amount",
          "best_ask_price",
          "best_ask_amount",
          "min_price",
          "max_price",
          "mark_price",
          "last_price",
          "bids",
          "asks"
        ],
        "type": "object"
      },
      "access_log": {
        "properties": {
          "city": {
            "description": "City where the IP address is registered (estimated)",
            "type": "string"
          },
          "country": {
            "description": "Country where the IP address is registered (estimated)",
            "type": "string"
          },
          "data": {
            "description": "Optional, additional information about action, type depends on `log` value",
            "oneOf": [
              {
                "type": "object"
              },
              {
                "type": "string"
              }
            ]
          },
          "id": {
            "$ref": "#/components/schemas/id"
          },
          "ip": {
            "description": "IP address of source that generated action",
            "type": "string"
          },
          "log": {
            "description": "Action description. Possible values:\n\n- ``changed_email`` - email was changed\n- ``changed_password`` - password was changed\n- ``disabled_tfa`` - TFA was disabled\n- ``enabled_tfa`` - TFA was enabled\n- ``success`` - successful login\n- ``failure`` - login failure\n- ``enabled_subaccount_login`` - login was enabled for subaccount (in `data` - subaccount uid)\n- ``disabled_subaccount_login`` - login was disabled for subaccount (in `data` - subaccount uid)\n- ``new_api_key`` - API key was created (in `data` key client id)\n- ``removed_api_key`` - API key was removed (in `data` key client id)\n- ``changed_scope`` - scope of API key was changed (in `data` key client id)\n- ``changed_whitelist`` - whitelist of API key was edited (in `data` key client id)\n- ``disabled_api_key`` - API key was disabled (in `data` key client id)\n- ``enabled_api_key`` - API key was enabled (in `data` key client id)\n- ``reset_api_key`` - API key was reset (in `data` key client id)\n",
            "type": "string"
          },
          "timestamp": {
            "$ref": "#/components/schemas/timestamp"
          }
        },
        "required": [
          "id",
          "ip",
          "timestamp",
          "country",
          "city",
          "log"
        ],
        "type": "object"
      },
      "additional_reserve": {
        "description": "The account's balance reserved in other orders",
        "example": 0.3,
        "type": "number"
      },
      "advanced": {
        "description": "advanced type: `\"usd\"` or `\"implv\"` (Only for options; field is omitted if not applicable).\n",
        "enum": [
          "usd",
          "implv"
        ],
        "type": "string"
      },
      "amount": {
        "description": "It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.",
        "type": "number"
      },
      "api": {
        "description": "`true` if created with API",
        "type": "boolean"
      },
      "api_limits": {
        "description": "Returned object is described in [separate document](https://support.deribit.com/hc/en-us/articles/25944617523357-Rate-Limits).",
        "type": "object"
      },
      "ask_iv": {
        "description": "(Only for option) implied volatility for best ask",
        "type": "number"
      },
      "asks": {
        "items": {
          "description": "List of asks (price-amount pairs)",
          "items": {
            "type": "number"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
        },
        "type": "array"
      },
      "average_price": {
        "description": "Average fill price of the order",
        "type": "number"
      },
      "best_ask_amount": {
        "description": "It represents the requested order size of all best asks",
        "type": [
          "number",
          "null"
        ]
      },
      "best_ask_price": {
        "description": "The current best ask price, `null` if there aren't any asks",
        "type": [
          "number",
          "null"
        ]
      },
      "best_bid_amount": {
        "description": "It represents the requested order size of all best bids",
        "type": [
          "number",
          "null"
        ]
      },
      "best_bid_price": {
        "description": "The current best bid price, `null` if there aren't any bids",
        "type": [
          "number",
          "null"
        ]
      },
      "bid_iv": {
        "description": "(Only for option) implied volatility for best bid",
        "type": "number"
      },
      "bids": {
        "items": {
          "description": "List of bids (price-amount pairs)",
          "items": {
            "type": "number"
          },
          "maxItems": 2,
          "minItems": 2,
          "type": "array"
        },
        "type": "array"
      },
      "block_rfq": {
        "properties": {
          "amount": {
            "description": "This value multiplied by the ratio of a leg gives trade size on that leg.",
            "type": "number"
          },
          "app_name": {
            "description": "The name of the application that created the Block RFQ on behalf of the user (optional, visible only to taker).",
            "example": "Example Application",
            "type": "string"
          },
          "asks": {
            "$ref": "#/components/schemas/quote_asks"
          },
          "bids": {
            "$ref": "#/components/schemas/quote_bids"
          },
          "block_rfq_id": {
            "description": "ID of the Block RFQ",
            "type": "integer"
          },
          "combo_id": {
            "$ref": "#/components/schemas/combo_id"
          },
          "creation_timestamp": {
            "description": "The timestamp when Block RFQ was created (milliseconds since the Unix epoch)",
            "example": 1536569522277,
            "type": "integer"
          },
          "disclosed": {
            "description": "Indicates whether the RFQ was created as non-anonymous, meaning taker and maker aliases are visible to counterparties.",
            "type": "boolean"
          },
          "expiration_timestamp": {
            "description": "The timestamp when the Block RFQ will expire (milliseconds since the UNIX epoch)",
            "example": 1536569522277,
            "type": "integer"
          },
          "hedge": {
            "$ref": "#/components/schemas/block_rfq_hedge_leg"
          },
          "included_in_taker_rating": {
            "description": "Indicates whether the RFQ is included in the taker's rating calculation. Present only for closed RFQs created by the requesting taker.",
            "type": "boolean"
          },
          "index_prices": {
            "items": {
              "description": "A list of index prices for the underlying instrument(s) at the time of trade execution.",
              "type": "number"
            },
            "type": "array"
          },
          "label": {
            "description": "User defined label for the Block RFQ (maximum 64 characters)",
            "type": "string"
          },
          "legs": {
            "$ref": "#/components/schemas/block_rfq_legs"
          },
          "makers": {
            "items": {
              "description": "List of targeted Block RFQ makers",
              "type": "string"
            },
            "type": "array"
          },
          "mark_price": {
            "$ref": "#/components/schemas/mark_price"
          },
          "min_trade_amount": {
            "description": "Minimum amount for trading",
            "type": "number"
          },
          "role": {
            "description": "Role of the user in Block RFQ",
            "enum": [
              "taker",
              "maker"
            ],
            "type": "string"
          },
          "state": {
            "description": "State of the Block RFQ",
            "enum": [
              "open",
              "filled",
              "cancelled",
              "expired"
            ],
            "type": "string"
          },
          "taker": {
            "description": "Taker alias. Present only when `disclosed` is `true`.",
            "example": "TAKER1",
            "type": "string"
          },
          "taker_rating": {
            "description": "Rating of the taker",
            "type": "string"
          },
          "trade_allocations": {
            "$ref": "#/components/schemas/trade_allocations",
            "description": "List of allocations for Block RFQ pre-allocation. Allows to split amount between different (sub)accounts. The taker can also allocate to himself. Visible only to the taker."
          },
          "trade_trigger": {
            "$ref": "#/components/schemas/trade_trigger",
            "description": "Present only if a trade trigger was placed by the taker and only visible to taker. Only for cases: `cancelled` (contains the reason for cancellation) and `untriggered` (contains the information about the trade trigger)."
          },
          "trades": {
            "items": {
              "properties": {
                "amount": {
                  "description": "Trade amount. For options, linear futures, linear perpetuals and spots the amount is denominated in the underlying base currency coin. The inverse perpetuals and inverse futures are denominated in USD units.",
                  "type": "number"
                },
                "direction": {
                  "$ref": "#/components/schemas/direction"
                },
                "hedge_amount": {
                  "description": "Amount of the hedge leg. For linear futures, linear perpetuals and spots the amount is denominated in the underlying base currency coin. The inverse perpetuals and inverse futures are denominated in USD units.",
                  "type": "number"
                },
                "maker": {
                  "description": "Alias of the maker (optional)",
                  "type": "string"
                },
                "price": {
                  "$ref": "#/components/schemas/price"
                }
              },
              "type": "object"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "block_rfq_currency": {
        "description": "Currency, i.e `\"BTC\"`, `\"ETH\"`, `\"USDC\"`",
        "enum": [
          "BTC",
          "ETH",
          "USDC",
          "USDT",
          "any"
        ],
        "type": "string"
      },
      "block_rfq_hedge_leg": {
        "properties": {
          "amount": {
            "description": "It represents the requested hedge leg size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.",
            "type": "integer"
          },
          "direction": {
            "description": "Direction: `buy`, or `sell`",
            "enum": [
              "buy",
              "sell"
            ],
            "type": "string"
          },
          "instrument_name": {
            "description": "Unique instrument identifier",
            "example": "BTC-PERPETUAL",
            "type": "string"
          },
          "price": {
            "description": "Price for a hedge leg",
            "type": "number"
          }
        },
        "type": "object"
      },
      "block_rfq_legs": {
        "items": {
          "properties": {
            "direction": {
              "description": "Direction: `buy`, or `sell`",
              "enum": [
                "buy",
                "sell"
              ],
              "type": "string"
            },
            "instrument_name": {
              "description": "Unique instrument identifier",
              "example": "BTC-PERPETUAL",
              "type": "string"
            },
            "ratio": {
              "description": "Ratio of amount between legs",
              "type": "integer"
            }
          },
          "type": "object"
        },
        "type": "array"
      },
      "block_rfq_quote": {
        "properties": {
          "amount": {
            "description": "This value multiplied by the ratio of a leg gives trade size on that leg.",
            "type": "number"
          },
          "app_name": {
            "description": "The name of the application that placed the quote on behalf of the user (optional).",
            "example": "Example Application",
            "type": "string"
          },
          "block_rfq_id": {
            "description": "ID of the Block RFQ",
            "type": "integer"
          },
          "block_rfq_quote_id": {
            "description": "ID of the Block RFQ quote",
            "type": "integer"
          },
          "creation_timestamp": {
            "description": "The timestamp when quote was created (milliseconds since the Unix epoch)",
            "example": 1536569522277,
            "type": "integer"
          },
          "direction": {
            "$ref": "#/components/schemas/quote_direction"
          },
          "execution_instruction": {
            "description": "Execution instruction of the quote. Default - `any_part_of`\n\n- `\"all_or_none (AON)\"` - The quote can only be filled entirely or not at all, ensuring that its amount matches the amount specified in the Block RFQ. Additionally, 'all_or_none' quotes have priority over 'any_part_of' quotes at the same price level.\n- `\"any_part_of (APO)\"` - The quote can be filled either partially or fully, with the filled amount potentially being less than the Block RFQ amount.",
            "enum": [
              "any_part_of",
              "all_or_none"
            ],
            "type": "string"
          },
          "filled_amount": {
            "$ref": "#/components/schemas/filled_amount_quote"
          },
          "hedge": {
            "$ref": "#/components/schemas/block_rfq_hedge_leg"
          },
          "label": {
            "description": "User defined label for the quote (maximum 64 characters)",
            "type": "string"
          },
          "last_update_timestamp": {
            "description": "Timestamp of the last update of the quote (milliseconds since the UNIX epoch)",
            "example": 1536569522277,
            "type": "integer"
          },
          "legs": {
            "$ref": "#/components/schemas/leg_structure"
          },
          "price": {
            "description": "Price of a quote",
            "type": "number"
          },
          "quote_state": {
            "description": "State of the quote",
            "type": "string"
          },
          "quote_state_reason": {
            "description": "Reason of quote cancellation",
            "type": "string"
          },
          "replaced": {
            "$ref": "#/components/schemas/replaced_quote"
          }
        },
        "type": "object"
      },
      "block_rfq_trade_tape_continuation": {
        "description": "Continuation token for pagination. `NULL` when no continuation. Consists of `timestamp` and `block_rfq_id`.",
        "example": "1738050297271:103",
        "type": "string"
      },
      "block_trade": {
        "properties": {
          "app_name": {
            "description": "The name of the application that executed the block trade on behalf of the user (optional).",
            "example": "Example Application",
            "type": "string"
          },
          "broker_code": {
            "description": "Broker code associated with the broker block trade.",
            "example": "2krM7sJsx",
            "type": "string"
          },
          "broker_name": {
            "description": "Name of the broker associated with the block trade.",
            "example": "Test Broker",
            "type": "string"
          },
          "id": {
            "$ref": "#/components/schemas/block_trade_id"
          },
          "timestamp": {
            "$ref": "#/components/schemas/timestamp"
          },
          "trades": {
            "items": {
              "$ref": "#/components/schemas/user_trade"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "timestamp",
          "trades"
        ],
        "type": "object"
      },
      "block_trade_id": {
        "description": "Block trade id",
        "example": "154",
        "type": "string"
      },
      "block_trade_id_in_result": {
        "description": "Block trade id - when trade was part of a block trade",
        "example": "154",
        "type": "string"
      },
      "block_trade_leg_count": {
        "description": "Block trade leg count - when trade was part of a block trade",
        "example": 3,
        "type": "integer"
      },
      "block_trade_order": {
        "description": "`true` if order made from block_trade trade, added only in that case.",
        "example": true,
        "type": "boolean"
      },
      "block_trade_signature": {
        "description": "Signature of block trade<br>It is valid only for 5 minutes around given timestamp",
        "example": "1565173369982.1M9tO0Q-.z9n9WyZUU5op9pEz6Jtd2CI71QxQMMsCZAexnIfK9HQRT1pKH3clxeIbY7Bqm-yMcWIoE3IfCDPW5VEdiN-6oS0YkKUyXPD500MUf3ULKhfkmH81EZs",
        "type": "string"
      },
      "book_state": {
        "description": "The state of the order book. Represents the current lifecycle stage of the instrument.\n\n**State Lifecycle and Meanings:**\n\n- `open`: Default state for running books. In this state book is accepting new orders, edits, cancels; prices should be updated, trading is live.\n- `settlement`: Books enters to this state during settlement/delivery. New orders, edits, cancels are not accepted. After this state normally next state should be `open` if it was settlement, or `delivered` if it was delivery. On enter to this state good till day orders in book are canceled.\n- `delivered`: Final state of book that has been delivered. New orders, edits, cancels are not accepted. After some time book process will be terminated and, instrument moved to `expired_instruments` and its `instrument_state` will become archivized. On enter to this all open orders in book are canceled.\n- `inactive`: After a book is deactivated, this state is set on book. New orders, edits, cancels are not accepted. On enter to this all open orders in book are canceled. Book in this state is not considered as open. This can be also final state for book.\n- `locked`: New orders, edits, are not accepted, only cancels ARE accepted. In some cases when configured books can start as locked or it may become locked on admin request. Settlement is possible on locked books.\n- `halted`: The state that books enter as a result of an error. Settlement is not possible when there is at least one book in this state.\n- `archivized`: Set when instrument is moved to `expired_instruments` table, final state.\n",
        "enum": [
          "open",
          "settlement",
          "delivered",
          "inactive",
          "locked",
          "halted",
          "archivized"
        ],
        "type": "string"
      },
      "book_summary": {
        "properties": {
          "ask_price": {
            "description": "The current best ask price, `null` if there aren't any asks",
            "example": 7022.89,
            "type": "number"
          },
          "base_currency": {
            "description": "Base currency",
            "example": "ETH",
            "type": "string"
          },
          "bid_price": {
            "description": "The current best bid price, `null` if there aren't any bids",
            "example": 7022.89,
            "type": "number"
          },
          "creation_timestamp": {
            "$ref": "#/components/schemas/timestamp"
          },
          "current_funding": {
            "description": "Current funding (perpetual only)",
            "example": 0.12344,
            "type": "number"
          },
          "estimated_delivery_price": {
            "description": "Optional (only for derivatives). Estimated delivery price for the market.",
            "example": 11628.81,
            "type": "number"
          },
          "funding_8h": {
            "description": "Funding 8h (perpetual only)",
            "type": "number"
          },
          "high": {
            "description": "Price of the 24h highest trade",
            "example": 7022.89,
            "type": "number"
          },
          "instrument_name": {
            "$ref": "#/components/schemas/instrument_name"
          },
          "interest_rate": {
            "description": "Interest rate used in implied volatility calculations (options only)",
            "example": 0,
            "type": "number"
          },
          "last": {
            "description": "The price of the latest trade, `null` if there weren't any trades",
            "example": 7022.89,
            "type": "number"
          },
          "low": {
            "description": "Price of the 24h lowest trade, `null` if there weren't any trades",
            "example": 7022.89,
            "type": "number"
          },
          "mark_iv": {
            "$ref": "#/components/schemas/mark_iv"
          },
          "mark_price": {
            "description": "The current instrument market price",
            "example": 7022.89,
            "type": "number"
          },
          "mid_price": {
            "description": "The average of the best bid and ask, `null` if there aren't any asks or bids",
            "example": 7022.89,
            "type": "number"
          },
          "open_interest": {
            "description": "Optional (only for derivatives). The total amount of outstanding contracts in the corresponding amount units. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.",
            "example": 0.5,
            "type": "number"
          },
          "price_change": {
            "description": "24-hour price change expressed as a percentage, `null` if there weren't any trades",
            "example": 10.23,
            "type": "number"
          },
          "quote_currency": {
            "description": "Quote currency",
            "example": "USD",
            "type": "string"
          },
          "underlying_index": {
            "description": "Name of the underlying future, or `'index_price'` (options only)",
            "example": "index_price",
            "type": "string"
          },
          "underlying_price": {
            "description": "underlying price for implied volatility calculations (options only)",
            "example": 6745.34,
            "type": "number"
          },
          "volume": {
            "description": "The total 24h traded volume (in base currency)",
            "example": 223,
            "type": "number"
          },
          "volume_notional": {
            "description": "Volume in quote currency (futures and spots only)",
            "type": "number"
          },
          "volume_usd": {
            "description": "Volume in USD",
            "type": "number"
          }
        },
        "required": [
          "instrument_name",
          "high",
          "low",
          "base_currency",
          "quote_currency",
          "volume",
          "bid_price",
          "ask_price",
          "mid_price",
          "mark_price",
          "last",
          "open_interest",
          "creation_timestamp"
        ],
        "type": "object"
      },
      "cancel_reason": {
        "description": "Enumerated reason behind cancel `\"user_request\"`, `\"autoliquidation\"`, `\"cancel_on_disconnect\"`, `\"risk_mitigation\"`, `\"pme_risk_reduction\"` (portfolio margining risk reduction), `\"pme_account_locked\"` (portfolio margining account locked per currency), `\"position_locked\"`, `\"mmp_trigger\"` (market maker protection), `\"mmp_config_curtailment\"` (market maker configured quantity decreased), `\"edit_post_only_reject\"` (cancelled on edit because of `reject_post_only` setting), `\"oco_other_closed\"` (the oco order linked to this order was closed), `\"oto_primary_closed\"` (the oto primary order that was going to trigger this order was cancelled), `\"settlement\"` (closed because of a settlement)",
        "enum": [
          "user_request",
          "autoliquidation",
          "cancel_on_disconnect",
          "risk_mitigation",
          "pme_risk_reduction",
          "pme_account_locked",
          "position_locked",
          "mmp_trigger",
          "mmp_config_curtailment",
          "edit_post_only_reject",
          "oco_other_closed",
          "oto_primary_closed",
          "settlement"
        ],
        "type": "string"
      },
      "chart_volume": {
        "description": "// todo",
        "type": "number"
      },
      "cod_scope": {
        "description": "Informs if Cancel on Disconnect was checked for the current connection or the account",
        "enum": [
          "connection",
          "account"
        ],
        "type": "string"
      },
      "combo": {
        "properties": {
          "creation_timestamp": {
            "$ref": "#/components/schemas/timestamp"
          },
          "id": {
            "$ref": "#/components/schemas/combo_id"
          },
          "instrument_id": {
            "$ref": "#/components/schemas/instrument_id"
          },
          "legs": {
            "items": {
              "$ref": "#/components/schemas/combo_leg"
            },
            "type": "array"
          },
          "state": {
            "$ref": "#/components/schemas/combo_state"
          },
          "state_timestamp": {
            "$ref": "#/components/schemas/timestamp"
          }
        },
        "type": "object"
      },
      "combo_id": {
        "description": "Unique combo identifier",
        "example": "BTC-FS-31DEC21-PERP",
        "type": "string"
      },
      "combo_leg": {
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/combo_leg_amount"
          },
          "instrument_name": {
            "$ref": "#/components/schemas/instrument_name"
          }
        },
        "type": "object"
      },
      "combo_leg_amount": {
        "description": "Size multiplier of a leg. A negative value indicates that the trades on given leg are in opposite direction to the combo trades they originate from",
        "example": -1,
        "type": "integer"
      },
      "combo_state": {
        "description": "Combo state: `\"active\"`, \"`inactive`\"",
        "enum": [
          "active",
          "inactive"
        ],
        "type": "string"
      },
      "commission": {
        "description": "Commission paid so far (in base currency)",
        "type": "number"
      },
      "continuation": {
        "description": "Continuation token for pagination.",
        "example": "xY7T6cutS3t2B9YtaDkE6TS379oKnkzTvmEDUnEUP2Msa9xKWNNaT",
        "type": "string"
      },
      "continuation_with_null": {
        "description": "Continuation token for pagination. `NULL` when no continuation.",
        "example": 429946,
        "type": "integer"
      },
      "contract_size": {
        "description": "Contract size, for futures in USD, for options in base currency of the instrument (BTC, ETH, ...)",
        "example": 10,
        "type": "integer"
      },
      "contracts": {
        "description": "It represents the order size in contract units. (Optional, may be absent in historical data).",
        "type": "number"
      },
      "currency": {
        "description": "Currency, i.e `\"BTC\"`, `\"ETH\"`, `\"USDC\"`",
        "enum": [
          "BTC",
          "ETH",
          "USDC",
          "USDT",
          "EURR"
        ],
        "type": "string"
      },
      "currency_with_any": {
        "description": "Currency name or `\"any\"` if don't care",
        "enum": [
          "BTC",
          "ETH",
          "USDC",
          "USDT",
          "EURR",
          "any"
        ],
        "type": "string"
      },
      "currency_with_any_and_grouped": {
        "description": "Currency name or `\"any\"` if don't care or `\"grouped\"` if grouped by currencies",
        "enum": [
          "BTC",
          "ETH",
          "USDC",
          "SOL",
          "USDT",
          "EURR",
          "XRP",
          "STETH",
          "USYC",
          "PAXG",
          "BNB",
          "USDE",
          "any",
          "grouped"
        ],
        "type": "string"
      },
      "currency_with_any_and_list": {
        "description": "The currency symbol, list of currency symbols or `\"any\"` for all",
        "oneOf": [
          {
            "type": "string"
          },
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        ]
      },
      "currency_with_apr": {
        "properties": {
          "apr": {
            "description": "Simple Moving Average (SMA) of the last 7 days of rewards. If fewer than 7 days of reward data are available, the APR is calculated as the average of the available rewards. Only applicable to yield-generating tokens (`USDE`, `STETH`, `USDC`, `BUILD`).",
            "type": "number"
          },
          "coin_type": {
            "description": "The type of the currency.",
            "enum": [
              "BITCOIN",
              "ETHER"
            ],
            "type": "string"
          },
          "currency": {
            "description": "The abbreviation of the currency. This abbreviation is used elsewhere in the API to identify the currency.",
            "example": "BTC",
            "type": "string"
          },
          "currency_long": {
            "description": "The full name for the currency.",
            "example": "Bitcoin",
            "type": "string"
          },
          "decimals": {
            "description": "The number of decimal places for the currency",
            "example": 6,
            "type": "integer"
          },
          "in_cross_collateral_pool": {
            "description": "`true` if the currency is part of the cross collateral pool",
            "type": "boolean"
          },
          "min_confirmations": {
            "description": "Minimum number of block chain confirmations before deposit is accepted.",
            "example": 2,
            "type": "integer"
          },
          "min_withdrawal_fee": {
            "description": "The minimum transaction fee paid for withdrawals",
            "example": 0.0001,
            "type": "number"
          },
          "network_currency": {
            "description": "The currency of the network",
            "example": "BTC",
            "type": "string"
          },
          "network_fee": {
            "description": "The network fee",
            "example": 0.0001,
            "type": "number"
          },
          "withdrawal_fee": {
            "description": "The total transaction fee paid for withdrawals",
            "example": 0.0001,
            "type": "number"
          },
          "withdrawal_priorities": {
            "items": {
              "$ref": "#/components/schemas/key_number_pair"
            },
            "type": "array"
          }
        },
        "required": [
          "currency",
          "currency_long",
          "min_confirmations",
          "withdrawal_fee",
          "coin_type",
          "in_cross_collateral_pool"
        ],
        "type": "object"
      },
      "current_funding": {
        "description": "Current funding (perpetual only)",
        "type": "number"
      },
      "date": {
        "description": "The event date with year, month and day",
        "example": "2019-11-24",
        "type": "string"
      },
      "delivery_price": {
        "description": "The settlement price for the instrument. Only when `state = closed`",
        "type": "number"
      },
      "delta_total": {
        "description": "The sum of position deltas. \n\n**DeltaTotal = Net Transaction Delta of options + BTC Position of Futures**\n\nThe DeltaTotal uses the Net Transaction Delta (or price adjusted Delta) of the options, where Net Transaction Delta = Black Scholes Delta - Mark Price of Options.\n\nThis is because, from a risk perspective, we are interested in the change in Bitcoin price as the underlying changes.\n\nYou should actually treat your delta as **Equity + Delta Total** if you want to have less risk for your USD PnL.\n\n⚠️ **During the 30 minute settlement period we decay your Delta.** See [Delta decay during settlement](https://support.deribit.com/hc/en-us/articles/25944751433757-Delta-decay-during-settlement) for more details.\n",
        "example": 0.1334,
        "type": "number"
      },
      "direction": {
        "description": "Direction: `buy`, or `sell`",
        "enum": [
          "buy",
          "sell"
        ],
        "type": "string"
      },
      "display_amount": {
        "description": "The actual display amount of iceberg order. Absent for other types of orders.",
        "type": "number"
      },
      "enabled_field": {
        "description": "Current configuration status",
        "example": true,
        "type": "boolean"
      },
      "estimated_delivery_price": {
        "description": "Estimated delivery price for the market. For more details, see Contract Specification > General Documentation > Expiration Price",
        "example": 11628.81,
        "type": "number"
      },
      "estimated_liquidation_ratio": {
        "description": "Estimated Liquidation Ratio is returned only for users without portfolio margining enabled. Multiplying it by future position's market price returns its estimated liquidation price. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
        "example": 2.34e-05,
        "type": "number"
      },
      "expirations": {
        "description": "A map where each key is valid currency (e.g. btc, eth, usdc), and the value is a list of expirations or a map where each key is a valid kind (future or options) and value is a list of expirations from every instrument",
        "properties": {
          "currency": {
            "$ref": "#/components/schemas/currency_with_any_and_grouped"
          },
          "kind": {
            "$ref": "#/components/schemas/kind_future_or_option_with_any"
          }
        },
        "type": "object"
      },
      "fee_balance": {
        "description": "The account's fee balance (it can be used to pay for fees)",
        "type": "number"
      },
      "fee_role": {
        "description": "Fee role of the user: `maker` or `taker`. Can be different from trade role of the user when iceberg order was involved in matching.",
        "enum": [
          "maker",
          "taker"
        ],
        "type": "string"
      },
      "filled_amount": {
        "description": "Filled amount of the order. For perpetual and futures the filled_amount is in USD units, for options - in units or corresponding cryptocurrency contracts, e.g., BTC or ETH.",
        "type": "number"
      },
      "filled_amount_quote": {
        "description": "Filled amount of the quote. For perpetual and futures the filled_amount is in USD units, for options - in units or corresponding cryptocurrency contracts, e.g., BTC or ETH.",
        "type": "number"
      },
      "funding_8h": {
        "description": "Funding 8h (perpetual only)",
        "type": "number"
      },
      "greeks": {
        "description": "Only for options. Greeks are risk measures that describe how the option's price changes with respect to various factors.\n\n**Delta (Δ)**\n\nDeribit uses two different Deltas:\n- **DeltaTotal** in the account summary uses the **Net Transaction Delta (NTD)**\n- **Delta** for individual option expiries is the **Black Scholes Delta**\n\nIn the settings section you can toggle Net Transaction Delta instead.\n\n**What is DeltaTotal in the account summary?**\n`DeltaTotal = Net Transaction Delta of options + BTC Position of Futures`\n\n**What is Net Transaction Delta?**\n`Net Transaction Delta = Black Scholes Delta - Mark Price of Options`\n\n**Why do we use a Net Transaction Delta?**\nThe Delta Total uses the Net Transaction Delta (or price adjusted Delta) of the options. This is because, from a risk perspective, we are interested in the change in Bitcoin price as the underlying changes.\n\nYou should actually treat your delta as **Equity + Delta Total** if you want to have less risk for your USD PnL.\n\n**Example:** Consider a call option with strike 0, which has a Black Scholes Delta of 1 and Net Transaction Delta = 0.\n\nImagine you have 2 BTC equity and no positions and BTC price is at USD 60k. In that case you would short 2 Futures contracts to hedge your USD exposure to BTC.\n\nNow let's say you buy one call with strike 0. The question is if you should sell another future?\n\nThe call will always have a price of 1 BTC. So you buy it at 1 BTC which equates to USD 60k. Let's say the price increases to USD 70k. The value of the call is still 1 BTC. At settlement you receive 1 BTC for the call. So you paid 1 BTC and then receive 1 BTC which means your USD PnL on buying the call is 0. If you sold a future on it, then you would actually lose on the future.\n\n⚠️ **During the 30 minute settlement period we decay your Delta.** See [Delta decay during settlement](https://support.deribit.com/hc/en-us/articles/25944751433757-Delta-decay-during-settlement) for more details.\n\n**Theta (Θ)**\n\nThe Theta that Deribit uses is the **minimum of (1 day Theta, lifetime theta of the option)**. So if you take an option with 1 hour to expire for example, generally Black Scholes Theta will give you the equivalent 1 day Theta. Whereas we show the 1 hour Theta, so our Theta would differ from Black Scholes Theta when time to expiry is less than 1 day.\n\n**Vega, Gamma, and Rho**\n\nVega (not actually a Greek symbol), Gamma, Theta and Rho values shown on Deribit are calculated using **standard Black Scholes without adjustments**.\n",
        "properties": {
          "delta": {
            "description": "(Only for option) The delta value for the option. This is the **Black Scholes Delta** for individual option expiries. \n\nNote that DeltaTotal in account summary uses Net Transaction Delta instead. See the greeks object description for more details.\n",
            "type": "number"
          },
          "gamma": {
            "description": "(Only for option) The gamma value for the option. Calculated using standard Black Scholes without adjustments.\n\nGamma measures the rate of change of delta with respect to changes in the underlying asset price.\n",
            "type": "number"
          },
          "rho": {
            "description": "(Only for option) The rho value for the option. Calculated using standard Black Scholes without adjustments.\n\nRho measures the sensitivity of the option price to changes in the risk-free interest rate.\n",
            "type": "number"
          },
          "theta": {
            "description": "(Only for option) The theta value for the option. Deribit uses the **minimum of (1 day Theta, lifetime theta of the option)**.\n\nSo if you take an option with 1 hour to expire for example, generally Black Scholes Theta will give you the equivalent 1 day Theta. Whereas we show the 1 hour Theta, so our Theta would differ from Black Scholes Theta when time to expiry is less than 1 day.\n\nTheta measures the rate of change of the option price with respect to time decay.\n",
            "type": "number"
          },
          "vega": {
            "description": "(Only for option) The vega value for the option. Calculated using standard Black Scholes without adjustments.\n\nVega (not actually a Greek symbol) measures the sensitivity of the option price to changes in implied volatility.\n",
            "type": "number"
          }
        },
        "required": [
          "delta",
          "gamma",
          "rho",
          "theta",
          "vega"
        ],
        "type": "object"
      },
      "id": {
        "description": "Unique identifier",
        "example": 5967413,
        "type": "integer"
      },
      "implv": {
        "description": "Implied volatility in percent. (Only if `advanced=\"implv\"`)",
        "type": "number"
      },
      "index_name": {
        "description": "Index identifier, matches (base) cryptocurrency with quote currency",
        "enum": [
          "btc_usd",
          "eth_usd",
          "ada_usdc",
          "algo_usdc",
          "avax_usdc",
          "bch_usdc",
          "bnb_usdc",
          "btc_usdc",
          "btcdvol_usdc",
          "buidl_usdc",
          "doge_usdc",
          "dot_usdc",
          "eurr_usdc",
          "eth_usdc",
          "ethdvol_usdc",
          "link_usdc",
          "ltc_usdc",
          "near_usdc",
          "paxg_usdc",
          "shib_usdc",
          "sol_usdc",
          "steth_usdc",
          "ton_usdc",
          "trump_usdc",
          "trx_usdc",
          "uni_usdc",
          "usde_usdc",
          "usyc_usdc",
          "xrp_usdc",
          "btc_usdt",
          "eth_usdt",
          "eurr_usdt",
          "sol_usdt",
          "steth_usdt",
          "usdc_usdt",
          "usde_usdt",
          "btc_eurr",
          "btc_usde",
          "btc_usyc",
          "eth_btc",
          "eth_eurr",
          "eth_usde",
          "eth_usyc",
          "steth_eth",
          "paxg_btc",
          "drbfix-btc_usdc",
          "drbfix-eth_usdc"
        ],
        "type": "string"
      },
      "index_price": {
        "description": "Current index price",
        "example": 8247.27,
        "type": "number"
      },
      "instrument": {
        "properties": {
          "base_currency": {
            "description": "The underlying currency being traded.",
            "enum": [
              "BTC",
              "ETH"
            ],
            "type": "string"
          },
          "block_trade_commission": {
            "description": "Block Trade commission for instrument.",
            "example": 0.0005,
            "type": "number"
          },
          "block_trade_min_trade_amount": {
            "description": "Minimum amount for block trading.",
            "example": 25,
            "type": "number"
          },
          "block_trade_tick_size": {
            "description": "Specifies minimal price change for block trading.",
            "example": 0.01,
            "type": "number"
          },
          "contract_size": {
            "description": "Contract size for instrument.",
            "example": 1,
            "type": "integer"
          },
          "counter_currency": {
            "description": "Counter currency for the instrument.",
            "enum": [
              "USD",
              "USDC"
            ],
            "type": "string"
          },
          "creation_timestamp": {
            "description": "The time when the instrument was first created (milliseconds since the UNIX epoch).",
            "example": 1536569522277,
            "type": "integer"
          },
          "expiration_timestamp": {
            "description": "The time when the instrument will expire (milliseconds since the UNIX epoch).",
            "type": "integer"
          },
          "future_type": {
            "description": "Future type (only for futures)(field is deprecated and will be removed in the future, `instrument_type` should be used instead).",
            "enum": [
              "linear",
              "reversed"
            ],
            "type": "string"
          },
          "instrument_id": {
            "$ref": "#/components/schemas/instrument_id"
          },
          "instrument_name": {
            "$ref": "#/components/schemas/instrument_name"
          },
          "instrument_type": {
            "description": "Type of the instrument. `linear` or `reversed`",
            "type": "string"
          },
          "is_active": {
            "description": "Indicates if the instrument can currently be traded.",
            "type": "boolean"
          },
          "kind": {
            "$ref": "#/components/schemas/kind"
          },
          "maker_commission": {
            "description": "Maker commission for instrument.",
            "example": 0.0001,
            "type": "number"
          },
          "max_leverage": {
            "description": "Maximal leverage for instrument (only for futures).",
            "example": 100,
            "type": "integer"
          },
          "max_liquidation_commission": {
            "description": "Maximal liquidation trade commission for instrument (only for futures).",
            "example": 0.001,
            "type": "number"
          },
          "min_trade_amount": {
            "description": "Minimum amount for trading. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.",
            "example": 0.1,
            "type": "number"
          },
          "option_type": {
            "description": "The option type (only for options).",
            "enum": [
              "call",
              "put"
            ],
            "type": "string"
          },
          "price_index": {
            "$ref": "#/components/schemas/price_index"
          },
          "quote_currency": {
            "description": "The currency in which the instrument prices are quoted.",
            "enum": [
              "USD"
            ],
            "type": "string"
          },
          "settlement_currency": {
            "description": "Optional (not added for spot). Settlement currency for the instrument.",
            "enum": [
              "BTC",
              "ETH"
            ],
            "type": "string"
          },
          "settlement_period": {
            "description": "Optional (not added for spot). The settlement period.",
            "enum": [
              "month",
              "week",
              "perpetual"
            ],
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/book_state"
          },
          "strike": {
            "description": "The strike value (only for options).",
            "type": "number"
          },
          "taker_commission": {
            "description": "Taker commission for instrument.",
            "example": 0.0005,
            "type": "number"
          },
          "tick_size": {
            "description": "Specifies minimal price change and, as follows, the number of decimal places for instrument prices.",
            "example": 0.0001,
            "type": "number"
          },
          "tick_size_steps": {
            "$ref": "#/components/schemas/tick_size_step"
          },
          "underlying_type": {
            "description": "The type of the underlying asset.",
            "enum": [
              "equity",
              "commodity",
              "crypto"
            ],
            "type": "string"
          }
        },
        "required": [
          "kind",
          "base_currency",
          "quote_currency",
          "min_trade_amount",
          "instrument_name",
          "is_active",
          "settlement_period",
          "creation_timestamp",
          "tick_size",
          "expiration_timestamp",
          "contract_size",
          "price_index"
        ],
        "type": "object"
      },
      "instrument_id": {
        "description": "Instrument ID",
        "type": "integer"
      },
      "instrument_name": {
        "description": "Unique instrument identifier",
        "example": "BTC-PERPETUAL",
        "type": "string"
      },
      "interest_rate": {
        "description": "Interest rate used in implied volatility calculations (options only)",
        "type": "number"
      },
      "interest_value": {
        "description": "Value used to calculate `realized_funding` in positions (perpetual only)",
        "type": "number"
      },
      "is_secondary_oto": {
        "description": "`true` if the order is an order that can be triggered by another order, otherwise not present.",
        "type": "boolean"
      },
      "key_number_pair": {
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "number"
          }
        },
        "required": [
          "name",
          "value"
        ],
        "type": "object"
      },
      "kind": {
        "description": "Instrument kind: `\"future\"`, `\"option\"`, `\"spot\"`, `\"future_combo\"`, `\"option_combo\"`",
        "enum": [
          "future",
          "option",
          "spot",
          "future_combo",
          "option_combo"
        ],
        "type": "string"
      },
      "kind_future_or_option_with_any": {
        "description": "Instrument kind: `\"future\"`, `\"option\"` or `\"any\"` for all",
        "enum": [
          "future",
          "option",
          "any"
        ],
        "type": "string"
      },
      "kind_with_combo_all": {
        "description": "Instrument kind: `\"future\"`, `\"option\"`, `\"spot\"`, `\"future_combo\"`, `\"option_combo\"`, `\"combo\"` for any combo or `\"any\"` for all",
        "enum": [
          "future",
          "option",
          "spot",
          "future_combo",
          "option_combo",
          "combo",
          "any"
        ],
        "type": "string"
      },
      "kind_without_spot": {
        "description": "Instrument kind: `\"future\"`, `\"option\"`, `\"future_combo\"`, `\"option_combo\"` (spot is excluded as spot trades are settled immediately and have no open positions)",
        "enum": [
          "future",
          "option",
          "future_combo",
          "option_combo"
        ],
        "type": "string"
      },
      "label": {
        "description": "User defined label (up to 64 characters)",
        "type": "string"
      },
      "label_presentation": {
        "description": "User defined label (presented only when previously set for order by user)",
        "type": "string"
      },
      "last_price": {
        "description": "The price for the last trade",
        "type": [
          "number",
          "null"
        ]
      },
      "leg_structure": {
        "items": {
          "properties": {
            "direction": {
              "description": "Direction: `buy`, or `sell`",
              "enum": [
                "buy",
                "sell"
              ],
              "type": "string"
            },
            "instrument_name": {
              "description": "Unique instrument identifier",
              "example": "BTC-PERPETUAL",
              "type": "string"
            },
            "price": {
              "description": "Price for a leg",
              "type": "number"
            },
            "ratio": {
              "description": "Ratio of amount between legs",
              "type": "integer"
            }
          },
          "type": "object"
        },
        "type": "array"
      },
      "mark_iv": {
        "description": "(Only for option) implied volatility for mark price",
        "type": "number"
      },
      "mark_price": {
        "description": "The mark price for the instrument",
        "type": "number"
      },
      "max_price": {
        "description": "The maximum price for the future. Any buy orders you submit higher than this price, will be clamped to this maximum.",
        "type": "number"
      },
      "min_price": {
        "description": "The minimum price for the future. Any sell orders you submit lower than this price will be clamped to this minimum.",
        "type": "number"
      },
      "mobile": {
        "description": "Optional field with value `true` added only when created with Mobile Application",
        "type": "boolean"
      },
      "nonce": {
        "description": "Nonce",
        "example": "bF1_gfgcsd",
        "type": "string"
      },
      "oco_ref": {
        "description": "Unique reference that identifies a one_cancels_others (OCO) pair.",
        "type": "string"
      },
      "open_interest": {
        "description": "The total amount of outstanding contracts in the corresponding amount units. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.",
        "type": "number"
      },
      "open_order_price": {
        "description": "Price in base currency or \"market_price\" in case of open trigger market orders",
        "oneOf": [
          {
            "type": "number"
          },
          {
            "enum": [
              "market_price"
            ],
            "type": "string"
          }
        ]
      },
      "order": {
        "properties": {
          "advanced": {
            "$ref": "#/components/schemas/advanced"
          },
          "amount": {
            "$ref": "#/components/schemas/amount"
          },
          "api": {
            "$ref": "#/components/schemas/api"
          },
          "app_name": {
            "description": "The name of the application that placed the order on behalf of the user (optional).",
            "example": "Example Application",
            "type": "string"
          },
          "auto_replaced": {
            "description": "Options, advanced orders only - `true` if last modification of the order was performed by the pricing engine, otherwise `false`.",
            "type": "boolean"
          },
          "average_price": {
            "$ref": "#/components/schemas/average_price"
          },
          "block_trade": {
            "$ref": "#/components/schemas/block_trade_order"
          },
          "cancel_reason": {
            "$ref": "#/components/schemas/cancel_reason"
          },
          "contracts": {
            "$ref": "#/components/schemas/contracts"
          },
          "creation_timestamp": {
            "$ref": "#/components/schemas/timestamp"
          },
          "direction": {
            "$ref": "#/components/schemas/direction"
          },
          "display_amount": {
            "$ref": "#/components/schemas/display_amount"
          },
          "filled_amount": {
            "$ref": "#/components/schemas/filled_amount"
          },
          "implv": {
            "$ref": "#/components/schemas/implv"
          },
          "instrument_name": {
            "$ref": "#/components/schemas/instrument_name"
          },
          "is_liquidation": {
            "description": "Optional (not added for spot). `true` if order was automatically created during liquidation",
            "type": "boolean"
          },
          "is_primary_otoco": {
            "description": "`true` if the order is an order that can trigger an OCO pair, otherwise not present.",
            "type": "boolean"
          },
          "is_rebalance": {
            "description": "Optional (only for spot). `true` if order was automatically created during cross-collateral balance restoration",
            "type": "boolean"
          },
          "is_secondary_oto": {
            "$ref": "#/components/schemas/is_secondary_oto"
          },
          "label": {
            "$ref": "#/components/schemas/label"
          },
          "last_update_timestamp": {
            "$ref": "#/components/schemas/timestamp"
          },
          "mmp": {
            "description": "`true` if the order is a MMP order, otherwise `false`.",
            "type": "boolean"
          },
          "mmp_cancelled": {
            "description": "`true` if order was cancelled by mmp trigger (optional)",
            "example": true,
            "type": "boolean"
          },
          "mmp_group": {
            "description": "Name of the MMP group supplied in the `private/mass_quote` request. Only present for quote orders.",
            "type": "string"
          },
          "mobile": {
            "$ref": "#/components/schemas/mobile"
          },
          "oco_ref": {
            "$ref": "#/components/schemas/oco_ref"
          },
          "order_id": {
            "$ref": "#/components/schemas/order_id"
          },
          "order_state": {
            "$ref": "#/components/schemas/order_state"
          },
          "order_type": {
            "$ref": "#/components/schemas/order_type"
          },
          "original_order_type": {
            "$ref": "#/components/schemas/original_order_type"
          },
          "oto_order_ids": {
            "description": "The Ids of the orders that will be triggered if the order is filled",
            "items": {
              "$ref": "#/components/schemas/order_id",
              "description": "Order Id"
            },
            "type": "array"
          },
          "post_only": {
            "$ref": "#/components/schemas/post_only"
          },
          "price": {
            "$ref": "#/components/schemas/open_order_price"
          },
          "primary_order_id": {
            "$ref": "#/components/schemas/order_id",
            "description": "ID of the order that triggered this order."
          },
          "quote": {
            "description": "If order is a quote. Present only if true.",
            "type": "boolean"
          },
          "quote_id": {
            "description": "The same QuoteID as supplied in the `private/mass_quote` request. Only present for quote orders.",
            "type": "string"
          },
          "quote_set_id": {
            "description": "Identifier of the QuoteSet supplied in the `private/mass_quote` request. Only present for quote orders.",
            "type": "string"
          },
          "reduce_only": {
            "$ref": "#/components/schemas/reduce_only"
          },
          "refresh_amount": {
            "$ref": "#/components/schemas/refresh_amount"
          },
          "reject_post_only": {
            "$ref": "#/components/schemas/reject_post_only"
          },
          "replaced": {
            "description": "`true` if the order was edited (by user or - in case of advanced options orders - by pricing engine), otherwise `false`.",
            "type": "boolean"
          },
          "risk_reducing": {
            "description": "`true` if the order is marked by the platform as a risk reducing order (can apply only to orders placed by PM users), otherwise `false`.",
            "type": "boolean"
          },
          "time_in_force": {
            "$ref": "#/components/schemas/time_in_force"
          },
          "trigger": {
            "$ref": "#/components/schemas/trigger"
          },
          "trigger_fill_condition": {
            "$ref": "#/components/schemas/trigger_fill_condition"
          },
          "trigger_offset": {
            "$ref": "#/components/schemas/trigger_offset"
          },
          "trigger_order_id": {
            "description": "Id of the trigger order that created the order (Only for orders that were created by triggered orders).",
            "example": "SLIB-370",
            "type": "string"
          },
          "trigger_price": {
            "$ref": "#/components/schemas/trigger_price"
          },
          "trigger_reference_price": {
            "$ref": "#/components/schemas/trigger_reference_price"
          },
          "triggered": {
            "$ref": "#/components/schemas/triggered"
          },
          "usd": {
            "$ref": "#/components/schemas/usd"
          },
          "web": {
            "$ref": "#/components/schemas/web"
          }
        },
        "required": [
          "order_id",
          "order_state",
          "order_type",
          "time_in_force",
          "instrument_name",
          "creation_timestamp",
          "last_update_timestamp",
          "direction",
          "price",
          "label",
          "post_only",
          "api"
        ],
        "type": "object"
      },
      "order_id": {
        "description": "Unique order identifier",
        "example": "ETH-100234",
        "type": "string"
      },
      "order_id_initial_margin_pair": {
        "properties": {
          "initial_margin": {
            "description": "Initial margin of order",
            "type": "number"
          },
          "initial_margin_currency": {
            "description": "Currency of initial margin",
            "type": "string"
          },
          "order_id": {
            "$ref": "#/components/schemas/order_id"
          }
        },
        "required": [
          "order_id",
          "initial_margin"
        ],
        "type": "object"
      },
      "order_state": {
        "description": "Order state: `\"open\"`, `\"filled\"`, `\"rejected\"`, `\"cancelled\"`, `\"untriggered\"`",
        "enum": [
          "open",
          "filled",
          "rejected",
          "cancelled",
          "untriggered",
          "triggered"
        ],
        "type": "string"
      },
      "order_state_in_user_trade": {
        "description": "Order state: `\"open\"`, `\"filled\"`, `\"rejected\"`, `\"cancelled\"`, `\"untriggered\"` or `\"archive\"` (if order was archived)",
        "enum": [
          "open",
          "filled",
          "rejected",
          "cancelled",
          "untriggered",
          "archive"
        ],
        "type": "string"
      },
      "order_state_stop": {
        "description": "Order state: `\"triggered\"`, `\"cancelled\"`, or `\"rejected\"` with rejection reason (e.g. `\"rejected:reduce_direction\"`).",
        "type": "string"
      },
      "order_type": {
        "description": "Order type: `\"limit\"`, `\"market\"`, `\"stop_limit\"`, `\"stop_market\"`, `\"take_limit\"`, `\"take_market\"`, `\"trailing_stop\"`",
        "enum": [
          "market",
          "limit",
          "stop_market",
          "stop_limit",
          "take_market",
          "take_limit",
          "trailing_stop"
        ],
        "type": "string"
      },
      "order_type2": {
        "description": "Order type: `\"all\"`, `\"limit\"`, `\"trigger_all\"`, `\"stop_all\"`, `\"stop_limit\"`, `\"stop_market\"`, `\"take_all\"`, `\"take_limit\"`, `\"take_market\"`, `\"trailing_all\"`, `\"trailing_stop\"`",
        "enum": [
          "all",
          "limit",
          "trigger_all",
          "stop_all",
          "stop_limit",
          "stop_market",
          "take_all",
          "take_limit",
          "take_market",
          "trailing_all",
          "trailing_stop"
        ],
        "type": "string"
      },
      "orders": {
        "items": {
          "$ref": "#/components/schemas/order"
        },
        "type": "array"
      },
      "original_order_type": {
        "description": "Original order type. Optional field",
        "enum": [
          "market",
          "market_limit"
        ],
        "type": "string"
      },
      "pending_block_trade": {
        "properties": {
          "app_name": {
            "description": "The name of the application that executed the block trade on behalf of the user (optional).",
            "example": "Example Application",
            "type": "string"
          },
          "broker_code": {
            "description": "Broker code associated with the broker block trade.",
            "example": "jpqYKgg1",
            "type": "string"
          },
          "broker_name": {
            "description": "Name of the broker associated with the block trade.",
            "example": "Test Broker",
            "type": "string"
          },
          "combo_id": {
            "description": "Combo instrument identifier",
            "example": "BTC-CS-27JUN25-80000_85000",
            "type": "string"
          },
          "counterparty_state": {
            "description": "State of the pending block trade for the other party (optional).",
            "properties": {
              "timestamp": {
                "description": "State timestamp.",
                "type": "integer"
              },
              "value": {
                "description": "State value.",
                "enum": [
                  "initial",
                  "accepted",
                  "rejected",
                  "executed"
                ],
                "type": "string"
              }
            },
            "required": [
              "value",
              "timestamp"
            ],
            "type": "object"
          },
          "nonce": {
            "description": "Nonce that can be used to approve or reject pending block trade.",
            "example": "bF1_gfgcsd",
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/role"
          },
          "state": {
            "description": "State of the pending block trade for current user.",
            "properties": {
              "timestamp": {
                "description": "State timestamp.",
                "type": "integer"
              },
              "value": {
                "description": "State value.",
                "enum": [
                  "initial",
                  "accepted",
                  "rejected",
                  "executed"
                ],
                "type": "string"
              }
            },
            "required": [
              "value",
              "timestamp"
            ],
            "type": "object"
          },
          "timestamp": {
            "description": "Timestamp that can be used to approve or reject pending block trade.",
            "type": "integer"
          },
          "trades": {
            "items": {
              "$ref": "#/components/schemas/pending_block_trade"
            },
            "type": "array"
          },
          "user_id": {
            "$ref": "#/components/schemas/user_id"
          },
          "username": {
            "description": "Username of the user who initiated the block trade.",
            "example": "Trader",
            "type": "string"
          }
        },
        "required": [
          "nonce",
          "timestamp",
          "trades",
          "app_name",
          "role",
          "user_id",
          "state"
        ],
        "type": "object"
      },
      "pme_currency": {
        "description": "The currency for which the Extended Risk Matrix will be calculated. Use `CROSS` for Cross Collateral simulation.",
        "enum": [
          "BTC",
          "ETH",
          "USDC",
          "USDT",
          "CROSS"
        ],
        "type": "string"
      },
      "position": {
        "properties": {
          "average_price": {
            "description": "Average price of trades that built this position",
            "type": "number"
          },
          "average_price_usd": {
            "description": "Only for options, average price in USD",
            "type": "number"
          },
          "delta": {
            "description": "Delta parameter",
            "type": "number"
          },
          "direction": {
            "$ref": "#/components/schemas/position_direction"
          },
          "floating_profit_loss": {
            "description": "Floating profit or loss",
            "type": "number"
          },
          "floating_profit_loss_usd": {
            "description": "Only for options, floating profit or loss in USD",
            "type": "number"
          },
          "gamma": {
            "description": "Only for options, Gamma parameter",
            "type": "number"
          },
          "index_price": {
            "description": "Current index price",
            "type": "number"
          },
          "initial_margin": {
            "description": "Initial margin",
            "type": "number"
          },
          "instrument_name": {
            "$ref": "#/components/schemas/instrument_name"
          },
          "interest_value": {
            "description": "Value used to calculate `realized_funding` (perpetual only)",
            "type": "number"
          },
          "kind": {
            "$ref": "#/components/schemas/kind"
          },
          "leverage": {
            "description": "Current available leverage for future position",
            "type": "integer"
          },
          "maintenance_margin": {
            "description": "Maintenance margin",
            "type": "number"
          },
          "mark_price": {
            "description": "Current mark price for position's instrument",
            "type": "number"
          },
          "realized_funding": {
            "description": "Realized Funding in current session included in session realized profit or loss, only for positions of perpetual instruments",
            "type": "number"
          },
          "realized_profit_loss": {
            "description": "Realized profit or loss",
            "type": "number"
          },
          "settlement_price": {
            "description": "Optional (not added for spot). Last settlement price for position's instrument 0 if instrument wasn't settled yet",
            "type": "number"
          },
          "size": {
            "description": "Position size for futures size in quote currency (e.g. USD), for options size is in base currency (e.g. BTC)",
            "type": "number"
          },
          "size_currency": {
            "description": "Only for futures, position size in base currency",
            "type": "number"
          },
          "theta": {
            "description": "Only for options, Theta parameter",
            "type": "number"
          },
          "total_profit_loss": {
            "description": "Profit or loss from position",
            "type": "number"
          },
          "vega": {
            "description": "Only for options, Vega parameter",
            "type": "number"
          }
        },
        "required": [
          "instrument_name",
          "kind",
          "average_price",
          "direction",
          "mark_price",
          "delta",
          "index_price",
          "initial_margin",
          "maintenance_margin",
          "settlement_price",
          "total_profit_loss",
          "floating_profit_loss",
          "realized_profit_loss",
          "size"
        ],
        "type": "object"
      },
      "position_direction": {
        "description": "Direction: `buy`, `sell` or `zero`",
        "enum": [
          "buy",
          "sell",
          "zero"
        ],
        "type": "string"
      },
      "position_with_elp": {
        "allOf": [
          {
            "$ref": "#/components/schemas/position"
          },
          {
            "properties": {
              "estimated_liquidation_price": {
                "description": "Estimated liquidation price, added only for futures, for users with `segregated_sm` margin model",
                "type": "number"
              },
              "open_orders_margin": {
                "description": "Open orders margin",
                "type": "number"
              }
            },
            "required": [
              "estimated_liquidation_price",
              "open_orders_margin"
            ]
          }
        ]
      },
      "post_only": {
        "description": "`true` for post-only orders only",
        "type": "boolean"
      },
      "price": {
        "description": "Price in base currency",
        "type": "number"
      },
      "price_index": {
        "description": "Name of price index that is used for this instrument",
        "example": "btc_usdc",
        "type": "string"
      },
      "profit_loss": {
        "description": "Profit and loss in base currency.",
        "type": "number"
      },
      "projected_delta_total": {
        "description": "The sum of position deltas without positions that will expire during closest expiration",
        "example": 0.1334,
        "type": "number"
      },
      "projected_initial_margin": {
        "description": "Projected initial margin. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
        "example": 1,
        "type": "number"
      },
      "projected_maintenance_margin": {
        "description": "Projected maintenance margin. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value to the given currency, using each cross collateral currency's index.",
        "example": 1,
        "type": "number"
      },
      "public_trade": {
        "properties": {
          "amount": {
            "description": "Trade amount. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.",
            "type": "number"
          },
          "block_rfq_id": {
            "description": "ID of the Block RFQ - when trade was part of the Block RFQ",
            "type": "integer"
          },
          "block_trade_id": {
            "$ref": "#/components/schemas/block_trade_id_in_result"
          },
          "block_trade_leg_count": {
            "$ref": "#/components/schemas/block_trade_leg_count"
          },
          "combo_id": {
            "description": "Optional field containing combo instrument name if the trade is a combo trade",
            "type": "string"
          },
          "combo_trade_id": {
            "description": "Optional field containing combo trade identifier if the trade is a combo trade",
            "type": "number"
          },
          "contracts": {
            "description": "Trade size in contract units (optional, may be absent in historical trades)",
            "type": "number"
          },
          "direction": {
            "$ref": "#/components/schemas/direction",
            "description": "Trade direction of the taker"
          },
          "index_price": {
            "description": "Index Price at the moment of trade",
            "type": "number"
          },
          "instrument_name": {
            "$ref": "#/components/schemas/instrument_name"
          },
          "iv": {
            "description": "Option implied volatility for the price (Option only)",
            "type": "number"
          },
          "liquidation": {
            "description": "Optional field (only for trades caused by liquidation): `\"M\"` when maker side of trade was under liquidation, `\"T\"` when taker side was under liquidation, `\"MT\"` when both sides of trade were under liquidation",
            "enum": [
              "M",
              "T",
              "MT"
            ],
            "type": "string"
          },
          "mark_price": {
            "description": "Mark Price at the moment of trade",
            "type": "number"
          },
          "price": {
            "$ref": "#/components/schemas/price",
            "description": "The price of the trade"
          },
          "tick_direction": {
            "$ref": "#/components/schemas/tick_direction"
          },
          "timestamp": {
            "$ref": "#/components/schemas/trade_timestamp"
          },
          "trade_id": {
            "$ref": "#/components/schemas/trade_id"
          },
          "trade_seq": {
            "$ref": "#/components/schemas/trade_seq"
          }
        },
        "required": [
          "trade_id",
          "instrument_name",
          "timestamp",
          "trade_seq",
          "direction",
          "tick_direction",
          "index_price",
          "price",
          "amount",
          "mark_price"
        ],
        "type": "object"
      },
      "quote_asks": {
        "items": {
          "properties": {
            "amount": {
              "description": "This value multiplied by the ratio of a leg gives trade size on that leg.",
              "type": "number"
            },
            "execution_instruction": {
              "description": "Execution instruction of the quote. Default - `any_part_of`\n\n- `\"all_or_none (AON)\"` - The quote can only be filled entirely or not at all, ensuring that its amount matches the amount specified in the Block RFQ. Additionally, 'all_or_none' quotes have priority over 'any_part_of' quotes at the same price level.\n- `\"any_part_of (APO)\"` - The quote can be filled either partially or fully, with the filled amount potentially being less than the Block RFQ amount.",
              "enum": [
                "any_part_of",
                "all_or_none"
              ],
              "type": "string"
            },
            "expires_at": {
              "description": "The timestamp when the quote expires (milliseconds since the Unix epoch), equal to the earliest expiry of placed quotes",
              "example": 1745312540321,
              "type": "integer"
            },
            "last_update_timestamp": {
              "description": "Timestamp of the last update of the quote (milliseconds since the UNIX epoch)",
              "example": 1536569522277,
              "type": "integer"
            },
            "makers": {
              "items": {
                "description": "Maker of the quote",
                "type": "string"
              },
              "type": "array"
            },
            "price": {
              "description": "Price of a quote",
              "type": "number"
            }
          },
          "type": "object"
        },
        "type": "array"
      },
      "quote_bids": {
        "items": {
          "properties": {
            "amount": {
              "description": "This value multiplied by the ratio of a leg gives trade size on that leg.",
              "type": "number"
            },
            "execution_instruction": {
              "description": "Execution instruction of the quote. Default - `any_part_of`\n\n- `\"all_or_none (AON)\"` - The quote can only be filled entirely or not at all, ensuring that its amount matches the amount specified in the Block RFQ. Additionally, 'all_or_none' quotes have priority over 'any_part_of' quotes at the same price level.\n- `\"any_part_of (APO)\"` - The quote can be filled either partially or fully, with the filled amount potentially being less than the Block RFQ amount.",
              "enum": [
                "any_part_of",
                "all_or_none"
              ],
              "type": "string"
            },
            "expires_at": {
              "description": "The timestamp when the quote expires (milliseconds since the Unix epoch), equal to the earliest expiry of placed quotes",
              "example": 1745312540321,
              "type": "integer"
            },
            "last_update_timestamp": {
              "description": "Timestamp of the last update of the quote (milliseconds since the UNIX epoch)",
              "example": 1536569522277,
              "type": "integer"
            },
            "makers": {
              "items": {
                "description": "Maker of the quote",
                "type": "string"
              },
              "type": "array"
            },
            "price": {
              "description": "Price of a quote",
              "type": "number"
            }
          },
          "type": "object"
        },
        "type": "array"
      },
      "quote_direction": {
        "description": "Direction of trade from the maker perspective",
        "enum": [
          "buy",
          "sell"
        ],
        "type": "string"
      },
      "quote_price": {
        "description": "Price in quote currency",
        "type": "number"
      },
      "reduce_only": {
        "description": "Optional (not added for spot). '`true` for reduce-only orders only'",
        "type": "boolean"
      },
      "refresh_amount": {
        "description": "The initial display amount of iceberg order. Iceberg order display amount will be refreshed to that value after match consuming actual display amount. Absent for other types of orders",
        "type": "number"
      },
      "reject_post_only": {
        "description": "`true` if order has `reject_post_only` flag (field is present only when `post_only` is `true`)",
        "type": "boolean"
      },
      "replaced_quote": {
        "description": "`true` if the quote was edited, otherwise `false`.",
        "type": "boolean"
      },
      "role": {
        "description": "Trade role of the user: `maker` or `taker`",
        "enum": [
          "maker",
          "taker"
        ],
        "type": "string"
      },
      "rpl": {
        "description": "Session realized profit and loss",
        "example": 0.1,
        "type": "number"
      },
      "settlement": {
        "properties": {
          "funded": {
            "description": "funded amount (bankruptcy only)",
            "example": 0,
            "type": "number"
          },
          "funding": {
            "description": "funding (in base currency ; settlement for perpetual product only)",
            "example": -2.511e-06,
            "type": "number"
          },
          "index_price": {
            "description": "underlying index price at time of event (in quote currency; settlement and delivery only)",
            "example": 11008.37,
            "type": "number"
          },
          "instrument_name": {
            "description": "instrument name (settlement and delivery only)",
            "example": "BTC-30MAR18",
            "type": "string"
          },
          "mark_price": {
            "description": "mark price for at the settlement time (in quote currency; settlement and delivery only)",
            "example": 11000,
            "type": "number"
          },
          "position": {
            "description": "position size (in quote currency; settlement and delivery only)",
            "example": 1000,
            "type": "number"
          },
          "profit_loss": {
            "description": "profit and loss (in base currency; settlement and delivery only)",
            "example": 0,
            "type": "number"
          },
          "session_bankruptcy": {
            "description": "value of session bankruptcy (in base currency; bankruptcy only)",
            "example": 0.001160788,
            "type": "number"
          },
          "session_profit_loss": {
            "description": "total value of session profit and losses (in base currency)",
            "example": 0.001160788,
            "type": "number"
          },
          "session_tax": {
            "description": "total amount of paid taxes/fees (in base currency; bankruptcy only)",
            "example": -0.001160788,
            "type": "number"
          },
          "session_tax_rate": {
            "description": "rate of paid taxes/fees (in base currency; bankruptcy only)",
            "example": 0.000103333,
            "type": "number"
          },
          "socialized": {
            "description": "the amount of the socialized losses (in base currency; bankruptcy only)",
            "example": -0.001160788,
            "type": "number"
          },
          "timestamp": {
            "$ref": "#/components/schemas/timestamp"
          },
          "type": {
            "$ref": "#/components/schemas/settlement_type"
          }
        },
        "required": [
          "type",
          "timestamp",
          "session_profit_loss",
          "position",
          "instrument_name",
          "index_price",
          "funding"
        ],
        "type": "object"
      },
      "settlement_currency_with_any_and_grouped": {
        "description": "Currency name or `\"any\"` if don't care or `\"grouped\"` if grouped by currencies",
        "enum": [
          "BTC",
          "ETH",
          "USDC",
          "USDT",
          "any",
          "grouped"
        ],
        "type": "string"
      },
      "settlement_price": {
        "description": "Optional (not added for spot). The settlement price for the instrument. Only when `state = open`",
        "type": "number"
      },
      "settlement_type": {
        "description": "The type of settlement. `settlement`, `delivery` or `bankruptcy`.",
        "enum": [
          "settlement",
          "delivery",
          "bankruptcy"
        ],
        "type": "string"
      },
      "simple_order_type": {
        "description": "Order type: `\"all\"`, `\"limit\"`, `\"stop\"`, `\"take\"`, `\"trailing_stop\"`, `\"trailing_take\"`",
        "enum": [
          "all",
          "limit",
          "trigger_all",
          "stop",
          "take",
          "trailing_stop"
        ],
        "type": "string"
      },
      "sorting": {
        "enum": [
          "asc",
          "desc",
          "default"
        ],
        "type": "string"
      },
      "stats": {
        "properties": {
          "high": {
            "description": "Highest price during 24h",
            "type": "number"
          },
          "low": {
            "description": "Lowest price during 24h",
            "type": "number"
          },
          "price_change": {
            "description": "24-hour price change expressed as a percentage, `null` if there weren't any trades",
            "example": 10.23,
            "type": "number"
          },
          "volume": {
            "description": "Volume during last 24h in base currency",
            "type": "number"
          },
          "volume_usd": {
            "$ref": "#/components/schemas/volume_usd"
          }
        },
        "required": [
          "volume",
          "high",
          "low"
        ],
        "type": "object"
      },
      "tick_direction": {
        "description": "Direction of the \"tick\" (`0` = Plus Tick, `1` = Zero-Plus Tick, `2` = Minus Tick, `3` = Zero-Minus Tick).",
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer"
      },
      "tick_size_step": {
        "properties": {
          "above_price": {
            "description": "The price from which the increased tick size applies",
            "type": "number"
          },
          "tick_size": {
            "description": "Tick size to be used above the price. It must be multiple of the minimum tick size.",
            "type": "number"
          }
        },
        "type": "object"
      },
      "time_in_force": {
        "description": "Order time in force: `\"good_til_cancelled\"`, `\"good_til_day\"`, `\"fill_or_kill\"` or `\"immediate_or_cancel\"`",
        "enum": [
          "good_til_cancelled",
          "good_til_day",
          "fill_or_kill",
          "immediate_or_cancel"
        ],
        "type": "string"
      },
      "timestamp": {
        "description": "The timestamp (milliseconds since the Unix epoch)",
        "example": 1536569522277,
        "type": "integer"
      },
      "trade_allocations": {
        "description": "List of allocations for Block RFQ pre-allocation. Allows to split amount between different (sub)accounts or broker clients. Each allocation must specify either `user_id` (for direct allocation) or `client_info` object (for broker allocation), and amount. Visible only to the taker.",
        "items": {
          "properties": {
            "amount": {
              "description": "Amount allocated to this user or client.",
              "type": "number"
            },
            "client_info": {
              "description": "Client allocation info for brokers.",
              "properties": {
                "client_id": {
                  "description": "ID of a client; available to broker. Represents a group of users under a common name.",
                  "type": "integer"
                },
                "client_link_id": {
                  "description": "ID assigned to a single user in a client; available to broker.",
                  "type": "integer"
                },
                "name": {
                  "description": "Name of the linked user within the client; available to broker.",
                  "type": "string"
                }
              },
              "type": "object"
            },
            "user_id": {
              "description": "User ID to allocate part of the RFQ amount. For brokers the User ID is obstructed.",
              "type": "integer"
            }
          },
          "type": "object"
        },
        "type": "array"
      },
      "trade_id": {
        "description": "Unique (per currency) trade identifier",
        "type": "string"
      },
      "trade_seq": {
        "description": "The sequence number of the trade within instrument",
        "type": "integer"
      },
      "trade_timestamp": {
        "description": "The timestamp of the trade (milliseconds since the UNIX epoch)",
        "example": 1517329113791,
        "type": "integer"
      },
      "trade_trigger": {
        "description": "Contains information about the trade trigger state",
        "properties": {
          "cancel_reason": {
            "description": "Reason for cancellation, present only when state is cancelled",
            "type": "string"
          },
          "direction": {
            "description": "Direction of the trade trigger",
            "enum": [
              "buy",
              "sell"
            ],
            "type": "string"
          },
          "price": {
            "description": "Price of the trade trigger",
            "type": "number"
          },
          "state": {
            "$ref": "#/components/schemas/trade_trigger_state"
          }
        },
        "required": [
          "state",
          "price",
          "direction"
        ],
        "type": "object"
      },
      "trade_trigger_state": {
        "description": "Trade trigger state: `\"untriggered\"` or `\"cancelled\"`",
        "enum": [
          "triggered",
          "untriggered",
          "cancelled"
        ],
        "type": "string"
      },
      "trades_volumes": {
        "properties": {
          "calls_volume": {
            "description": "Total 24h trade volume for call options.",
            "example": 20.1,
            "type": "number"
          },
          "calls_volume_30d": {
            "description": "Total 30d trade volume for call options.",
            "example": 547.3,
            "type": "number"
          },
          "calls_volume_7d": {
            "description": "Total 7d trade volume for call options.",
            "example": 75.6,
            "type": "number"
          },
          "currency": {
            "$ref": "#/components/schemas/currency"
          },
          "futures_volume": {
            "description": "Total 24h trade volume for futures.",
            "example": 30.5178,
            "type": "number"
          },
          "futures_volume_30d": {
            "description": "Total 30d trade volume for futures.",
            "example": 998.2128,
            "type": "number"
          },
          "futures_volume_7d": {
            "description": "Total 7d trade volume for futures.",
            "example": 213.8841,
            "type": "number"
          },
          "puts_volume": {
            "description": "Total 24h trade volume for put options.",
            "example": 60.2,
            "type": "number"
          },
          "puts_volume_30d": {
            "description": "Total 30d trade volume for put options.",
            "example": 785.5,
            "type": "number"
          },
          "puts_volume_7d": {
            "description": "Total 7d trade volume for put options.",
            "example": 356.9,
            "type": "number"
          },
          "spot_volume": {
            "description": "Total 24h trade for spot.",
            "example": 11.6,
            "type": "number"
          },
          "spot_volume_30d": {
            "description": "Total 30d trade for spot.",
            "example": 310.5,
            "type": "number"
          },
          "spot_volume_7d": {
            "description": "Total 7d trade for spot.",
            "example": 64.8,
            "type": "number"
          }
        },
        "required": [
          "currency",
          "futures_volume",
          "puts_volume",
          "calls_volume"
        ],
        "type": "object"
      },
      "transaction_log": {
        "properties": {
          "amount": {
            "description": "It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.",
            "type": "number"
          },
          "balance": {
            "description": "Cash balance after the transaction",
            "type": "number"
          },
          "block_rfq_id": {
            "description": "ID of the Block RFQ - when trade was part of the Block RFQ",
            "type": "integer"
          },
          "cashflow": {
            "description": "For futures and perpetual contracts: Realized session PNL (since last settlement). For options: the amount paid or received for the options traded.",
            "type": "number"
          },
          "change": {
            "description": "Change in cash balance. For trades: fees and options premium paid/received. For settlement: Futures session PNL and perpetual session funding.",
            "type": "number"
          },
          "commission": {
            "$ref": "#/components/schemas/commission"
          },
          "contracts": {
            "$ref": "#/components/schemas/contracts"
          },
          "currency": {
            "$ref": "#/components/schemas/currency"
          },
          "equity": {
            "description": "Updated equity value after the transaction",
            "type": "number"
          },
          "fee_role": {
            "$ref": "#/components/schemas/fee_role"
          },
          "id": {
            "$ref": "#/components/schemas/id"
          },
          "index_price": {
            "description": "The index price for the instrument during the delivery",
            "type": "number"
          },
          "info": {
            "description": "Additional information regarding transaction. Strongly dependent on the log entry type",
            "type": "object"
          },
          "instrument_name": {
            "$ref": "#/components/schemas/instrument_name"
          },
          "interest_pl": {
            "description": "Actual funding rate of trades and settlements on perpetual instruments",
            "type": "number"
          },
          "ip": {
            "description": "The IP address from which the trade was initiated",
            "type": "string"
          },
          "mark_price": {
            "description": "Market price during the trade",
            "type": "number"
          },
          "order_id": {
            "$ref": "#/components/schemas/order_id"
          },
          "position": {
            "description": "Updated position size after the transaction",
            "type": "number"
          },
          "price": {
            "description": "Settlement/delivery price or the price level of the traded contracts",
            "type": "number"
          },
          "price_currency": {
            "description": "Currency symbol associated with the `price` field value",
            "type": "string"
          },
          "profit_as_cashflow": {
            "description": "Indicator informing whether the cashflow is waiting for settlement or not",
            "type": "boolean"
          },
          "session_rpl": {
            "$ref": "#/components/schemas/rpl"
          },
          "session_upl": {
            "$ref": "#/components/schemas/upl"
          },
          "settlement_price": {
            "description": "The settlement price for the instrument during the delivery",
            "type": "number"
          },
          "side": {
            "description": "One of: `short` or `long` in case of settlements, `close sell` or `close buy` in case of deliveries, `open sell`, `open buy`, `close sell`, `close buy` in case of trades",
            "type": "string"
          },
          "timestamp": {
            "$ref": "#/components/schemas/timestamp"
          },
          "total_interest_pl": {
            "description": "Total session funding rate",
            "type": "number"
          },
          "trade_id": {
            "$ref": "#/components/schemas/trade_id"
          },
          "type": {
            "description": "Transaction category/type. The most common are: `trade`, `deposit`, `withdrawal`, `settlement`, `delivery`, `transfer`, `swap`, `correction`. New types can be added any time in the future",
            "type": "string"
          },
          "user_id": {
            "$ref": "#/components/schemas/user_id"
          },
          "user_role": {
            "$ref": "#/components/schemas/role"
          },
          "user_seq": {
            "description": "Sequential identifier of user transaction",
            "type": "integer"
          },
          "username": {
            "$ref": "#/components/schemas/username"
          }
        },
        "required": [
          "id",
          "currency",
          "timestamp",
          "user_id",
          "commission",
          "cashflow",
          "balance",
          "change",
          "user_seq",
          "type"
        ],
        "type": "object"
      },
      "trigger": {
        "description": "Trigger type (only for trigger orders). Allowed values: `\"index_price\"`, `\"mark_price\"`, `\"last_price\"`.",
        "enum": [
          "index_price",
          "mark_price",
          "last_price"
        ],
        "type": "string"
      },
      "trigger_fill_condition": {
        "description": "<p>The fill condition of the linked order (Only for linked order types), default: `first_hit`.</p> <ul> <li>`\"first_hit\"` - any execution of the primary order will fully cancel/place all secondary orders.</li> <li>`\"complete_fill\"` - a complete execution (meaning the primary order no longer exists) will cancel/place the secondary orders.</li> <li>`\"incremental\"` - any fill of the primary order will cause proportional partial cancellation/placement of the secondary order. The amount that will be subtracted/added to the secondary order will be rounded down to the contract size.</li> </ul>",
        "enum": [
          "first_hit",
          "complete_fill",
          "incremental"
        ],
        "type": "string"
      },
      "trigger_offset": {
        "description": "The maximum deviation from the price peak beyond which the order will be triggered (Only for trailing trigger orders)",
        "type": "number"
      },
      "trigger_order_history_record": {
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/amount"
          },
          "direction": {
            "$ref": "#/components/schemas/direction"
          },
          "instrument_name": {
            "$ref": "#/components/schemas/instrument_name"
          },
          "is_secondary_oto": {
            "$ref": "#/components/schemas/is_secondary_oto"
          },
          "label": {
            "$ref": "#/components/schemas/label_presentation"
          },
          "last_update_timestamp": {
            "$ref": "#/components/schemas/timestamp"
          },
          "oco_ref": {
            "$ref": "#/components/schemas/oco_ref"
          },
          "order_id": {
            "$ref": "#/components/schemas/order_id"
          },
          "order_state": {
            "$ref": "#/components/schemas/order_state_stop"
          },
          "order_type": {
            "description": "Requested order type: `\"limit` or `\"market\"`",
            "enum": [
              "limit",
              "market"
            ],
            "type": "string"
          },
          "post_only": {
            "$ref": "#/components/schemas/post_only"
          },
          "price": {
            "$ref": "#/components/schemas/price"
          },
          "reduce_only": {
            "$ref": "#/components/schemas/reduce_only"
          },
          "request": {
            "description": "Type of last request performed on the trigger order by user or system. `\"cancel\"` - when order was cancelled, `\"trigger:order\"` - when trigger order spawned market or limit order after being triggered",
            "example": "trigger:order",
            "type": "string"
          },
          "source": {
            "description": "Source of the order that is linked to the trigger order.",
            "example": "api",
            "type": "string"
          },
          "timestamp": {
            "$ref": "#/components/schemas/timestamp"
          },
          "trigger": {
            "$ref": "#/components/schemas/trigger"
          },
          "trigger_offset": {
            "$ref": "#/components/schemas/trigger_offset"
          },
          "trigger_order_id": {
            "description": "Id of the user order used for the trigger-order reference before triggering",
            "example": "SLTB-187015",
            "type": "string"
          },
          "trigger_price": {
            "$ref": "#/components/schemas/trigger_price"
          }
        },
        "required": [
          "trigger",
          "timestamp",
          "trigger_price",
          "trigger_order_id",
          "order_state",
          "request",
          "post_only",
          "order_type",
          "price",
          "order_id",
          "trigger_offset",
          "instrument_name",
          "amount",
          "direction",
          "reduce_only"
        ],
        "type": "object"
      },
      "trigger_price": {
        "description": "Trigger price (Only for future trigger orders)",
        "type": "number"
      },
      "trigger_reference_price": {
        "description": "The price of the given trigger at the time when the order was placed (Only for trailing trigger orders)",
        "type": "number"
      },
      "triggered": {
        "description": "Whether the trigger order has been triggered",
        "type": "boolean"
      },
      "underlying_index": {
        "description": "Name of the underlying future, or `index_price` (options only)",
        "type": "number"
      },
      "underlying_price": {
        "description": "Underlying price for implied volatility calculations (options only)",
        "type": "number"
      },
      "upl": {
        "description": "Session unrealized profit and loss",
        "example": 0.846863,
        "type": "number"
      },
      "usd": {
        "description": "Option price in USD (Only if `advanced=\"usd\"`)",
        "type": "number"
      },
      "user_id": {
        "description": "Unique user identifier",
        "example": 57874,
        "type": "integer"
      },
      "user_trade": {
        "properties": {
          "advanced": {
            "description": "Advanced type of user order: `\"usd\"` or `\"implv\"` (only for options; omitted if not applicable)",
            "enum": [
              "usd",
              "implv"
            ],
            "type": "string"
          },
          "amount": {
            "description": "Trade amount. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.",
            "type": "number"
          },
          "api": {
            "description": "`true` if user order was created with API",
            "type": "boolean"
          },
          "block_rfq_id": {
            "description": "ID of the Block RFQ - when trade was part of the Block RFQ",
            "type": "integer"
          },
          "block_rfq_quote_id": {
            "description": "ID of the Block RFQ quote - when trade was part of the Block RFQ",
            "type": "integer"
          },
          "block_trade_id": {
            "$ref": "#/components/schemas/block_trade_id_in_result"
          },
          "combo_id": {
            "description": "Optional field containing combo instrument name if the trade is a combo trade",
            "type": "string"
          },
          "combo_trade_id": {
            "description": "Optional field containing combo trade identifier if the trade is a combo trade",
            "type": "number"
          },
          "contracts": {
            "description": "Trade size in contract units (optional, may be absent in historical trades)",
            "type": "number"
          },
          "direction": {
            "$ref": "#/components/schemas/direction",
            "description": "Trade direction of the taker"
          },
          "fee": {
            "description": "User's fee in units of the specified `fee_currency`",
            "type": "number"
          },
          "fee_currency": {
            "$ref": "#/components/schemas/currency"
          },
          "index_price": {
            "description": "Index Price at the moment of trade",
            "type": "number"
          },
          "instrument_name": {
            "$ref": "#/components/schemas/instrument_name"
          },
          "iv": {
            "description": "Option implied volatility for the price (Option only)",
            "type": "number"
          },
          "label": {
            "$ref": "#/components/schemas/label_presentation"
          },
          "legs": {
            "description": "Optional field containing leg trades if trade is a combo trade (present when querying for **only** combo trades and in `combo_trades` events)",
            "type": "array"
          },
          "liquidation": {
            "description": "Optional field (only for trades caused by liquidation): `\"M\"` when maker side of trade was under liquidation, `\"T\"` when taker side was under liquidation, `\"MT\"` when both sides of trade were under liquidation",
            "enum": [
              "M",
              "T",
              "MT"
            ],
            "type": "string"
          },
          "liquidity": {
            "description": "Describes what was role of users order: `\"M\"` when it was maker order, `\"T\"` when it was taker order",
            "enum": [
              "M",
              "T"
            ],
            "type": "string"
          },
          "mark_price": {
            "description": "Mark Price at the moment of trade",
            "type": "number"
          },
          "matching_id": {
            "description": "Always `null`",
            "type": "string"
          },
          "mmp": {
            "description": "`true` if user order is MMP",
            "type": "boolean"
          },
          "order_id": {
            "description": "Id of the user order (maker or taker), i.e. subscriber's order id that took part in the trade",
            "type": "string"
          },
          "order_type": {
            "description": "Order type: `\"limit`, `\"market\"`, or `\"liquidation\"`",
            "enum": [
              "limit",
              "market",
              "liquidation"
            ],
            "type": "string"
          },
          "post_only": {
            "description": "`true` if user order is post-only",
            "type": "string"
          },
          "price": {
            "$ref": "#/components/schemas/price",
            "description": "The price of the trade"
          },
          "profit_loss": {
            "$ref": "#/components/schemas/profit_loss"
          },
          "quote_id": {
            "description": "QuoteID of the user order (optional, present only for orders placed with `private/mass_quote`)",
            "type": "string"
          },
          "quote_set_id": {
            "description": "QuoteSet of the user order (optional, present only for orders placed with `private/mass_quote`)",
            "type": "string"
          },
          "reduce_only": {
            "description": "`true` if user order is reduce-only",
            "type": "string"
          },
          "risk_reducing": {
            "description": "`true` if user order is marked by the platform as a risk reducing order (can apply only to orders placed by PM users)",
            "type": "boolean"
          },
          "state": {
            "$ref": "#/components/schemas/order_state_in_user_trade"
          },
          "tick_direction": {
            "$ref": "#/components/schemas/tick_direction"
          },
          "timestamp": {
            "$ref": "#/components/schemas/trade_timestamp"
          },
          "trade_allocations": {
            "description": "List of allocations for Block RFQ pre-allocation. Each allocation specifies `user_id`, `amount`, and `fee` for the allocated part of the trade. For broker client allocations, a `client_info` object will be included.",
            "items": {
              "properties": {
                "amount": {
                  "description": "Amount allocated to this user.",
                  "type": "number"
                },
                "client_info": {
                  "description": "Optional client allocation info for brokers.",
                  "properties": {
                    "client_id": {
                      "description": "ID of a client; available to broker. Represents a group of users under a common name.",
                      "type": "integer"
                    },
                    "client_link_id": {
                      "description": "ID assigned to a single user in a client; available to broker.",
                      "type": "integer"
                    },
                    "name": {
                      "description": "Name of the linked user within the client; available to broker.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "fee": {
                  "description": "Fee for the allocated part of the trade.",
                  "type": "number"
                },
                "user_id": {
                  "description": "User ID to which part of the trade is allocated. For brokers the User ID is obstructed.",
                  "type": "integer"
                }
              },
              "required": [
                "amount",
                "fee"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "trade_id": {
            "$ref": "#/components/schemas/trade_id"
          },
          "trade_seq": {
            "$ref": "#/components/schemas/trade_seq"
          },
          "underlying_price": {
            "description": "Underlying price for implied volatility calculations (Options only)",
            "type": "number"
          }
        },
        "required": [
          "trade_id",
          "trade_seq",
          "instrument_name",
          "timestamp",
          "order_id",
          "matching_id",
          "direction",
          "tick_direction",
          "index_price",
          "price",
          "amount",
          "fee",
          "fee_currency",
          "state",
          "mark_price"
        ],
        "type": "object"
      },
      "username": {
        "description": "System name or user defined subaccount alias",
        "example": "MrTrader",
        "type": "string"
      },
      "volume_usd": {
        "description": "Volume in usd (futures only)",
        "type": "number"
      },
      "wallet_currency": {
        "description": "Currency, i.e `\"BTC\"`, `\"ETH\"`, `\"USDC\"`",
        "enum": [
          "BTC",
          "ETH",
          "STETH",
          "ETHW",
          "USDC",
          "USDT",
          "EURR",
          "SOL",
          "XRP",
          "USYC",
          "PAXG",
          "BNB",
          "USDE"
        ],
        "type": "string"
      },
      "web": {
        "description": "`true` if created via Deribit frontend (optional)",
        "type": "boolean"
      }
    }
  },
  "info": {
    "description": "Coinbase Retail Advanced Trade API for derivatives trading.",
    "title": "Coinbase Retail Advanced Trade (Deribit) API",
    "version": "2.1.1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/private/accept_block_rfq": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "**Taker method**\n\nAllows Block RFQ taker to accept a quote by sending a single crossing price. The order can be either filled immediately (`fill_or_kill`) or remain active until cancelled (`good_til_cancelled`).\n\n**Note:** After Block RFQ creation, a grace period of 5 seconds begins, during which the taker cannot see quotes or trade the Block RFQ.\n\nUse [private/get_block_rfqs](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfqs) to retrieve Block RFQ information, or [private/cancel_block_rfq](https://docs.deribit.com/api-reference/block-rfq/private-cancel_block_rfq) to cancel a Block RFQ.\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Faccept_block_rfq)\n\n",
        "parameters": [
          {
            "description": "ID of the Block RFQ",
            "in": "query",
            "name": "block_rfq_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Maximum acceptable price for execution",
            "in": "query",
            "name": "price",
            "required": true,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "This value multiplied by the ratio of a leg gives trade size on that leg.",
            "in": "query",
            "name": "amount",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/amount"
            }
          },
          {
            "description": "Direction of the trade from the taker perspective",
            "in": "query",
            "name": "direction",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/direction"
            }
          },
          {
            "description": "Hedge leg of the Block RFQ. There is only one hedge leg allowed per Block RFQ",
            "in": "query",
            "name": "hedge",
            "required": false,
            "schema": {
              "description": "JSON string containing: instrument_name, direction, price, amount",
              "type": "string"
            }
          },
          {
            "description": "List of legs used to trade Block RFQ",
            "explode": true,
            "in": "query",
            "name": "legs",
            "required": true,
            "schema": {
              "items": {
                "properties": {
                  "direction": {
                    "$ref": "#/components/schemas/direction",
                    "description": "Direction of selected leg. Must match the direction of the corresponding leg in the Block RFQ"
                  },
                  "instrument_name": {
                    "$ref": "#/components/schemas/instrument_name",
                    "description": "Instrument name"
                  },
                  "ratio": {
                    "description": "Ratio of amount between legs",
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Specifies how long the order should remain active",
            "in": "query",
            "name": "time_in_force",
            "required": true,
            "schema": {
              "enum": [
                "fill_or_kill",
                "good_til_cancelled"
              ],
              "example": "fill_or_kill",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/accept_block_rfq",
                    "params": {
                      "amount": 100,
                      "block_rfq_id": 1,
                      "direction": "buy",
                      "legs": [
                        {
                          "direction": "buy",
                          "instrument_name": "BTC-8NOV24-70000-C",
                          "ratio": 1
                        },
                        {
                          "direction": "sell",
                          "instrument_name": "BTC-8NOV24-72000-C",
                          "ratio": 1
                        }
                      ],
                      "price": 0.01,
                      "time_in_force": "fill_or_kill"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateAcceptBlockRfqResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/private-accept_block_rfq",
          "metadata": {
            "keywords": [
              "private/accept_block_rfq",
              "block_rfq_id",
              "price",
              "amount",
              "direction",
              "hedge",
              "legs",
              "time_in_force",
              "trade_trigger",
              "block_trades",
              "state",
              "timestamp",
              "trades",
              "app_name",
              "broker_code",
              "broker_name",
              "trade_id",
              "trade_seq",
              "instrument_name",
              "order_type",
              "advanced",
              "order_id",
              "matching_id",
              "tick_direction",
              "index_price",
              "contracts",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "label",
              "block_trade_id",
              "block_rfq_quote_id",
              "reduce_only",
              "post_only",
              "mmp",
              "risk_reducing",
              "api",
              "profit_loss",
              "mark_price",
              "combo_id",
              "combo_trade_id",
              "quote_set_id",
              "quote_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/accept_block_rfq",
            "title": "private/accept_block_rfq"
          }
        }
      }
    },
    "/private/add_block_rfq_quote": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "**Maker method**\n\nAdds a quote to an existing Block RFQ. To calculate individual leg prices, use [private/get_leg_prices](https://docs.deribit.com/api-reference/combo-books/private-get_leg_prices).\n\nUse [private/get_block_rfqs](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfqs) to retrieve Block RFQ information, or [private/edit_block_rfq_quote](https://docs.deribit.com/api-reference/block-rfq/private-edit_block_rfq_quote) to modify an existing quote.\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fadd_block_rfq_quote)\n\n",
        "parameters": [
          {
            "description": "User defined label for the Block RFQ quote (maximum 64 characters). Used to identify quotes of a selected Block RFQ",
            "in": "query",
            "name": "label",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the Block RFQ",
            "in": "query",
            "name": "block_rfq_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "This value multiplied by the ratio of a leg gives trade size on that leg.",
            "in": "query",
            "name": "amount",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/amount"
            }
          },
          {
            "description": "Direction of trade from the maker perspective",
            "in": "query",
            "name": "direction",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/direction"
            }
          },
          {
            "description": "List of legs used for Block RFQ quote",
            "explode": true,
            "in": "query",
            "name": "legs",
            "required": true,
            "schema": {
              "items": {
                "properties": {
                  "direction": {
                    "$ref": "#/components/schemas/direction",
                    "description": "Direction of selected leg. Must match the direction of the corresponding leg in the Block RFQ"
                  },
                  "instrument_name": {
                    "$ref": "#/components/schemas/instrument_name",
                    "description": "Instrument name"
                  },
                  "price": {
                    "description": "Price for trade",
                    "type": "number"
                  },
                  "ratio": {
                    "description": "Ratio of amount between legs",
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Hedge leg of the Block RFQ. There is only one hedge leg allowed per Block RFQ",
            "in": "query",
            "name": "hedge",
            "required": false,
            "schema": {
              "description": "JSON string containing: instrument_name, direction, price, amount",
              "type": "string"
            }
          },
          {
            "description": "<p>Execution instruction of the quote. Default - `any_part_of`</p> <ul> <li>`\"all_or_none (AON)\"` - The quote can only be filled entirely or not at all, ensuring that its amount matches the amount specified in the Block RFQ. Additionally, 'all_or_none' quotes have priority over 'any_part_of' quotes at the same price level.</li> <li>`\"any_part_of (APO)\"` - The quote can be filled either partially or fully, with the filled amount potentially being less than the Block RFQ amount.</li> </ul>",
            "in": "query",
            "name": "execution_instruction",
            "required": false,
            "schema": {
              "enum": [
                "all_or_none",
                "any_part_of"
              ],
              "type": "string"
            }
          },
          {
            "description": "Aggregated price used for quoting future spreads.",
            "in": "query",
            "name": "price",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "The timestamp when the quote expires (milliseconds since the Unix epoch)",
            "in": "query",
            "name": "expires_at",
            "required": false,
            "schema": {
              "example": 1745312540321,
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/add_block_rfq_quote",
                    "params": {
                      "amount": 10000,
                      "block_rfq_id": 3,
                      "direction": "buy",
                      "execution_instruction": "any_part_of",
                      "expires_at": 1745312540321,
                      "hedge": {
                        "amount": 10,
                        "direction": "buy",
                        "instrument_name": "BTC-PERPETUAL",
                        "price": 70000
                      },
                      "label": "example_quote",
                      "legs": [
                        {
                          "direction": "buy",
                          "instrument_name": "BTC-15NOV24",
                          "price": 69600,
                          "ratio": "1"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateAddBlockRfqQuoteResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/private-add_block_rfq_quote",
          "metadata": {
            "keywords": [
              "private/add_block_rfq_quote",
              "label",
              "block_rfq_id",
              "amount",
              "direction",
              "legs",
              "hedge",
              "execution_instruction",
              "price",
              "expires_at",
              "creation_timestamp",
              "last_update_timestamp",
              "block_rfq_quote_id",
              "quote_state",
              "filled_amount",
              "replaced",
              "app_name",
              "quote_state_reason",
              "ratio",
              "instrument_name"
            ],
            "og:title": "private/add_block_rfq_quote",
            "title": "private/add_block_rfq_quote"
          }
        }
      }
    },
    "/private/approve_block_trade": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Approves a pending block trade. `nonce` and `timestamp` are used to identify the block trade while `role` should be opposite to the trading counterparty.\n\nUse [private/get_block_trade_requests](https://docs.deribit.com/api-reference/block-trade/private-get_block_trade_requests) to retrieve pending block trades that require approval.\n\nTo use the block trade approval feature, an [additional API key setting feature](https://docs.deribit.com/articles/creating-api-key#block-trade-approval-feature) called `enabled_features: block_trade_approval` is required. This key has to be given to the broker/registered partner who performs the trades on behalf of the user for the feature to be active. If the user wants to approve the trade, they must approve it from a different API key that doesn't have this feature enabled.\n\n**📖 Related Article:** [Block Trading](https://docs.deribit.com/articles/block-trading-api)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fapprove_block_trade)\n\n",
        "parameters": [
          {
            "description": "Timestamp, shared with other party (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Nonce, shared with other party",
            "in": "query",
            "name": "nonce",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/nonce"
            }
          },
          {
            "description": "Describes if user wants to be maker or taker of trades",
            "in": "query",
            "name": "role",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/role"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/approve_block_trade",
                    "params": {
                      "nonce": "bt-468nha",
                      "role": "maker",
                      "timestamp": 1711468813551
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/OkResponse"
          }
        },
        "tags": [
          "Block Trade",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-trade/private-approve_block_trade",
          "metadata": {
            "keywords": [
              "private/approve_block_trade",
              "timestamp",
              "nonce",
              "role"
            ],
            "og:title": "private/approve_block_trade",
            "title": "private/approve_block_trade"
          }
        }
      }
    },
    "/private/buy": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Places a buy order for an instrument. Supports various order types including limit, market, stop, and advanced order types (stop-limit, take-profit, take-profit-limit, trailing-stop, etc.).\n\nYou can specify order parameters such as price, quantity, time-in-force, post-only, reduce-only, and trigger conditions. Orders can be labeled for easier management and tracking.\n\n**📖 Related Article:** [Order Management Best Practices](https://docs.deribit.com/articles/order-management-best-practices)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fbuy)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin. The `amount` is a mandatory parameter if `contracts` parameter is missing. If both `contracts` and `amount` parameter are passed they must match each other otherwise error is returned.",
            "in": "query",
            "name": "amount",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "It represents the requested order size in contract units and can be passed instead of `amount`. The `contracts` is a mandatory parameter if `amount` parameter is missing. If both `contracts` and `amount` parameter are passed they must match each other otherwise error is returned.",
            "in": "query",
            "name": "contracts",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "The order type, default: `\"limit\"`",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "enum": [
                "limit",
                "stop_limit",
                "take_limit",
                "market",
                "stop_market",
                "take_market",
                "market_limit",
                "trailing_stop"
              ],
              "type": "string"
            }
          },
          {
            "description": "user defined label for the order (maximum 64 characters)",
            "in": "query",
            "name": "label",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "<p>The order price in base currency (Only for limit and stop_limit orders)</p> <p>When adding an order with advanced=usd, the field price should be the option price value in USD.</p> <p>When adding an order with advanced=implv, the field price should be a value of implied volatility in percentages. For example,  price=100, means implied volatility of 100%</p>",
            "in": "query",
            "name": "price",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "<p>Specifies how long the order remains in effect. Default `\"good_til_cancelled\"`</p> <ul> <li>`\"good_til_cancelled\"` - unfilled order remains in order book until cancelled</li> <li>`\"good_til_day\"` - unfilled order remains in order book till the end of the trading session</li> <li>`\"fill_or_kill\"` - execute a transaction immediately and completely or not at all</li> <li>`\"immediate_or_cancel\"` - execute a transaction immediately, and any portion of the order that cannot be immediately filled is cancelled</li> </ul>",
            "in": "query",
            "name": "time_in_force",
            "required": false,
            "schema": {
              "default": "good_til_cancelled",
              "enum": [
                "good_til_cancelled",
                "good_til_day",
                "fill_or_kill",
                "immediate_or_cancel"
              ],
              "type": "string"
            }
          },
          {
            "description": "Initial display amount for iceberg order. Has to be at least 100 times minimum amount for instrument and ratio of hidden part vs visible part has to be less than 100 as well.",
            "in": "query",
            "name": "display_amount",
            "required": false,
            "schema": {
              "default": 1,
              "type": "number"
            }
          },
          {
            "description": "<p>If true, the order is considered post-only. If the new price would cause the order to be filled immediately (as taker), the price will be changed to be just below the spread.</p> <p>Only valid in combination with time_in_force=`\"good_til_cancelled\"`</p>",
            "in": "query",
            "name": "post_only",
            "required": false,
            "schema": {
              "default": true,
              "type": "boolean"
            }
          },
          {
            "description": "<p>If an order is considered post-only and this field is set to true then the order is put to the order book unmodified or the request is rejected.</p> <p>Only valid in combination with `\"post_only\"` set to true</p>",
            "in": "query",
            "name": "reject_post_only",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "If `true`, the order is considered reduce-only which is intended to only reduce a current position",
            "in": "query",
            "name": "reduce_only",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "Trigger price, required for trigger orders only (Stop-loss or Take-profit orders)",
            "in": "query",
            "name": "trigger_price",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "The maximum deviation from the price peak beyond which the order will be triggered",
            "in": "query",
            "name": "trigger_offset",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Defines the trigger type. Required for `\"Stop-Loss\"`, `\"Take-Profit\"` and `\"Trailing\"` trigger orders",
            "in": "query",
            "name": "trigger",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/trigger"
            }
          },
          {
            "description": "Advanced option order type. (Only for options. Advanced USD orders are not supported for linear options.)",
            "in": "query",
            "name": "advanced",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/advanced"
            }
          },
          {
            "description": "Order MMP flag, only for order_type 'limit'",
            "in": "query",
            "name": "mmp",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "Timestamp, when provided server will start processing request in Matching Engine only before given timestamp, in other cases `timed_out` error will be responded. Remember that the given timestamp should be consistent with the server's time, use <a href='#public-get_time'>/public/time</a> method to obtain current server time.",
            "in": "query",
            "name": "valid_until",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "<p>The type of the linked order.</p> <ul> <li>`\"one_triggers_other\"` - Execution of primary order triggers the placement of one or more secondary orders.</li> <li>`\"one_cancels_other\"` -  The execution of one order in a pair automatically cancels the other, typically used to set a stop-loss and take-profit simultaneously.</li> <li>`\"one_triggers_one_cancels_other\"` - The execution of a primary order triggers two secondary orders (a stop-loss and take-profit pair), where the execution of one secondary order cancels the other.</li> </ul>",
            "in": "query",
            "name": "linked_order_type",
            "required": false,
            "schema": {
              "enum": [
                "one_triggers_other",
                "one_cancels_other",
                "one_triggers_one_cancels_other"
              ],
              "type": "string"
            }
          },
          {
            "description": "<p>The fill condition of the linked order (Only for linked order types), default: `first_hit`.</p> <ul> <li>`\"first_hit\"` - any execution of the primary order will fully cancel/place all secondary orders.</li> <li>`\"complete_fill\"` - a complete execution (meaning the primary order no longer exists) will cancel/place the secondary orders.</li> <li>`\"incremental\"` - any fill of the primary order will cause proportional partial cancellation/placement of the secondary order. The amount that will be subtracted/added to the secondary order will be rounded down to the contract size.</li> </ul>",
            "in": "query",
            "name": "trigger_fill_condition",
            "required": false,
            "schema": {
              "default": "first_hit",
              "enum": [
                "first_hit",
                "complete_fill",
                "incremental"
              ],
              "type": "string"
            }
          },
          {
            "description": "List of orders to create or cancel when this order is filled.",
            "explode": true,
            "in": "query",
            "name": "otoco_config",
            "required": false,
            "schema": {
              "items": {
                "properties": {
                  "amount": {
                    "$ref": "#/components/schemas/amount",
                    "description": "It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin."
                  },
                  "direction": {
                    "$ref": "#/components/schemas/direction",
                    "description": "Direction of trade from the maker perspective"
                  },
                  "label": {
                    "description": "user defined label for the order (maximum 64 characters)",
                    "type": "string"
                  },
                  "post_only": {
                    "default": false,
                    "description": "If true, the order is considered post-only. If the new price would cause the order to be filled immediately (as taker), the price will be changed to be just below or above the spread (according to the direction of the order).",
                    "type": "boolean"
                  },
                  "price": {
                    "description": "The order price in base currency (Only for limit and stop_limit orders)",
                    "type": "number"
                  },
                  "reduce_only": {
                    "default": false,
                    "description": "If true, the order is considered reduce-only which is intended to only reduce a current position",
                    "type": "boolean"
                  },
                  "reject_post_only": {
                    "default": false,
                    "description": "If an order is considered post-only and this field is set to true then the order is put to the order book unmodified or the request is rejected.",
                    "type": "boolean"
                  },
                  "time_in_force": {
                    "default": "good_til_cancelled",
                    "description": "Specifies how long the order remains in effect. Default \"good_til_cancelled\"",
                    "enum": [
                      "good_til_cancelled",
                      "good_til_day",
                      "fill_or_kill",
                      "immediate_or_cancel"
                    ],
                    "type": "string"
                  },
                  "trigger": {
                    "$ref": "#/components/schemas/trigger",
                    "description": "Defines the trigger type. Required for \"Stop-Loss\", \"Take-Profit\" and \"Trailing\" trigger orders"
                  },
                  "trigger_offset": {
                    "description": "The maximum deviation from the price peak beyond which the order will be triggered",
                    "type": "number"
                  },
                  "trigger_price": {
                    "description": "Trigger price, required for trigger orders only (Stop-loss or Take-profit orders)",
                    "type": "number"
                  },
                  "type": {
                    "description": "The order type, default: \"limit\"",
                    "enum": [
                      "limit",
                      "stop_limit",
                      "take_limit",
                      "market",
                      "stop_market",
                      "take_market",
                      "market_limit",
                      "trailing_stop"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "style": "form"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 5275,
                    "jsonrpc": "2.0",
                    "method": "private/buy",
                    "params": {
                      "amount": 40,
                      "instrument_name": "ETH-PERPETUAL",
                      "label": "market0000234",
                      "type": "market"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateBuyAndSellResponse"
          }
        },
        "tags": [
          "Trading",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-buy",
          "metadata": {
            "keywords": [
              "private/buy",
              "instrument_name",
              "amount",
              "contracts",
              "type",
              "label",
              "price",
              "time_in_force",
              "display_amount",
              "post_only",
              "reject_post_only",
              "reduce_only",
              "trigger_price",
              "trigger_offset",
              "trigger",
              "advanced",
              "mmp",
              "valid_until",
              "linked_order_type",
              "trigger_fill_condition",
              "otoco_config",
              "order",
              "trades",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "is_rebalance",
              "is_liquidation",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "filled_amount",
              "average_price",
              "implv",
              "usd",
              "triggered",
              "trigger_reference_price",
              "block_trade",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco",
              "trade_id",
              "trade_seq",
              "timestamp",
              "matching_id",
              "tick_direction",
              "index_price",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "state",
              "block_trade_id",
              "block_rfq_id",
              "block_rfq_quote_id",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/buy",
            "title": "private/buy"
          }
        }
      }
    },
    "/private/cancel": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Cancels a specific order identified by its order ID. The order must be open (not yet filled or cancelled) to be cancelled successfully.\n\nOnce cancelled, the order is removed from the order book and cannot be restored. Any unfilled portion of the order will be cancelled.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel)\n\n",
        "parameters": [
          {
            "description": "The order id",
            "in": "query",
            "name": "order_id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/order_id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 4214,
                    "jsonrpc": "2.0",
                    "method": "private/cancel",
                    "params": {
                      "order_id": "ETH-SLIS-12"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCancelResponse"
          }
        },
        "tags": [
          "Trading",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-cancel",
          "metadata": {
            "keywords": [
              "private/cancel",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "time_in_force",
              "is_rebalance",
              "is_liquidation",
              "instrument_name",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "price",
              "label",
              "post_only",
              "reject_post_only",
              "reduce_only",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "display_amount",
              "amount",
              "contracts",
              "filled_amount",
              "average_price",
              "advanced",
              "implv",
              "usd",
              "triggered",
              "trigger",
              "trigger_price",
              "trigger_offset",
              "trigger_reference_price",
              "block_trade",
              "mmp",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "trigger_fill_condition",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco"
            ],
            "og:title": "private/cancel",
            "title": "private/cancel"
          }
        }
      }
    },
    "/private/cancel_all": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Cancels all open orders and trigger orders for the authenticated account across all currencies and instrument kinds. This is a bulk cancellation operation useful for quickly clearing all active orders.\n\nUse the `detailed` parameter to receive a list of all cancelled orders. The `freeze_quotes` parameter can be used to freeze quotes instead of cancelling them.\n\n**Note:** This operation cannot be undone. All open orders will be permanently cancelled.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel_all)\n\n",
        "parameters": [
          {
            "description": "When `detailed` is set to `true`, the output format is changed to include a list of all cancelled orders.\n\n**📖 Related Article:** [Detailed Response for Cancel Methods](https://docs.deribit.com/articles/json-rpc-overview#detailed-response-for-cancel-methods)\n\nDefault: `false`\n",
            "in": "query",
            "name": "detailed",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Whether or not to reject incoming quotes for 1 second after cancelling (`false` by default). Related to `private/mass_quote` request.",
            "in": "query",
            "name": "freeze_quotes",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 8748,
                    "jsonrpc": "2.0",
                    "method": "private/cancel_all",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCancelAllResponse"
          }
        },
        "tags": [
          "Trading",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-cancel_all",
          "metadata": {
            "keywords": [
              "private/cancel_all",
              "detailed",
              "freeze_quotes"
            ],
            "og:title": "private/cancel_all",
            "title": "private/cancel_all"
          }
        }
      }
    },
    "/private/cancel_all_block_rfq_quotes": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "**Maker method**\n\nCancels all user quotes in all Block RFQs. Optionally cancels all quotes in a specific RFQ if the `block_rfq_id` is provided.\n\n**Note:** Mass cancellation by label is not supported. This method will cancel all quotes regardless of their labels. To cancel a single quote, use [private/cancel_block_rfq_quote](https://docs.deribit.com/api-reference/block-rfq/private-cancel_block_rfq_quote).\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel_all_block_rfq_quotes)\n\n",
        "parameters": [
          {
            "description": "ID of the Block RFQ",
            "in": "query",
            "name": "block_rfq_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "When `detailed` is set to `true`, the output format is changed to include a list of all cancelled orders.\n\n**📖 Related Article:** [Detailed Response for Cancel Methods](https://docs.deribit.com/articles/json-rpc-overview#detailed-response-for-cancel-methods)\n\nDefault: `false`\n",
            "in": "query",
            "name": "detailed",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 24,
                    "jsonrpc": "2.0",
                    "method": "private/cancel_all_block_rfq_quotes",
                    "params": {
                      "block_rfq_id": 154
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCancelAllBlockRfqQuotesResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/private-cancel_all_block_rfq_quotes",
          "metadata": {
            "keywords": [
              "private/cancel_all_block_rfq_quotes",
              "block_rfq_id",
              "detailed"
            ],
            "og:title": "private/cancel_all_block_rfq_quotes",
            "title": "private/cancel_all_block_rfq_quotes"
          }
        }
      }
    },
    "/private/cancel_all_by_currency": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Cancels all open orders for a specific currency. This is useful for quickly clearing all orders across multiple instruments in a currency.\n\nOrders can be optionally filtered by instrument kind (future, option, etc.) and/or order type (limit, market, stop, etc.). Use the `detailed` parameter to receive a list of all cancelled orders.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel_all_by_currency)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Instrument kind, `\"combo\"` for any combo or `\"any\"` for all. If not provided instruments of all kinds are considered",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind_with_combo_all"
            }
          },
          {
            "description": "Order type - `limit`, `stop`, `take`, `trigger_all` or `all`, default - `all`",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/simple_order_type"
            }
          },
          {
            "description": "When `detailed` is set to `true`, the output format is changed to include a list of all cancelled orders.\n\n**📖 Related Article:** [Detailed Response for Cancel Methods](https://docs.deribit.com/articles/json-rpc-overview#detailed-response-for-cancel-methods)\n\nDefault: `false`\n",
            "in": "query",
            "name": "detailed",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Whether or not to reject incoming quotes for 1 second after cancelling (`false` by default). Related to `private/mass_quote` request.",
            "in": "query",
            "name": "freeze_quotes",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 5663,
                    "jsonrpc": "2.0",
                    "method": "private/cancel_all_by_currency",
                    "params": {
                      "currency": "BTC",
                      "kind": "option"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCancelAllResponse"
          }
        },
        "tags": [
          "Trading",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-cancel_all_by_currency",
          "metadata": {
            "keywords": [
              "private/cancel_all_by_currency",
              "currency",
              "kind",
              "type",
              "detailed",
              "freeze_quotes"
            ],
            "og:title": "private/cancel_all_by_currency",
            "title": "private/cancel_all_by_currency"
          }
        }
      }
    },
    "/private/cancel_all_by_currency_pair": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Cancels all open orders for a specific currency pair. This is useful for quickly clearing all orders across instruments in a currency pair.\n\nOrders can be optionally filtered by instrument kind (future, option, etc.) and/or order type (limit, market, stop, etc.). Use the `detailed` parameter to receive a list of all cancelled orders.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel_all_by_currency_pair)\n\n",
        "parameters": [
          {
            "description": "The currency pair symbol",
            "in": "query",
            "name": "currency_pair",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/index_name"
            }
          },
          {
            "description": "Instrument kind, `\"combo\"` for any combo or `\"any\"` for all. If not provided instruments of all kinds are considered",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind_with_combo_all"
            }
          },
          {
            "description": "Order type - `limit`, `stop`, `take`, `trigger_all` or `all`, default - `all`",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/simple_order_type"
            }
          },
          {
            "description": "When `detailed` is set to `true`, the output format is changed to include a list of all cancelled orders.\n\n**📖 Related Article:** [Detailed Response for Cancel Methods](https://docs.deribit.com/articles/json-rpc-overview#detailed-response-for-cancel-methods)\n\nDefault: `false`\n",
            "in": "query",
            "name": "detailed",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Whether or not to reject incoming quotes for 1 second after cancelling (`false` by default). Related to `private/mass_quote` request.",
            "in": "query",
            "name": "freeze_quotes",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 5663,
                    "jsonrpc": "2.0",
                    "method": "private/cancel_all_by_currency_pair",
                    "params": {
                      "currency_pair": "BTC_USD",
                      "kind": "option"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCancelAllResponse"
          }
        },
        "tags": [
          "Trading",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-cancel_all_by_currency_pair",
          "metadata": {
            "keywords": [
              "private/cancel_all_by_currency_pair",
              "currency_pair",
              "kind",
              "type",
              "detailed",
              "freeze_quotes"
            ],
            "og:title": "private/cancel_all_by_currency_pair",
            "title": "private/cancel_all_by_currency_pair"
          }
        }
      }
    },
    "/private/cancel_all_by_instrument": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Cancels all open orders for a specific instrument. This is useful for quickly clearing all orders for a single instrument.\n\nOrders can be optionally filtered by order type (limit, market, stop, etc.). Use the `detailed` parameter to receive a list of all cancelled orders. The `include_combos` parameter can be used to include combo orders in the cancellation.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel_all_by_instrument)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "Order type - `limit`, `stop`, `take`, `trigger_all` or `all`, default - `all`",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/simple_order_type"
            }
          },
          {
            "description": "When `detailed` is set to `true`, the output format is changed to include a list of all cancelled orders.\n\n**📖 Related Article:** [Detailed Response for Cancel Methods](https://docs.deribit.com/articles/json-rpc-overview#detailed-response-for-cancel-methods)\n\nDefault: `false`\n",
            "in": "query",
            "name": "detailed",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "When set to `true` orders in combo instruments affecting a given position will also be cancelled. Default: `false`",
            "in": "query",
            "name": "include_combos",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Whether or not to reject incoming quotes for 1 second after cancelling (`false` by default). Related to `private/mass_quote` request.",
            "in": "query",
            "name": "freeze_quotes",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 4122,
                    "jsonrpc": "2.0",
                    "method": "private/cancel_all_by_instrument",
                    "params": {
                      "instrument_name": "ETH-22FEB19-120-P",
                      "type": "all"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCancelAllResponse"
          }
        },
        "tags": [
          "Trading",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-cancel_all_by_instrument",
          "metadata": {
            "keywords": [
              "private/cancel_all_by_instrument",
              "instrument_name",
              "type",
              "detailed",
              "include_combos",
              "freeze_quotes"
            ],
            "og:title": "private/cancel_all_by_instrument",
            "title": "private/cancel_all_by_instrument"
          }
        }
      }
    },
    "/private/cancel_all_by_kind_or_type": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Cancels all open orders in one or more currencies, optionally filtered by instrument kind and/or order type. This provides flexible bulk cancellation across multiple currencies.\n\nSpecify one or more currencies, and optionally filter by instrument kind (future, option, etc.) and/or order type (limit, market, stop, etc.). Use the `detailed` parameter to receive a list of all cancelled orders.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel_all_by_kind_or_type)\n\n",
        "parameters": [
          {
            "description": "The currency symbol, list of currency symbols or `\"any\"` for all",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency_with_any_and_list"
            }
          },
          {
            "description": "Instrument kind, `\"combo\"` for any combo or `\"any\"` for all. If not provided instruments of all kinds are considered",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind_with_combo_all"
            }
          },
          {
            "description": "Order type - `limit`, `stop`, `take`, `trigger_all` or `all`, default - `all`",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/simple_order_type"
            }
          },
          {
            "description": "When `detailed` is set to `true`, the output format is changed to include a list of all cancelled orders.\n\n**📖 Related Article:** [Detailed Response for Cancel Methods](https://docs.deribit.com/articles/json-rpc-overview#detailed-response-for-cancel-methods)\n\nDefault: `false`\n",
            "in": "query",
            "name": "detailed",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Whether or not to reject incoming quotes for 1 second after cancelling (`false` by default). Related to `private/mass_quote` request.",
            "in": "query",
            "name": "freeze_quotes",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 2,
                    "jsonrpc": "2.0",
                    "method": "private/cancel_all_by_kind_or_type",
                    "params": {
                      "currency": [
                        "BTC",
                        "ETH"
                      ],
                      "kind": "future"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCancelAllResponse"
          }
        },
        "tags": [
          "Trading",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-cancel_all_by_kind_or_type",
          "metadata": {
            "keywords": [
              "private/cancel_all_by_kind_or_type",
              "currency",
              "kind",
              "type",
              "detailed",
              "freeze_quotes"
            ],
            "og:title": "private/cancel_all_by_kind_or_type",
            "title": "private/cancel_all_by_kind_or_type"
          }
        }
      }
    },
    "/private/cancel_block_rfq": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "**Taker method**\n\nCancels a Block RFQ using the specified `block_rfq_id`.\n\nUse [private/get_block_rfqs](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfqs) to retrieve Block RFQ information, or [private/create_block_rfq](https://docs.deribit.com/api-reference/block-rfq/private-create_block_rfq) to create a new Block RFQ.\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel_block_rfq)\n\n",
        "parameters": [
          {
            "description": "ID of the Block RFQ",
            "in": "query",
            "name": "block_rfq_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/cancel_block_rfq",
                    "params": {
                      "block_rfq_id": 366
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCancelBlockRfqResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/private-cancel_block_rfq",
          "metadata": {
            "keywords": [
              "private/cancel_block_rfq",
              "block_rfq_id",
              "creation_timestamp",
              "expiration_timestamp",
              "role",
              "state",
              "taker_rating",
              "makers",
              "amount",
              "min_trade_amount",
              "asks",
              "bids",
              "legs",
              "hedge",
              "combo_id",
              "label",
              "app_name",
              "mark_price",
              "disclosed",
              "taker",
              "index_prices",
              "included_in_taker_rating",
              "trades",
              "trade_trigger",
              "trade_allocations",
              "price",
              "last_update_timestamp",
              "execution_instruction",
              "expires_at",
              "ratio",
              "instrument_name",
              "direction",
              "maker",
              "hedge_amount",
              "cancel_reason",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/cancel_block_rfq",
            "title": "private/cancel_block_rfq"
          }
        }
      }
    },
    "/private/cancel_block_rfq_quote": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "**Maker method**\n\nCancels a single Block RFQ quote. You can identify the quote to cancel using either:\n\n- `block_rfq_quote_id` - the unique ID of the quote\n- `block_rfq_id` + `label` - the Block RFQ ID and the quote label\n\n**Note:** Mass cancellation by label is not supported. This method cancels only one quote at a time. To cancel all quotes, use [private/cancel_all_block_rfq_quotes](https://docs.deribit.com/api-reference/block-rfq/private-cancel_all_block_rfq_quotes).\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel_block_rfq_quote)\n\n",
        "parameters": [
          {
            "description": "ID of the Block RFQ quote",
            "in": "query",
            "name": "block_rfq_quote_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "User defined label for the Block RFQ quote (maximum 64 characters). Used to identify quotes of a selected Block RFQ",
            "in": "query",
            "name": "label",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the Block RFQ",
            "in": "query",
            "name": "block_rfq_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/cancel_block_rfq_quote",
                    "params": {
                      "block_rfq_id": 3,
                      "label": "example_quote"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCancelBlockRfqQuoteResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/private-cancel_block_rfq_quote",
          "metadata": {
            "keywords": [
              "private/cancel_block_rfq_quote",
              "block_rfq_quote_id",
              "label",
              "block_rfq_id",
              "creation_timestamp",
              "last_update_timestamp",
              "quote_state",
              "execution_instruction",
              "price",
              "amount",
              "direction",
              "filled_amount",
              "legs",
              "hedge",
              "replaced",
              "app_name",
              "quote_state_reason",
              "ratio",
              "instrument_name"
            ],
            "og:title": "private/cancel_block_rfq_quote",
            "title": "private/cancel_block_rfq_quote"
          }
        }
      }
    },
    "/private/cancel_block_rfq_trigger": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "**Taker method**\n\nAllows Block RFQ taker to cancel an active trigger for a Block RFQ. The response includes the full Block RFQ object with the trade trigger state set to cancelled.\n\nUse [private/get_block_rfqs](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfqs) to retrieve Block RFQ information.\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel_block_rfq_trigger)\n\n",
        "parameters": [
          {
            "description": "ID of the Block RFQ",
            "in": "query",
            "name": "block_rfq_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/cancel_block_rfq_trigger",
                    "params": {
                      "block_rfq_id": 123
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCancelBlockRfqTriggerResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/private-cancel_block_rfq_trigger",
          "metadata": {
            "keywords": [
              "private/cancel_block_rfq_trigger",
              "block_rfq_id",
              "creation_timestamp",
              "expiration_timestamp",
              "role",
              "state",
              "taker_rating",
              "makers",
              "amount",
              "min_trade_amount",
              "asks",
              "bids",
              "legs",
              "hedge",
              "combo_id",
              "label",
              "app_name",
              "mark_price",
              "disclosed",
              "taker",
              "index_prices",
              "included_in_taker_rating",
              "trades",
              "trade_trigger",
              "trade_allocations",
              "price",
              "last_update_timestamp",
              "execution_instruction",
              "expires_at",
              "ratio",
              "instrument_name",
              "direction",
              "maker",
              "hedge_amount",
              "cancel_reason",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/cancel_block_rfq_trigger",
            "title": "private/cancel_block_rfq_trigger"
          }
        }
      }
    },
    "/private/cancel_by_label": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Cancels all orders (including trigger orders) that have a specific label. This is useful for managing groups of related orders that share the same label.\n\nOrders can be cancelled across all currencies or filtered to a specific currency. When cancelling by currency, the currency queue is used for processing.\n\n**Rate Limits:** When called without the `currency` parameter, this method is subject to `cancel_all` rate limits. Different rate limit values may apply for per-currency cancels versus calls without providing the currency parameter.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcancel_by_label)\n\n",
        "parameters": [
          {
            "description": "user defined label for the order (maximum 64 characters)",
            "in": "query",
            "name": "label",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 47,
                    "jsonrpc": "2.0",
                    "method": "private/cancel_by_label",
                    "params": {
                      "label": "label"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCancelAllResponse"
          }
        },
        "tags": [
          "Trading",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-cancel_by_label",
          "metadata": {
            "keywords": [
              "private/cancel_by_label",
              "label",
              "currency"
            ],
            "og:title": "private/cancel_by_label",
            "title": "private/cancel_by_label"
          }
        }
      }
    },
    "/private/change_margin_model": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:user:update"
            ]
          }
        ],
        "description": "Changes the margin model for the authenticated account or a specified subaccount. Margin models determine how margin requirements are calculated (e.g., Standard Margin vs. Portfolio Margin).\n\nChanging the margin model may affect margin requirements, available funds, and trading capabilities. Use the `dry_run` parameter to preview the impact of the change before applying it.\n\n**📖 Related Article:** [Margin types and usage](https://support.deribit.com/hc/en-us/articles/25944811317149-Margin-types-and-usage)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fchange_margin_model)\n\n",
        "parameters": [
          {
            "description": "Id of a (sub)account - by default current user id is used",
            "in": "query",
            "name": "user_id",
            "required": false,
            "schema": {
              "example": 1,
              "type": "integer"
            }
          },
          {
            "description": "Margin model",
            "in": "query",
            "name": "margin_model",
            "required": true,
            "schema": {
              "enum": [
                "cross_pm",
                "cross_sm",
                "segregated_pm",
                "segregated_sm"
              ],
              "type": "string"
            }
          },
          {
            "description": "If `true` request returns the result without switching the margining model. Default: `false`",
            "in": "query",
            "name": "dry_run",
            "required": false,
            "schema": {
              "example": true,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/change_margin_model",
                    "params": {
                      "margin_model": "cross_pm",
                      "user_id": 3
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateChangeMarginModelResponse"
          }
        },
        "tags": [
          "Account Management",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/account-management/private-change_margin_model",
          "metadata": {
            "keywords": [
              "private/change_margin_model",
              "user_id",
              "margin_model",
              "dry_run",
              "old_state",
              "new_state",
              "currency",
              "maintenance_margin_rate",
              "initial_margin_rate",
              "available_balance"
            ],
            "og:title": "private/change_margin_model",
            "title": "private/change_margin_model"
          }
        }
      }
    },
    "/private/close_position": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Places a reduce-only order to close an existing position. Reduce-only orders can only reduce or close a position; they cannot open a new position or increase an existing one.\n\nYou can specify whether to use a market or limit order. If using a limit order, provide the price. The order will automatically be set to reduce-only to ensure it only closes the position.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fclose_position)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "The order type",
            "in": "query",
            "name": "type",
            "required": true,
            "schema": {
              "enum": [
                "limit",
                "market"
              ],
              "type": "string"
            }
          },
          {
            "description": "Optional price for limit order.",
            "in": "query",
            "name": "price",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 6130,
                    "jsonrpc": "2.0",
                    "method": "private/close_position",
                    "params": {
                      "instrument_name": "ETH-PERPETUAL",
                      "price": 145.17,
                      "type": "limit"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateBuyAndSellResponse"
          }
        },
        "tags": [
          "Trading",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-close_position",
          "metadata": {
            "keywords": [
              "private/close_position",
              "instrument_name",
              "type",
              "price",
              "order",
              "trades",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "time_in_force",
              "is_rebalance",
              "is_liquidation",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "label",
              "post_only",
              "reject_post_only",
              "reduce_only",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "display_amount",
              "amount",
              "contracts",
              "filled_amount",
              "average_price",
              "advanced",
              "implv",
              "usd",
              "triggered",
              "trigger",
              "trigger_price",
              "trigger_offset",
              "trigger_reference_price",
              "block_trade",
              "mmp",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "trigger_fill_condition",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco",
              "trade_id",
              "trade_seq",
              "timestamp",
              "matching_id",
              "tick_direction",
              "index_price",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "state",
              "block_trade_id",
              "block_rfq_id",
              "block_rfq_quote_id",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/close_position",
            "title": "private/close_position"
          }
        }
      }
    },
    "/private/create_block_rfq": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "**Taker method**\n\nCreates a new Block RFQ. Use [private/get_block_rfqs](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfqs) to retrieve Block RFQ information.\n\n**Block RFQ pre-allocation:** The taker can split the total amount between different (sub)accounts using the `trade_allocations` parameter. The taker can also allocate to himself. Each allocation must specify either `user_id` (for direct allocation) or `client_info` object (for broker allocation), and `amount`.\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcreate_block_rfq)\n\n",
        "parameters": [
          {
            "description": "List of legs used to create Block RFQ",
            "explode": true,
            "in": "query",
            "name": "legs",
            "required": true,
            "schema": {
              "items": {
                "properties": {
                  "amount": {
                    "$ref": "#/components/schemas/amount",
                    "description": "It represents the requested trade size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin."
                  },
                  "direction": {
                    "$ref": "#/components/schemas/direction",
                    "description": "Direction of selected leg"
                  },
                  "instrument_name": {
                    "$ref": "#/components/schemas/instrument_name",
                    "description": "Instrument name"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "List of allocations for Block RFQ pre-allocation. Allows to split amount between different (sub)accounts or broker clients. Each allocation must specify either `user_id` (for direct allocation) or `client_info` object (for broker allocation), and amount.",
            "explode": true,
            "in": "query",
            "name": "trade_allocations",
            "required": false,
            "schema": {
              "items": {
                "properties": {
                  "amount": {
                    "description": "Amount allocated to this user or client.",
                    "type": "number"
                  },
                  "client_info": {
                    "description": "Client allocation info for brokers.",
                    "properties": {
                      "client_id": {
                        "description": "ID of a client; available to broker. Represents a group of users under a common name.",
                        "type": "integer"
                      },
                      "client_link_id": {
                        "description": "ID assigned to a single user in a client; available to broker.",
                        "type": "integer"
                      }
                    },
                    "type": "object"
                  },
                  "user_id": {
                    "description": "User ID (subaccount or main account) to allocate part of the RFQ amount.",
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Hedge leg of the Block RFQ. There is only one hedge leg allowed per Block RFQ",
            "in": "query",
            "name": "hedge",
            "required": false,
            "schema": {
              "description": "JSON string containing: instrument_name, direction, price, amount",
              "type": "string"
            }
          },
          {
            "description": "User defined label for the Block RFQ (maximum 64 characters)",
            "in": "query",
            "name": "label",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "List of targeted Block RFQ makers. Only those makers will be notified about created Block RFQ. If the list is empty, all available makers will be targeted.",
            "explode": true,
            "in": "query",
            "name": "makers",
            "required": false,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Determines whether the RFQ is non-anonymous, revealing both taker and maker aliases. It can be set to `false` (anonymous mode) only when at least 5 makers are targeted. Default value is `true`.",
            "in": "query",
            "name": "disclosed",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/create_block_rfq",
                    "params": {
                      "hedge": {
                        "amount": 10,
                        "direction": "buy",
                        "instrument_name": "BTC-PERPETUAL",
                        "price": 70000
                      },
                      "label": "example",
                      "legs": [
                        {
                          "amount": 20000,
                          "direction": "sell",
                          "instrument_name": "BTC-15NOV24"
                        }
                      ],
                      "makers": [
                        "MAKER1"
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCreateBlockRfqResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/private-create_block_rfq",
          "metadata": {
            "keywords": [
              "private/create_block_rfq",
              "legs",
              "trade_allocations",
              "hedge",
              "label",
              "makers",
              "disclosed",
              "creation_timestamp",
              "expiration_timestamp",
              "block_rfq_id",
              "role",
              "state",
              "taker_rating",
              "amount",
              "min_trade_amount",
              "asks",
              "bids",
              "combo_id",
              "app_name",
              "mark_price",
              "taker",
              "index_prices",
              "included_in_taker_rating",
              "trades",
              "trade_trigger",
              "price",
              "last_update_timestamp",
              "execution_instruction",
              "expires_at",
              "ratio",
              "instrument_name",
              "direction",
              "maker",
              "hedge_amount",
              "cancel_reason",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/create_block_rfq",
            "title": "private/create_block_rfq"
          }
        }
      }
    },
    "/private/create_combo": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Verifies and creates a combo book or returns an existing combo matching the given trades. Combos allow trading on multiple instruments (futures and options) simultaneously as a single strategy.\n\nIf a combo matching the provided trades already exists, this method returns the existing combo. Otherwise, it creates a new combo book with the specified leg structure.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fcreate_combo)\n\n",
        "parameters": [
          {
            "description": "List of trades used to create a combo",
            "explode": true,
            "in": "query",
            "name": "trades",
            "required": true,
            "schema": {
              "items": {
                "properties": {
                  "amount": {
                    "$ref": "#/components/schemas/amount"
                  },
                  "direction": {
                    "$ref": "#/components/schemas/direction"
                  },
                  "instrument_name": {
                    "$ref": "#/components/schemas/instrument_name"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "style": "form"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 6,
                    "jsonrpc": "2.0",
                    "method": "private/create_combo",
                    "params": {
                      "trades": [
                        {
                          "amount": "1",
                          "direction": "buy",
                          "instrument_name": "BTC-29APR22-37500-C"
                        },
                        {
                          "amount": "1",
                          "direction": "sell",
                          "instrument_name": "BTC-29APR22-37500-P"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateCreateComboResponse"
          }
        },
        "tags": [
          "Combo Books",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/combo-books/private-create_combo",
          "metadata": {
            "keywords": [
              "private/create_combo",
              "trades",
              "instrument_id",
              "state",
              "state_timestamp",
              "creation_timestamp",
              "legs",
              "instrument_name",
              "amount"
            ],
            "og:title": "private/create_combo",
            "title": "private/create_combo"
          }
        }
      }
    },
    "/private/disable_cancel_on_disconnect": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Disable Cancel On Disconnect for the connection.\n\nWhen change is applied for the account, then every newly opened connection will start with **inactive** Cancel on Disconnect.\n\n**WebSocket Only:** This method is designed exclusively for WebSocket connections. Attempting to use it via REST/HTTP will result in an error response.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fdisable_cancel_on_disconnect)\n\n",
        "parameters": [
          {
            "description": "Specifies if Cancel On Disconnect change should be applied/checked for the current connection or the account (default - `connection`)<br/><br/> **NOTICE:** Scope `connection` can be used only when working via Websocket.",
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "enum": [
                "connection",
                "account"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1569,
                    "jsonrpc": "2.0",
                    "method": "private/disable_cancel_on_disconnect",
                    "params": {
                      "scope": "account"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/OkResponse"
          }
        },
        "tags": [
          "Session Management",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/session-management/private-disable_cancel_on_disconnect",
          "metadata": {
            "keywords": [
              "private/disable_cancel_on_disconnect",
              "scope"
            ],
            "og:title": "private/disable_cancel_on_disconnect",
            "title": "private/disable_cancel_on_disconnect"
          }
        }
      }
    },
    "/private/edit": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Modifies an existing order by changing its price, amount, and/or other properties such as time-in-force, post-only, reduce-only, trigger conditions, or advanced order type.\n\nThe order is identified by its order ID. Only open orders can be edited. Changes take effect immediately and may result in the order being filled if the new price matches the market.\n\n**📖 Related Article:** [Order Management Best Practices](https://docs.deribit.com/articles/order-management-best-practices)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fedit)\n\n",
        "parameters": [
          {
            "description": "The order id",
            "in": "query",
            "name": "order_id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/order_id"
            }
          },
          {
            "description": "It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin. The `amount` is a mandatory parameter if `contracts` parameter is missing. If both `contracts` and `amount` parameter are passed they must match each other otherwise error is returned.",
            "in": "query",
            "name": "amount",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "It represents the requested order size in contract units and can be passed instead of `amount`. The `contracts` is a mandatory parameter if `amount` parameter is missing. If both `contracts` and `amount` parameter are passed they must match each other otherwise error is returned.",
            "in": "query",
            "name": "contracts",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "<p>The order price in base currency.</p> <p>When editing an option order with advanced=usd, the field price should be the option price value in USD.</p> <p>When editing an option order with advanced=implv, the field price should be a value of implied volatility in percentages. For example,  price=100, means implied volatility of 100%</p>",
            "in": "query",
            "name": "price",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "<p>If true, the order is considered post-only. If the new price would cause the order to be filled immediately (as taker), the price will be changed to be just below or above the spread (accordingly to the original order type).</p> <p>Only valid in combination with time_in_force=`\"good_til_cancelled\"`</p>",
            "in": "query",
            "name": "post_only",
            "required": false,
            "schema": {
              "default": true,
              "type": "boolean"
            }
          },
          {
            "description": "If `true`, the order is considered reduce-only which is intended to only reduce a current position",
            "in": "query",
            "name": "reduce_only",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "<p>If an order is considered post-only and this field is set to true then the order is put to the order book unmodified or the request is rejected.</p> <p>Only valid in combination with `\"post_only\"` set to true</p>",
            "in": "query",
            "name": "reject_post_only",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "Advanced option order type. If you have posted an advanced option order, it is necessary to re-supply this parameter when editing it (Only for options)",
            "in": "query",
            "name": "advanced",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/advanced"
            }
          },
          {
            "description": "Trigger price, required for trigger orders only (Stop-loss or Take-profit orders)",
            "in": "query",
            "name": "trigger_price",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "The maximum deviation from the price peak beyond which the order will be triggered",
            "in": "query",
            "name": "trigger_offset",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Order MMP flag, only for order_type 'limit'",
            "in": "query",
            "name": "mmp",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "Timestamp, when provided server will start processing request in Matching Engine only before given timestamp, in other cases `timed_out` error will be responded. Remember that the given timestamp should be consistent with the server's time, use <a href='#public-get_time'>/public/time</a> method to obtain current server time.",
            "in": "query",
            "name": "valid_until",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Initial display amount for iceberg order. Has to be at least 100 times minimum amount for instrument and ratio of hidden part vs visible part has to be less than 100 as well.",
            "in": "query",
            "name": "display_amount",
            "required": false,
            "schema": {
              "default": 1,
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 3725,
                    "jsonrpc": "2.0",
                    "method": "private/edit",
                    "params": {
                      "advanced": "implv",
                      "amount": 4,
                      "order_id": "438994",
                      "price": 222
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateEditResponse"
          }
        },
        "tags": [
          "Trading",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-edit",
          "metadata": {
            "keywords": [
              "private/edit",
              "order_id",
              "amount",
              "contracts",
              "price",
              "post_only",
              "reduce_only",
              "reject_post_only",
              "advanced",
              "trigger_price",
              "trigger_offset",
              "mmp",
              "valid_until",
              "display_amount",
              "order",
              "trades",
              "order_state",
              "order_type",
              "original_order_type",
              "time_in_force",
              "is_rebalance",
              "is_liquidation",
              "instrument_name",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "label",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "filled_amount",
              "average_price",
              "implv",
              "usd",
              "triggered",
              "trigger",
              "trigger_reference_price",
              "block_trade",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "trigger_fill_condition",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco",
              "trade_id",
              "trade_seq",
              "timestamp",
              "matching_id",
              "tick_direction",
              "index_price",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "state",
              "block_trade_id",
              "block_rfq_id",
              "block_rfq_quote_id",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/edit",
            "title": "private/edit"
          }
        }
      }
    },
    "/private/edit_block_rfq_quote": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "**Maker method**\n\nEdits a Block RFQ quote using the specified `block_rfq_quote_id`. Alternatively, you can use a combination of `block_rfq_id` and `label` to edit the quote.\n\nUse [private/add_block_rfq_quote](https://docs.deribit.com/api-reference/block-rfq/private-add_block_rfq_quote) to add new quotes, or [private/cancel_block_rfq_quote](https://docs.deribit.com/api-reference/block-rfq/private-cancel_block_rfq_quote) to cancel quotes.\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fedit_block_rfq_quote)\n\n",
        "parameters": [
          {
            "description": "List of legs used for Block RFQ quote",
            "explode": true,
            "in": "query",
            "name": "legs",
            "required": true,
            "schema": {
              "items": {
                "properties": {
                  "direction": {
                    "$ref": "#/components/schemas/direction",
                    "description": "Direction of selected leg. Must match the direction of the corresponding leg in the Block RFQ"
                  },
                  "instrument_name": {
                    "$ref": "#/components/schemas/instrument_name",
                    "description": "Instrument name"
                  },
                  "price": {
                    "description": "Price for trade",
                    "type": "number"
                  },
                  "ratio": {
                    "description": "Ratio of amount between legs",
                    "type": "integer"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "This value multiplied by the ratio of a leg gives trade size on that leg.",
            "in": "query",
            "name": "amount",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/amount"
            }
          },
          {
            "description": "ID of the Block RFQ quote",
            "in": "query",
            "name": "block_rfq_quote_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "User defined label for the Block RFQ quote (maximum 64 characters). Used to identify quotes of a selected Block RFQ",
            "in": "query",
            "name": "label",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Hedge leg of the Block RFQ. There is only one hedge leg allowed per Block RFQ",
            "in": "query",
            "name": "hedge",
            "required": false,
            "schema": {
              "description": "JSON string containing: instrument_name, direction, price, amount",
              "type": "string"
            }
          },
          {
            "description": "ID of the Block RFQ",
            "in": "query",
            "name": "block_rfq_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Aggregated price used for quoting future spreads.",
            "in": "query",
            "name": "price",
            "required": false,
            "schema": {
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/edit_block_rfq_quote",
                    "params": {
                      "amount": 20000,
                      "block_rfq_id": 3,
                      "direction": "buy",
                      "execution_instruction": "any_part_of",
                      "hedge": {
                        "amount": 10,
                        "direction": "buy",
                        "instrument_name": "BTC-PERPETUAL",
                        "price": 70000
                      },
                      "label": "example_quote",
                      "legs": [
                        {
                          "direction": "buy",
                          "instrument_name": "BTC-15NOV24",
                          "price": 74600,
                          "ratio": "1"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateEditBlockRfqQuoteResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/private-edit_block_rfq_quote",
          "metadata": {
            "keywords": [
              "private/edit_block_rfq_quote",
              "legs",
              "amount",
              "block_rfq_quote_id",
              "label",
              "hedge",
              "block_rfq_id",
              "price",
              "creation_timestamp",
              "last_update_timestamp",
              "quote_state",
              "execution_instruction",
              "direction",
              "filled_amount",
              "replaced",
              "app_name",
              "quote_state_reason",
              "ratio",
              "instrument_name"
            ],
            "og:title": "private/edit_block_rfq_quote",
            "title": "private/edit_block_rfq_quote"
          }
        }
      }
    },
    "/private/edit_by_label": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Modifies an order identified by its label. This method works only when there is exactly one open order with the specified label.\n\nYou can change the order's price, amount, and/or other properties such as time-in-force, post-only, reduce-only, trigger conditions, or advanced order type. Changes take effect immediately.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fedit_by_label)\n\n",
        "parameters": [
          {
            "description": "user defined label for the order (maximum 64 characters)",
            "in": "query",
            "name": "label",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin. The `amount` is a mandatory parameter if `contracts` parameter is missing. If both `contracts` and `amount` parameter are passed they must match each other otherwise error is returned.",
            "in": "query",
            "name": "amount",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "It represents the requested order size in contract units and can be passed instead of `amount`. The `contracts` is a mandatory parameter if `amount` parameter is missing. If both `contracts` and `amount` parameter are passed they must match each other otherwise error is returned.",
            "in": "query",
            "name": "contracts",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "<p>The order price in base currency.</p> <p>When editing an option order with advanced=usd, the field price should be the option price value in USD.</p> <p>When editing an option order with advanced=implv, the field price should be a value of implied volatility in percentages. For example,  price=100, means implied volatility of 100%</p>",
            "in": "query",
            "name": "price",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "<p>If true, the order is considered post-only. If the new price would cause the order to be filled immediately (as taker), the price will be changed to be just below or above the spread (accordingly to the original order type).</p> <p>Only valid in combination with time_in_force=`\"good_til_cancelled\"`</p>",
            "in": "query",
            "name": "post_only",
            "required": false,
            "schema": {
              "default": true,
              "type": "boolean"
            }
          },
          {
            "description": "If `true`, the order is considered reduce-only which is intended to only reduce a current position",
            "in": "query",
            "name": "reduce_only",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "<p>If an order is considered post-only and this field is set to true then the order is put to the order book unmodified or the request is rejected.</p> <p>Only valid in combination with `\"post_only\"` set to true</p>",
            "in": "query",
            "name": "reject_post_only",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "Advanced option order type. If you have posted an advanced option order, it is necessary to re-supply this parameter when editing it (Only for options)",
            "in": "query",
            "name": "advanced",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/advanced"
            }
          },
          {
            "description": "Trigger price, required for trigger orders only (Stop-loss or Take-profit orders)",
            "in": "query",
            "name": "trigger_price",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Order MMP flag, only for order_type 'limit'",
            "in": "query",
            "name": "mmp",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "Timestamp, when provided server will start processing request in Matching Engine only before given timestamp, in other cases `timed_out` error will be responded. Remember that the given timestamp should be consistent with the server's time, use <a href='#public-get_time'>/public/time</a> method to obtain current server time.",
            "in": "query",
            "name": "valid_until",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 9,
                    "jsonrpc": "2.0",
                    "method": "private/edit_by_label",
                    "params": {
                      "amount": 150,
                      "instrument_name": "BTC-PERPETUAL",
                      "label": "i_love_deribit",
                      "price": 50111
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateEditResponse"
          }
        },
        "tags": [
          "Trading",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-edit_by_label",
          "metadata": {
            "keywords": [
              "private/edit_by_label",
              "label",
              "instrument_name",
              "amount",
              "contracts",
              "price",
              "post_only",
              "reduce_only",
              "reject_post_only",
              "advanced",
              "trigger_price",
              "mmp",
              "valid_until",
              "order",
              "trades",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "time_in_force",
              "is_rebalance",
              "is_liquidation",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "display_amount",
              "filled_amount",
              "average_price",
              "implv",
              "usd",
              "triggered",
              "trigger",
              "trigger_offset",
              "trigger_reference_price",
              "block_trade",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "trigger_fill_condition",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco",
              "trade_id",
              "trade_seq",
              "timestamp",
              "matching_id",
              "tick_direction",
              "index_price",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "state",
              "block_trade_id",
              "block_rfq_id",
              "block_rfq_quote_id",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/edit_by_label",
            "title": "private/edit_by_label"
          }
        }
      }
    },
    "/private/enable_cancel_on_disconnect": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Enable Cancel On Disconnect for the connection. After enabling, all orders created via this connection will be automatically cancelled when the connection is closed.\n\nCancel is triggered in the following cases: when the TCP connection is properly terminated, when the connection is closed due to 10 minutes of inactivity, or when a heartbeat detects a disconnection. To reduce the inactivity timeout, consider using [public/set_heartbeat](https://docs.deribit.com/api-reference/session-management/public-set_heartbeat).\n\n**Note:** If the connection is gracefully closed using [private/logout](https://docs.deribit.com/api-reference/authentication/private-logout), cancel-on-disconnect will **not** be triggered.\n\n**Notice:** Cancel-on-Disconnect does not affect orders created by other connections - they will remain active! When change is applied on the `account` scope, then every newly opened connection will start with **active** Cancel on Disconnect.\n\n**WebSocket Only:** This method is designed exclusively for WebSocket connections. Attempting to use it via REST/HTTP will result in an error response.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fenable_cancel_on_disconnect)\n\n",
        "parameters": [
          {
            "description": "Specifies if Cancel On Disconnect change should be applied/checked for the current connection or the account (default - `connection`)<br/><br/> **NOTICE:** Scope `connection` can be used only when working via Websocket.",
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "enum": [
                "connection",
                "account"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 7859,
                    "jsonrpc": "2.0",
                    "method": "private/enable_cancel_on_disconnect",
                    "params": {
                      "scope": "account"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/OkResponse"
          }
        },
        "tags": [
          "Session Management",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/session-management/private-enable_cancel_on_disconnect",
          "metadata": {
            "keywords": [
              "private/enable_cancel_on_disconnect",
              "scope"
            ],
            "og:title": "private/enable_cancel_on_disconnect",
            "title": "private/enable_cancel_on_disconnect"
          }
        }
      }
    },
    "/private/execute_block_trade": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Executes a block trade. This is the second step in the block trade workflow - the second party calls this method with the signature received from the first party to execute the trade.\n\nThe whole request must be exactly the same as in [private/verify_block_trade](https://docs.deribit.com/api-reference/block-trade/private-verify_block_trade), only the `role` field should be set appropriately - this means that both sides have to agree on the same `timestamp`, `nonce`, and `trades` fields, and the server will ensure that the `role` field is different between sides (each party accepts their own role).\n\nUsing the same `timestamp` and `nonce` by both sides in [private/verify_block_trade](https://docs.deribit.com/api-reference/block-trade/private-verify_block_trade) ensures that even if unintentionally both sides execute the given block trade with a valid `counterparty_signature`, the block trade will be executed only once.\n\n**Note:** In the API, the `direction` field is always expressed from the maker's perspective. This means that when you accept a block trade as a taker, the direction shown in the API represents the opposite side of your trade. For example, if you are buying puts as a taker, the API will show the operation as a \"sell put\" (maker's perspective), and you will be verifying and accepting a \"sell put\" block trade.\n\n**📖 Related Article:** [Block Trading](https://docs.deribit.com/articles/block-trading-api)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fexecute_block_trade)\n\n",
        "parameters": [
          {
            "description": "Timestamp, shared with other party (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Nonce, shared with other party",
            "in": "query",
            "name": "nonce",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/nonce"
            }
          },
          {
            "description": "Describes if user wants to be maker or taker of trades",
            "in": "query",
            "name": "role",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/role"
            }
          },
          {
            "description": "List of trades for block trade",
            "explode": true,
            "in": "query",
            "name": "trades",
            "required": true,
            "schema": {
              "items": {
                "properties": {
                  "amount": {
                    "$ref": "#/components/schemas/amount",
                    "description": "It represents the requested trade size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin."
                  },
                  "direction": {
                    "$ref": "#/components/schemas/direction",
                    "description": "Direction of trade from the maker perspective"
                  },
                  "instrument_name": {
                    "$ref": "#/components/schemas/instrument_name",
                    "description": "Instrument name"
                  },
                  "price": {
                    "description": "Price for trade",
                    "type": "number"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Signature of block trade generated by `private/verify_block_trade_method`",
            "in": "query",
            "name": "counterparty_signature",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/block_trade_signature"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/execute_block_trade",
                    "params": {
                      "counterparty_signature": "1590485595899.1Mn52L_Q.lNyNBzXXo-_QBT_wDuMgnhA7uS9tBqdQ5TLN6rxbuoAiQhyaJYGJrm5IV_9enp9niY_x8D60AJLm3yEKPUY1Dv3T0TW0n5-ADPpJF7Fpj0eVDZpZ6QCdX8snBWrSJ0TtqevnO64RCBlN1dIm2T70PP9dlhiqPDAUYI4fpB1vLYI",
                      "nonce": "bszyprbq",
                      "role": "maker",
                      "timestamp": 1590485535899,
                      "trades": [
                        {
                          "amount": 200000,
                          "direction": "sell",
                          "instrument_name": "BTC-PERPETUAL",
                          "price": 8900.0
                        },
                        {
                          "amount": 5.0,
                          "direction": "sell",
                          "instrument_name": "BTC-28MAY20-9000-C",
                          "price": 0.0133
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetBlockTradeResponse"
          }
        },
        "tags": [
          "Block Trade",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-trade/private-execute_block_trade",
          "metadata": {
            "keywords": [
              "private/execute_block_trade",
              "timestamp",
              "nonce",
              "role",
              "trades",
              "counterparty_signature",
              "app_name",
              "broker_code",
              "broker_name",
              "trade_id",
              "trade_seq",
              "instrument_name",
              "order_type",
              "advanced",
              "order_id",
              "matching_id",
              "direction",
              "tick_direction",
              "index_price",
              "price",
              "amount",
              "contracts",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "label",
              "state",
              "block_trade_id",
              "block_rfq_id",
              "block_rfq_quote_id",
              "reduce_only",
              "post_only",
              "mmp",
              "risk_reducing",
              "api",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "quote_set_id",
              "quote_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/execute_block_trade",
            "title": "private/execute_block_trade"
          }
        }
      }
    },
    "/private/get_access_log": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:user:read"
            ]
          }
        ],
        "description": "Retrieves a log of API access attempts and authentication events for the authenticated account. The log includes information such as IP addresses, timestamps, API methods called, and authentication status.\n\nUse this method to monitor account security, review API usage patterns, and identify unauthorized access attempts. Results can be paginated using the `offset` and `count` parameters.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_access_log)\n\n",
        "parameters": [
          {
            "description": "The offset for pagination, default - `0`",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "example": 10,
              "type": "integer"
            }
          },
          {
            "description": "Number of requested items, default - `10`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/get_access_log",
                    "params": {
                      "count": 3,
                      "offset": 0
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetAccessLogResponse"
          }
        },
        "tags": [
          "Account Management",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/account-management/private-get_access_log",
          "metadata": {
            "keywords": [
              "private/get_access_log",
              "offset",
              "count",
              "ip",
              "timestamp",
              "country",
              "city",
              "log",
              "data"
            ],
            "og:title": "private/get_access_log",
            "title": "private/get_access_log"
          }
        }
      }
    },
    "/private/get_account_summaries": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:accounts:read"
            ]
          }
        ],
        "description": "Retrieves a per-currency list of account summaries for the authenticated user. Each summary includes balance, equity, available funds, and margin information for each currency.\n\nTo retrieve summaries for a specific subaccount, use the `subaccount_id` parameter. When the `extended` parameter is set to `true`, additional account details such as account ID, username, email, and account type are included.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_account_summaries)\n\n",
        "parameters": [
          {
            "description": "The user id for the subaccount",
            "in": "query",
            "name": "subaccount_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Include additional fields",
            "in": "query",
            "name": "extended",
            "required": false,
            "schema": {
              "example": true,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 2515,
                    "jsonrpc": "2.0",
                    "method": "private/get_account_summaries",
                    "params": {
                      "extended": true
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateAccountSummariesResponse"
          }
        },
        "tags": [
          "Account Management",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/account-management/private-get_account_summaries",
          "metadata": {
            "keywords": [
              "private/get_account_summaries",
              "subaccount_id",
              "extended",
              "system_name",
              "username",
              "type",
              "login_enabled",
              "email",
              "security_keys_enabled",
              "mmp_enabled",
              "interuser_transfers_enabled",
              "referrer_id",
              "creation_timestamp",
              "self_trading_reject_mode",
              "self_trading_extended_to_subaccounts",
              "block_rfq_self_match_prevention",
              "affiliate_promotion_fee",
              "trading_products_details",
              "receive_notifications",
              "summaries",
              "total_pl",
              "session_rpl",
              "session_upl",
              "available_funds",
              "available_withdrawal_funds",
              "margin_balance",
              "balance",
              "spot_reserve",
              "additional_reserve",
              "fee_balance",
              "fee_group",
              "currency",
              "delta_total",
              "projected_delta_total",
              "deposit_address",
              "equity",
              "futures_pl",
              "futures_session_rpl",
              "futures_session_upl",
              "initial_margin",
              "maintenance_margin",
              "estimated_liquidation_ratio",
              "options_delta",
              "options_gamma",
              "options_pl",
              "options_session_rpl",
              "options_session_upl",
              "options_theta",
              "options_value",
              "options_vega",
              "options_gamma_map",
              "options_theta_map",
              "options_vega_map",
              "projected_initial_margin",
              "projected_maintenance_margin",
              "portfolio_margining_enabled",
              "cross_collateral_enabled",
              "margin_model",
              "total_equity_usd",
              "total_initial_margin_usd",
              "total_maintenance_margin_usd",
              "total_margin_balance_usd",
              "total_delta_total_usd",
              "limits",
              "has_non_block_chain_equity",
              "fees"
            ],
            "og:title": "private/get_account_summaries",
            "title": "private/get_account_summaries"
          }
        }
      }
    },
    "/private/get_account_summary": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:accounts:read"
            ]
          }
        ],
        "description": "Retrieves the account summary for a specific currency. The summary includes balance, equity, available funds, initial margin, maintenance margin, and other margin-related information.\n\nTo retrieve the summary for a specific subaccount, use the `subaccount_id` parameter. When the `extended` parameter is set to `true`, additional account details such as account ID, username, email, and account type are included.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_account_summary)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/wallet_currency"
            }
          },
          {
            "description": "The user id for the subaccount",
            "in": "query",
            "name": "subaccount_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Include additional fields",
            "in": "query",
            "name": "extended",
            "required": false,
            "schema": {
              "example": true,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 2515,
                    "jsonrpc": "2.0",
                    "method": "private/get_account_summary",
                    "params": {
                      "currency": "BTC",
                      "extended": true
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateAccountResponse"
          }
        },
        "tags": [
          "Account Management",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/account-management/private-get_account_summary",
          "metadata": {
            "keywords": [
              "private/get_account_summary",
              "currency",
              "subaccount_id",
              "extended",
              "total_pl",
              "session_rpl",
              "session_upl",
              "available_funds",
              "available_withdrawal_funds",
              "margin_balance",
              "balance",
              "spot_reserve",
              "additional_reserve",
              "fee_balance",
              "fee_group",
              "delta_total",
              "projected_delta_total",
              "deposit_address",
              "email",
              "equity",
              "futures_pl",
              "futures_session_rpl",
              "futures_session_upl",
              "initial_margin",
              "maintenance_margin",
              "estimated_liquidation_ratio",
              "system_name",
              "options_delta",
              "options_gamma",
              "options_pl",
              "options_session_rpl",
              "options_session_upl",
              "options_theta",
              "options_value",
              "options_vega",
              "options_gamma_map",
              "options_theta_map",
              "options_vega_map",
              "security_keys_enabled",
              "mmp_enabled",
              "projected_initial_margin",
              "projected_maintenance_margin",
              "username",
              "type",
              "login_enabled",
              "portfolio_margining_enabled",
              "cross_collateral_enabled",
              "margin_model",
              "total_equity_usd",
              "total_initial_margin_usd",
              "total_maintenance_margin_usd",
              "total_margin_balance_usd",
              "total_delta_total_usd",
              "interuser_transfers_enabled",
              "referrer_id",
              "limits",
              "creation_timestamp",
              "has_non_block_chain_equity",
              "self_trading_reject_mode",
              "self_trading_extended_to_subaccounts",
              "fees",
              "affiliate_promotion_fee",
              "trading_products_details",
              "receive_notifications",
              "is_direct_access_allowed"
            ],
            "og:title": "private/get_account_summary",
            "title": "private/get_account_summary"
          }
        }
      }
    },
    "/private/get_block_rfq_makers": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Returns a list of all available Block RFQ makers. This method takes no parameters.\n\nUse this method to retrieve the list of makers that can be specified when creating a Block RFQ with [private/create_block_rfq](https://docs.deribit.com/api-reference/block-rfq/private-create_block_rfq).\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_block_rfq_makers)\n\n",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/get_block_rfq_makers",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetBlockRfqMakersResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/private-get_block_rfq_makers",
          "metadata": {
            "keywords": [
              "private/get_block_rfq_makers"
            ],
            "og:title": "private/get_block_rfq_makers",
            "title": "private/get_block_rfq_makers"
          }
        }
      }
    },
    "/private/get_block_rfq_quotes": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "**Maker method**\n\nRetrieves all open quotes for Block RFQs. When a `block_rfq_id` is specified, only the open quotes for that particular Block RFQ will be returned. When a `label` is specified, all quotes with this label are returned. `block_rfq_quote_id` returns one specific quote.\n\nUse [private/add_block_rfq_quote](https://docs.deribit.com/api-reference/block-rfq/private-add_block_rfq_quote) to add quotes, or [private/get_block_rfqs](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfqs) to retrieve Block RFQ information.\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_block_rfq_quotes)\n\n",
        "parameters": [
          {
            "description": "ID of the Block RFQ",
            "in": "query",
            "name": "block_rfq_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "User defined label for the Block RFQ quote (maximum 64 characters). Used to identify quotes of a selected Block RFQ",
            "in": "query",
            "name": "label",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "ID of the Block RFQ quote",
            "in": "query",
            "name": "block_rfq_quote_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/get_block_rfq_quotes",
                    "params": {
                      "block_rfq_id": 1
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetBlockRfqQuotesResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/private-get_block_rfq_quotes",
          "metadata": {
            "keywords": [
              "private/get_block_rfq_quotes",
              "block_rfq_id",
              "label",
              "block_rfq_quote_id",
              "creation_timestamp",
              "last_update_timestamp",
              "quote_state",
              "execution_instruction",
              "price",
              "amount",
              "direction",
              "filled_amount",
              "legs",
              "hedge",
              "replaced",
              "app_name",
              "quote_state_reason",
              "ratio",
              "instrument_name"
            ],
            "og:title": "private/get_block_rfq_quotes",
            "title": "private/get_block_rfq_quotes"
          }
        }
      }
    },
    "/private/get_block_rfq_user_info": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Returns identity and rating information for the requesting account and its subaccounts. Includes both group-level and individual user-level alias data, if available.\n\nThis information is useful for understanding your Block RFQ maker identity and rating when participating in Block RFQ trades.\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_block_rfq_user_info)\n\n",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/get_block_rfq_user_info",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetBlockRfqUserInfoResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/private-get_block_rfq_user_info",
          "metadata": {
            "keywords": [
              "private/get_block_rfq_user_info",
              "parent",
              "users",
              "identity",
              "is_maker",
              "user_id",
              "taker_rating"
            ],
            "og:title": "private/get_block_rfq_user_info",
            "title": "private/get_block_rfq_user_info"
          }
        }
      }
    },
    "/private/get_block_rfqs": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Returns a list of Block RFQs that were either created by the user or assigned to them as a maker, sorted in descending order.\n\n`trades` and `mark_price` are only visible for the filled Block RFQ. When a `block_rfq_id` is specified, only that particular Block RFQ will be returned. If called by a `taker`, response will additionally include `makers` list and `label` if previously provided. If called by the `maker`, the `trades` will include the maker's alias, but only for trades in which this maker participated. Can be optionally filtered by currency.\n\nUse [private/get_block_rfq_quotes](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfq_quotes) to retrieve quotes for Block RFQs.\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_block_rfqs)\n\n",
        "parameters": [
          {
            "description": "Count of Block RFQs returned, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "State of Block RFQ",
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "enum": [
                "open",
                "filled",
                "traded",
                "cancelled",
                "expired",
                "closed"
              ],
              "type": "string"
            }
          },
          {
            "description": "Role of the user in Block RFQ. When the `any` role is selected, the method returns all Block RFQs in which the user has participated, either as the `taker` or as a `maker`",
            "in": "query",
            "name": "role",
            "required": false,
            "schema": {
              "enum": [
                "any",
                "taker",
                "maker"
              ],
              "type": "string"
            }
          },
          {
            "description": "The continuation parameter specifies the starting point for fetching historical Block RFQs. When provided, the endpoint returns Block RFQs, starting from the specified ID and continuing backward (e.g., if `continuation` is 50, results will include Block RFQs of ID 49, 48, etc.)",
            "in": "query",
            "name": "continuation",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "ID of the Block RFQ",
            "in": "query",
            "name": "block_rfq_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/block_rfq_currency"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/get_block_rfqs",
                    "params": {
                      "count": 20,
                      "role": "maker",
                      "state": "open"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetBlockRfqsResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/private-get_block_rfqs",
          "metadata": {
            "keywords": [
              "private/get_block_rfqs",
              "count",
              "state",
              "role",
              "continuation",
              "block_rfq_id",
              "currency",
              "block_rfqs",
              "creation_timestamp",
              "expiration_timestamp",
              "taker_rating",
              "makers",
              "amount",
              "min_trade_amount",
              "asks",
              "bids",
              "legs",
              "hedge",
              "combo_id",
              "label",
              "app_name",
              "mark_price",
              "disclosed",
              "taker",
              "index_prices",
              "included_in_taker_rating",
              "trades",
              "trade_trigger",
              "trade_allocations",
              "price",
              "last_update_timestamp",
              "execution_instruction",
              "expires_at",
              "ratio",
              "instrument_name",
              "direction",
              "maker",
              "hedge_amount",
              "cancel_reason",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/get_block_rfqs",
            "title": "private/get_block_rfqs"
          }
        }
      }
    },
    "/private/get_block_trade": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Returns information about a specific block trade identified by `block_trade_id`.\n\n**📖 Related Article:** [Block Trading](https://docs.deribit.com/articles/block-trading-api)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_block_trade)\n\n",
        "parameters": [
          {
            "description": "Block trade id",
            "in": "query",
            "name": "id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/block_trade_id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/get_block_trade",
                    "params": {
                      "id": "61"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetBlockTradeResponse"
          }
        },
        "tags": [
          "Block Trade",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-trade/private-get_block_trade",
          "metadata": {
            "keywords": [
              "private/get_block_trade",
              "id",
              "timestamp",
              "trades",
              "app_name",
              "broker_code",
              "broker_name",
              "trade_id",
              "trade_seq",
              "instrument_name",
              "order_type",
              "advanced",
              "order_id",
              "matching_id",
              "direction",
              "tick_direction",
              "index_price",
              "price",
              "amount",
              "contracts",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "label",
              "state",
              "block_trade_id",
              "block_rfq_id",
              "block_rfq_quote_id",
              "reduce_only",
              "post_only",
              "mmp",
              "risk_reducing",
              "api",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "quote_set_id",
              "quote_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/get_block_trade",
            "title": "private/get_block_trade"
          }
        }
      }
    },
    "/private/get_block_trade_requests": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Provides a list of block trade requests including pending approvals, declined trades, and expired trades. `timestamp` and `nonce` received in response can be used with [private/approve_block_trade](https://docs.deribit.com/api-reference/block-trade/private-approve_block_trade) or [private/reject_block_trade](https://docs.deribit.com/api-reference/block-trade/private-reject_block_trade) to approve or reject the pending block trade.\n\nTo use the block trade approval feature, an [additional API key setting feature](https://docs.deribit.com/articles/creating-api-key#block-trade-approval-feature) called `enabled_features: block_trade_approval` is required. This key has to be given to the broker/registered partner who performs the trades on behalf of the user for the feature to be active. If the user wants to approve the trade, they must approve it from a different API key that doesn't have this feature enabled.\n\nOnly broker clients can use `broker_code` to query for their broker block trade requests.\n\n**📖 Related Article:** [Block Trading](https://docs.deribit.com/articles/block-trading-api)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_block_trade_requests)\n\n",
        "parameters": [
          {
            "description": "Broker code to filter block trade requests. Only broker clients can use `broker_code` to query for their executed broker block trades.",
            "in": "query",
            "name": "broker_code",
            "required": false,
            "schema": {
              "example": "jpqYKgg1",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/get_block_trade_requests",
                    "params": {
                      "broker_code": "jpqYKgg1"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetBlockTradeRequestsResponse"
          }
        },
        "tags": [
          "Block Trade",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-trade/private-get_block_trade_requests",
          "metadata": {
            "keywords": [
              "private/get_block_trade_requests",
              "broker_code",
              "nonce",
              "timestamp",
              "trades",
              "app_name",
              "username",
              "role",
              "user_id",
              "broker_name",
              "state",
              "counterparty_state",
              "combo_id",
              "value"
            ],
            "og:title": "private/get_block_trade_requests",
            "title": "private/get_block_trade_requests"
          }
        }
      }
    },
    "/private/get_block_trades": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Returns a list of the user's block trades. If currency is not provided, returns block trades for all currencies. `block_rfq_id` can be provided to receive block trades related to that particular Block RFQ.\n\n**📖 Related Article:** [Block Trading](https://docs.deribit.com/articles/block-trading-api)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_block_trades)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Count of Block Trades returned, maximum - `101`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 101,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Response will contain block trades older than the one provided in this field",
            "in": "query",
            "name": "start_id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/block_trade_id"
            }
          },
          {
            "description": "The id of the oldest block trade to be returned, `start_id` is required with `end_id`",
            "in": "query",
            "name": "end_id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/block_trade_id"
            }
          },
          {
            "description": "ID of the Block RFQ",
            "in": "query",
            "name": "block_rfq_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Broker code to filter block trades. Only broker clients can use `broker_code` to filter broker block trades. Use `any` for all block trades.",
            "in": "query",
            "name": "broker_code",
            "required": false,
            "schema": {
              "example": "2krM7sJsx",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/get_block_trades",
                    "params": {
                      "count": 1,
                      "currency": "BTC"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetBlockTradesResponse"
          }
        },
        "tags": [
          "Block Trade",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-trade/private-get_block_trades",
          "metadata": {
            "keywords": [
              "private/get_block_trades",
              "currency",
              "count",
              "start_id",
              "end_id",
              "block_rfq_id",
              "broker_code",
              "timestamp",
              "trades",
              "app_name",
              "broker_name",
              "trade_id",
              "trade_seq",
              "instrument_name",
              "order_type",
              "advanced",
              "order_id",
              "matching_id",
              "direction",
              "tick_direction",
              "index_price",
              "price",
              "amount",
              "contracts",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "label",
              "state",
              "block_trade_id",
              "block_rfq_quote_id",
              "reduce_only",
              "post_only",
              "mmp",
              "risk_reducing",
              "api",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "quote_set_id",
              "quote_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/get_block_trades",
            "title": "private/get_block_trades"
          }
        }
      }
    },
    "/private/get_broker_trade_requests": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "**Broker Method** Provides a list of broker block trade requests including pending approvals, declined trades, and expired trades. `timestamp` and `nonce` received in response can be used to approve or reject the pending broker block trade. This method takes no parameters.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_broker_trade_requests)\n\n",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 7,
                    "jsonrpc": "2.0",
                    "method": "private/get_broker_trade_requests",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetBrokerTradeRequestsResponse"
          }
        },
        "tags": [
          "Block Trade",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-trade/private-get_broker_trade_requests",
          "metadata": {
            "keywords": [
              "private/get_broker_trade_requests",
              "timestamp",
              "state",
              "trades",
              "maker",
              "taker",
              "nonce",
              "amount",
              "direction",
              "price",
              "instrument_name",
              "client_id",
              "user_id",
              "client_name",
              "client_link_name",
              "client_link_id"
            ],
            "og:title": "private/get_broker_trade_requests",
            "title": "private/get_broker_trade_requests"
          }
        }
      }
    },
    "/private/get_broker_trades": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "**Broker Method** Returns list of broker block trades. If currency is not provided, returns broker block trades for all currencies.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_broker_trades)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Number of requested items, default - `20`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Response will contain block trades older than the one provided in this field",
            "in": "query",
            "name": "start_id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/block_trade_id"
            }
          },
          {
            "description": "The id of the oldest block trade to be returned, `start_id` is required with `end_id`",
            "in": "query",
            "name": "end_id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/block_trade_id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/get_broker_trades",
                    "params": {
                      "count": 1,
                      "currency": "BTC"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetBrokerTradesResponse"
          }
        },
        "tags": [
          "Block Trade",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-trade/private-get_broker_trades",
          "metadata": {
            "keywords": [
              "private/get_broker_trades",
              "currency",
              "count",
              "start_id",
              "end_id",
              "history",
              "next_start_id",
              "timestamp",
              "trades",
              "maker",
              "taker",
              "app_name",
              "broker_code",
              "broker_name",
              "trade_id",
              "trade_seq",
              "instrument_name",
              "order_type",
              "advanced",
              "order_id",
              "matching_id",
              "direction",
              "tick_direction",
              "index_price",
              "price",
              "amount",
              "contracts",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "label",
              "state",
              "block_trade_id",
              "block_rfq_id",
              "block_rfq_quote_id",
              "reduce_only",
              "post_only",
              "mmp",
              "risk_reducing",
              "api",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "quote_set_id",
              "quote_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name",
              "client_name",
              "client_link_name"
            ],
            "og:title": "private/get_broker_trades",
            "title": "private/get_broker_trades"
          }
        }
      }
    },
    "/private/get_cancel_on_disconnect": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:user:read"
            ]
          }
        ],
        "description": "Read current Cancel On Disconnect configuration for the account.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_cancel_on_disconnect)\n\n",
        "parameters": [
          {
            "description": "Specifies if Cancel On Disconnect change should be applied/checked for the current connection or the account (default - `connection`)<br/><br/> **NOTICE:** Scope `connection` can be used only when working via Websocket.",
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "enum": [
                "connection",
                "account"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 220,
                    "jsonrpc": "2.0",
                    "method": "private/get_cancel_on_disconnect",
                    "params": {
                      "scope": "account"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetCancelOnDisconnectResponse"
          }
        },
        "tags": [
          "Session Management",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/session-management/private-get_cancel_on_disconnect",
          "metadata": {
            "keywords": [
              "private/get_cancel_on_disconnect",
              "scope",
              "enabled"
            ],
            "og:title": "private/get_cancel_on_disconnect",
            "title": "private/get_cancel_on_disconnect"
          }
        }
      }
    },
    "/private/get_leg_prices": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:user:read"
            ]
          }
        ],
        "description": "Returns individual leg prices for a given combo structure based on an aggregated price of the strategy and the mark prices of the individual legs.\n\n**Note:** Leg prices change dynamically with mark price fluctuations, and the algorithm is calibrated only for conventional option structures and future spreads. This method supports both inverse strategies and known linear structures within a single currency pair.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_leg_prices)\n\n",
        "parameters": [
          {
            "description": "List of legs for which the prices will be calculated",
            "explode": true,
            "in": "query",
            "name": "legs",
            "required": true,
            "schema": {
              "items": {
                "properties": {
                  "amount": {
                    "$ref": "#/components/schemas/amount",
                    "description": "It represents the requested trade size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin."
                  },
                  "direction": {
                    "$ref": "#/components/schemas/direction",
                    "description": "Direction of selected leg"
                  },
                  "instrument_name": {
                    "$ref": "#/components/schemas/instrument_name",
                    "description": "Instrument name"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Price for the whole leg structure",
            "in": "query",
            "name": "price",
            "required": true,
            "schema": {
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/get_leg_prices",
                    "params": {
                      "legs": [
                        {
                          "amount": 2,
                          "direction": "buy",
                          "instrument_name": "BTC-1NOV24-67000-C"
                        },
                        {
                          "amount": 2,
                          "direction": "sell",
                          "instrument_name": "BTC-1NOV24-66000-C"
                        }
                      ],
                      "price": 0.6
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetLegPricesResponse"
          }
        },
        "tags": [
          "Combo Books",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/combo-books/private-get_leg_prices",
          "metadata": {
            "keywords": [
              "private/get_leg_prices",
              "legs",
              "price",
              "amount",
              "ratio",
              "instrument_name",
              "direction"
            ],
            "og:title": "private/get_leg_prices",
            "title": "private/get_leg_prices"
          }
        }
      }
    },
    "/private/get_margins": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:accounts:read"
            ]
          }
        ],
        "description": "Calculates margin requirements for a hypothetical order on a given instrument. Returns initial margin and maintenance margin for the specified instrument, quantity, and price.\n\nThis method is useful for estimating margin requirements before placing an order, helping to ensure sufficient funds are available and understanding the margin impact of potential trades.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_margins)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin.",
            "in": "query",
            "name": "amount",
            "required": true,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Price",
            "in": "query",
            "name": "price",
            "required": true,
            "schema": {
              "example": 3725,
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 7,
                    "jsonrpc": "2.0",
                    "method": "private/get_margins",
                    "params": {
                      "amount": 10000,
                      "instrument_name": "BTC-PERPETUAL",
                      "price": 3725
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetMarginsResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_margins",
          "metadata": {
            "keywords": [
              "private/get_margins",
              "instrument_name",
              "amount",
              "price",
              "buy",
              "sell",
              "min_price",
              "max_price"
            ],
            "og:title": "private/get_margins",
            "title": "private/get_margins"
          }
        }
      }
    },
    "/private/get_open_orders": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves a list of all open orders for the authenticated account across all currencies. Open orders are orders that have been placed but not yet filled or cancelled.\n\nResults can be filtered by instrument kind and order type. This method provides a comprehensive view of all active orders.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_open_orders)\n\n",
        "parameters": [
          {
            "description": "Instrument kind, if not provided instruments of all kinds are considered",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind"
            }
          },
          {
            "description": "Order type, default - `all`",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/order_type2"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1953,
                    "jsonrpc": "2.0",
                    "method": "private/get_open_orders",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetOpenOrdersResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_open_orders",
          "metadata": {
            "keywords": [
              "private/get_open_orders",
              "kind",
              "type",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "time_in_force",
              "is_rebalance",
              "is_liquidation",
              "instrument_name",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "price",
              "label",
              "post_only",
              "reject_post_only",
              "reduce_only",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "display_amount",
              "amount",
              "contracts",
              "filled_amount",
              "average_price",
              "advanced",
              "implv",
              "usd",
              "triggered",
              "trigger",
              "trigger_price",
              "trigger_offset",
              "trigger_reference_price",
              "block_trade",
              "mmp",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "trigger_fill_condition",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco"
            ],
            "og:title": "private/get_open_orders",
            "title": "private/get_open_orders"
          }
        }
      }
    },
    "/private/get_open_orders_by_currency": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves a list of all open orders for a specific currency. Open orders are orders that have been placed but not yet filled or cancelled.\n\nResults can be filtered by instrument kind and order type. This method provides a view of all active orders within a currency.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_open_orders_by_currency)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Instrument kind, if not provided instruments of all kinds are considered",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind"
            }
          },
          {
            "description": "Order type, default - `all`",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/order_type2"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1953,
                    "jsonrpc": "2.0",
                    "method": "private/get_open_orders_by_currency",
                    "params": {
                      "currency": "BTC"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetOpenOrdersResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_open_orders_by_currency",
          "metadata": {
            "keywords": [
              "private/get_open_orders_by_currency",
              "currency",
              "kind",
              "type",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "time_in_force",
              "is_rebalance",
              "is_liquidation",
              "instrument_name",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "price",
              "label",
              "post_only",
              "reject_post_only",
              "reduce_only",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "display_amount",
              "amount",
              "contracts",
              "filled_amount",
              "average_price",
              "advanced",
              "implv",
              "usd",
              "triggered",
              "trigger",
              "trigger_price",
              "trigger_offset",
              "trigger_reference_price",
              "block_trade",
              "mmp",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "trigger_fill_condition",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco"
            ],
            "og:title": "private/get_open_orders_by_currency",
            "title": "private/get_open_orders_by_currency"
          }
        }
      }
    },
    "/private/get_open_orders_by_instrument": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves a list of all open orders for a specific instrument. Open orders are orders that have been placed but not yet filled or cancelled.\n\nResults can be filtered by order type. This method is useful for checking active orders for a particular instrument.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_open_orders_by_instrument)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "Order type, default - `all`",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/order_type2"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 8442,
                    "jsonrpc": "2.0",
                    "method": "private/get_open_orders_by_instrument",
                    "params": {
                      "instrument_name": "ETH-22FEB19-120-C"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetOpenOrdersResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_open_orders_by_instrument",
          "metadata": {
            "keywords": [
              "private/get_open_orders_by_instrument",
              "instrument_name",
              "type",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "time_in_force",
              "is_rebalance",
              "is_liquidation",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "price",
              "label",
              "post_only",
              "reject_post_only",
              "reduce_only",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "display_amount",
              "amount",
              "contracts",
              "filled_amount",
              "average_price",
              "advanced",
              "implv",
              "usd",
              "triggered",
              "trigger",
              "trigger_price",
              "trigger_offset",
              "trigger_reference_price",
              "block_trade",
              "mmp",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "trigger_fill_condition",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco"
            ],
            "og:title": "private/get_open_orders_by_instrument",
            "title": "private/get_open_orders_by_instrument"
          }
        }
      }
    },
    "/private/get_open_orders_by_label": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves a list of all open orders that have a specific label within a given currency. This is useful for tracking and managing groups of related orders that share the same label.\n\nOpen orders are orders that have been placed but not yet filled or cancelled. The label helps organize and identify related orders.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_open_orders_by_label)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "user defined label for the order (maximum 64 characters)",
            "in": "query",
            "name": "label",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1953,
                    "jsonrpc": "2.0",
                    "method": "private/get_open_orders_by_label",
                    "params": {
                      "currency": "BTC",
                      "label": "fooBar"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetOpenOrdersResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_open_orders_by_label",
          "metadata": {
            "keywords": [
              "private/get_open_orders_by_label",
              "currency",
              "label",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "time_in_force",
              "is_rebalance",
              "is_liquidation",
              "instrument_name",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "price",
              "post_only",
              "reject_post_only",
              "reduce_only",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "display_amount",
              "amount",
              "contracts",
              "filled_amount",
              "average_price",
              "advanced",
              "implv",
              "usd",
              "triggered",
              "trigger",
              "trigger_price",
              "trigger_offset",
              "trigger_reference_price",
              "block_trade",
              "mmp",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "trigger_fill_condition",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco"
            ],
            "og:title": "private/get_open_orders_by_label",
            "title": "private/get_open_orders_by_label"
          }
        }
      }
    },
    "/private/get_order_history_by_currency": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves the order history for a specific currency. The history includes orders that have been partially or fully filled, as well as cancelled orders (if `include_unfilled_orders` is set to true).\n\nResults can be filtered by instrument kind and paginated using `offset` and `count` parameters, or using continuation tokens. Use `include_old_orders` to include orders from before a certain date, and `historical` to retrieve historical order data.\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_order_history_by_currency)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Instrument kind, `\"combo\"` for any combo or `\"any\"` for all. If not provided instruments of all kinds are considered",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind_with_combo_all"
            }
          },
          {
            "description": "Number of requested items, default - `20`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "The offset for pagination, default - `0`",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "example": 10,
              "type": "integer"
            }
          },
          {
            "description": "Include in result orders older than 2 days, default - `false`",
            "in": "query",
            "name": "include_old",
            "required": false,
            "schema": {
              "example": false,
              "type": "boolean"
            }
          },
          {
            "description": "Include in result fully unfilled closed orders, default - `false`",
            "in": "query",
            "name": "include_unfilled",
            "required": false,
            "schema": {
              "example": false,
              "type": "boolean"
            }
          },
          {
            "description": "When set to true, the API response format changes from a simple list of orders to an object containing the orders and a continuation token.",
            "in": "query",
            "name": "with_continuation",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Continuation token for pagination",
            "in": "query",
            "name": "continuation",
            "required": false,
            "schema": {
              "example": "xY7T6cutS3t2B9YtaDkE6TS379oKnkzTvmEDUnEUP2Msa9xKWNNaT",
              "type": "string"
            }
          },
          {
            "description": "Determines whether historical trade and order records should be retrieved.\n\n- `false` (default): Returns recent records: orders for 30 min, trades for 24h.\n- `true`: Fetches historical records, available after a short delay due to indexing. Recent data is not included.\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n",
            "in": "query",
            "name": "historical",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 9305,
                    "jsonrpc": "2.0",
                    "method": "private/get_order_history_by_currency",
                    "params": {
                      "count": 1,
                      "currency": "BTC",
                      "kind": "future"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetOrderHistoryResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_order_history_by_currency",
          "metadata": {
            "keywords": [
              "private/get_order_history_by_currency",
              "currency",
              "kind",
              "count",
              "offset",
              "include_old",
              "include_unfilled",
              "with_continuation",
              "continuation",
              "historical",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "time_in_force",
              "is_rebalance",
              "is_liquidation",
              "instrument_name",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "price",
              "label",
              "post_only",
              "reject_post_only",
              "reduce_only",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "display_amount",
              "amount",
              "contracts",
              "filled_amount",
              "average_price",
              "advanced",
              "implv",
              "usd",
              "triggered",
              "trigger",
              "trigger_price",
              "trigger_offset",
              "trigger_reference_price",
              "block_trade",
              "mmp",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "trigger_fill_condition",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco"
            ],
            "og:title": "private/get_order_history_by_currency",
            "title": "private/get_order_history_by_currency"
          }
        }
      }
    },
    "/private/get_order_history_by_instrument": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves the order history for a specific instrument. The history includes orders that have been partially or fully filled, as well as cancelled orders (if `include_unfilled_orders` is set to true).\n\nResults can be paginated using `offset` and `count` parameters, or using continuation tokens. Use `include_old_orders` to include orders from before a certain date, and `historical` to retrieve historical order data.\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_order_history_by_instrument)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "Number of requested items, default - `20`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "The offset for pagination, default - `0`",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "example": 10,
              "type": "integer"
            }
          },
          {
            "description": "Include in result orders older than 2 days, default - `false`",
            "in": "query",
            "name": "include_old",
            "required": false,
            "schema": {
              "example": false,
              "type": "boolean"
            }
          },
          {
            "description": "Include in result fully unfilled closed orders, default - `false`",
            "in": "query",
            "name": "include_unfilled",
            "required": false,
            "schema": {
              "example": false,
              "type": "boolean"
            }
          },
          {
            "description": "When set to true, the API response format changes from a simple list of orders to an object containing the orders and a continuation token.",
            "in": "query",
            "name": "with_continuation",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Continuation token for pagination",
            "in": "query",
            "name": "continuation",
            "required": false,
            "schema": {
              "example": "xY7T6cutS3t2B9YtaDkE6TS379oKnkzTvmEDUnEUP2Msa9xKWNNaT",
              "type": "string"
            }
          },
          {
            "description": "Determines whether historical trade and order records should be retrieved.\n\n- `false` (default): Returns recent records: orders for 30 min, trades for 24h.\n- `true`: Fetches historical records, available after a short delay due to indexing. Recent data is not included.\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n",
            "in": "query",
            "name": "historical",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1032,
                    "jsonrpc": "2.0",
                    "method": "private/get_order_history_by_instrument",
                    "params": {
                      "count": 1,
                      "instrument_name": "BTC-PERPETUAL"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetOrderHistoryResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_order_history_by_instrument",
          "metadata": {
            "keywords": [
              "private/get_order_history_by_instrument",
              "instrument_name",
              "count",
              "offset",
              "include_old",
              "include_unfilled",
              "with_continuation",
              "continuation",
              "historical",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "time_in_force",
              "is_rebalance",
              "is_liquidation",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "price",
              "label",
              "post_only",
              "reject_post_only",
              "reduce_only",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "display_amount",
              "amount",
              "contracts",
              "filled_amount",
              "average_price",
              "advanced",
              "implv",
              "usd",
              "triggered",
              "trigger",
              "trigger_price",
              "trigger_offset",
              "trigger_reference_price",
              "block_trade",
              "mmp",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "trigger_fill_condition",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco"
            ],
            "og:title": "private/get_order_history_by_instrument",
            "title": "private/get_order_history_by_instrument"
          }
        }
      }
    },
    "/private/get_order_margin_by_ids": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves the initial margin requirements for one or more orders identified by their order IDs. Initial margin is the amount of funds required to open a position with these orders.\n\nThis method is useful for calculating margin requirements before placing orders, helping to ensure sufficient funds are available.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_order_margin_by_ids)\n\n",
        "parameters": [
          {
            "description": "Ids of orders",
            "explode": true,
            "in": "query",
            "name": "ids",
            "required": true,
            "schema": {
              "example": [
                "ETH-349280",
                "ETH-349279",
                "ETH-349278"
              ],
              "items": {
                "example": "123456",
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 5625,
                    "jsonrpc": "2.0",
                    "method": "private/get_order_margin_by_ids",
                    "params": {
                      "ids": [
                        "ETH-349280",
                        "ETH-349279",
                        "ETH-349278"
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetOrderMarginByIdsResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_order_margin_by_ids",
          "metadata": {
            "keywords": [
              "private/get_order_margin_by_ids",
              "ids",
              "order_id",
              "initial_margin",
              "initial_margin_currency"
            ],
            "og:title": "private/get_order_margin_by_ids",
            "title": "private/get_order_margin_by_ids"
          }
        }
      }
    },
    "/private/get_order_state": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves the current state of an order identified by its order ID. The response includes order details such as status (open, filled, cancelled), filled amount, remaining amount, price, and other order properties.\n\n**Important Note for Mass Quotes:** Quote orders are order-like structures that don't fully translate to normal orders. When checking order state for quotes, the `amount` field represents the remaining amount, not the original order amount.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_order_state)\n\n",
        "parameters": [
          {
            "description": "The order id",
            "in": "query",
            "name": "order_id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/order_id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 4316,
                    "jsonrpc": "2.0",
                    "method": "private/get_order_state",
                    "params": {
                      "order_id": "ETH-331562"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetOrderStateResponse"
          },
          "400": {
            "$ref": "#/components/responses/ErrorMessageResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_order_state",
          "metadata": {
            "keywords": [
              "private/get_order_state",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "time_in_force",
              "is_rebalance",
              "is_liquidation",
              "instrument_name",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "price",
              "label",
              "post_only",
              "reject_post_only",
              "reduce_only",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "display_amount",
              "amount",
              "contracts",
              "filled_amount",
              "average_price",
              "advanced",
              "implv",
              "usd",
              "triggered",
              "trigger",
              "trigger_price",
              "trigger_offset",
              "trigger_reference_price",
              "block_trade",
              "mmp",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "trigger_fill_condition",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco"
            ],
            "og:title": "private/get_order_state",
            "title": "private/get_order_state"
          }
        }
      }
    },
    "/private/get_order_state_by_label": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves the state of recent orders that have a specific label. This is useful for tracking orders that share the same label, which is helpful for managing related orders.\n\nResults are filtered by currency and label. The response includes order details such as status, filled amount, remaining amount, and other order properties for all orders with the specified label.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_order_state_by_label)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "user defined label for the order (maximum 64 characters)",
            "in": "query",
            "name": "label",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 4316,
                    "jsonrpc": "2.0",
                    "method": "private/get_order_state_by_label",
                    "params": {
                      "currency": "ETH",
                      "label": "fooBar"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetOrderStateByLabelResponse"
          },
          "400": {
            "$ref": "#/components/responses/ErrorMessageResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_order_state_by_label",
          "metadata": {
            "keywords": [
              "private/get_order_state_by_label",
              "currency",
              "label",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "time_in_force",
              "is_rebalance",
              "is_liquidation",
              "instrument_name",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "price",
              "post_only",
              "reject_post_only",
              "reduce_only",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "display_amount",
              "amount",
              "contracts",
              "filled_amount",
              "average_price",
              "advanced",
              "implv",
              "usd",
              "triggered",
              "trigger",
              "trigger_price",
              "trigger_offset",
              "trigger_reference_price",
              "block_trade",
              "mmp",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "trigger_fill_condition",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco"
            ],
            "og:title": "private/get_order_state_by_label",
            "title": "private/get_order_state_by_label"
          }
        }
      }
    },
    "/private/get_position": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:accounts:read"
            ]
          }
        ],
        "description": "Retrieves the open position for a specific instrument. Returns detailed position information including size, average entry price, mark price, unrealized P&L, initial margin, maintenance margin, and other position-related metrics.\n\nIf no position exists for the specified instrument, the response will indicate a zero position.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_position)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 404,
                    "jsonrpc": "2.0",
                    "method": "private/get_position",
                    "params": {
                      "instrument_name": "BTC-PERPETUAL"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetPositionResponse"
          },
          "400": {
            "$ref": "#/components/responses/ErrorMessageResponse"
          }
        },
        "tags": [
          "Account Management",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/account-management/private-get_position",
          "metadata": {
            "keywords": [
              "private/get_position",
              "instrument_name",
              "kind",
              "average_price",
              "direction",
              "mark_price",
              "delta",
              "gamma",
              "vega",
              "theta",
              "index_price",
              "initial_margin",
              "maintenance_margin",
              "settlement_price",
              "total_profit_loss",
              "floating_profit_loss",
              "realized_profit_loss",
              "size",
              "size_currency",
              "average_price_usd",
              "floating_profit_loss_usd",
              "leverage",
              "realized_funding",
              "interest_value",
              "estimated_liquidation_price",
              "open_orders_margin"
            ],
            "og:title": "private/get_position",
            "title": "private/get_position"
          }
        }
      }
    },
    "/private/get_positions": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:accounts:read"
            ]
          }
        ],
        "description": "Retrieves all open positions for the authenticated account. Returns position details including size, average entry price, mark price, unrealized P&L, initial margin, maintenance margin, and other position-related information.\n\nResults can be filtered by currency and instrument kind (future, option, etc.). To retrieve positions for a specific subaccount, use the `subaccount_id` parameter.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_positions)\n\n",
        "parameters": [
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/currency_with_any",
              "example": "BTC"
            }
          },
          {
            "description": "Kind filter on positions",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind_without_spot",
              "example": "future"
            }
          },
          {
            "description": "The user id for the subaccount",
            "in": "query",
            "name": "subaccount_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 2236,
                    "jsonrpc": "2.0",
                    "method": "private/get_positions",
                    "params": {
                      "currency": "BTC",
                      "kind": "future"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetPositionsResponse"
          },
          "400": {
            "$ref": "#/components/responses/ErrorMessageResponse"
          }
        },
        "tags": [
          "Account Management",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/account-management/private-get_positions",
          "metadata": {
            "keywords": [
              "private/get_positions",
              "currency",
              "kind",
              "subaccount_id",
              "instrument_name",
              "average_price",
              "direction",
              "mark_price",
              "delta",
              "gamma",
              "vega",
              "theta",
              "index_price",
              "initial_margin",
              "maintenance_margin",
              "settlement_price",
              "total_profit_loss",
              "floating_profit_loss",
              "realized_profit_loss",
              "size",
              "size_currency",
              "average_price_usd",
              "floating_profit_loss_usd",
              "leverage",
              "realized_funding",
              "interest_value",
              "estimated_liquidation_price",
              "open_orders_margin"
            ],
            "og:title": "private/get_positions",
            "title": "private/get_positions"
          }
        }
      }
    },
    "/private/get_settlement_history_by_currency": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves settlement, delivery, and bankruptcy events that have affected your account for a specific currency. Settlements occur when futures or options contracts expire and are settled at the delivery price.\n\nResults can be filtered by settlement type and timestamp. Use pagination parameters (`count` and `continuation`) to retrieve large settlement histories. This data is useful for tracking account-affecting settlement events and understanding how contract expirations impact your account.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_settlement_history_by_currency)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Settlement type",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/settlement_type"
            }
          },
          {
            "description": "Number of requested items, default - `20`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Continuation token for pagination",
            "in": "query",
            "name": "continuation",
            "required": false,
            "schema": {
              "example": "xY7T6cutS3t2B9YtaDkE6TS379oKnkzTvmEDUnEUP2Msa9xKWNNaT",
              "type": "string"
            }
          },
          {
            "description": "The latest timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "search_start_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 8304,
                    "jsonrpc": "2.0",
                    "method": "private/get_settlement_history_by_currency",
                    "params": {
                      "count": 1,
                      "currency": "BTC",
                      "type": "delivery"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateSettlementResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_settlement_history_by_currency",
          "metadata": {
            "keywords": [
              "private/get_settlement_history_by_currency",
              "currency",
              "type",
              "count",
              "continuation",
              "search_start_timestamp",
              "settlements",
              "funding",
              "funded",
              "index_price",
              "instrument_name",
              "mark_price",
              "position",
              "profit_loss",
              "session_bankruptcy",
              "session_profit_loss",
              "session_tax",
              "session_tax_rate",
              "socialized",
              "timestamp"
            ],
            "og:title": "private/get_settlement_history_by_currency",
            "title": "private/get_settlement_history_by_currency"
          }
        }
      }
    },
    "/private/get_settlement_history_by_instrument": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves settlement, delivery, and bankruptcy events for a specific instrument that have affected your account. Settlements occur when futures or options contracts expire and are settled at the delivery price.\n\nResults can be filtered by settlement type and timestamp. Use pagination parameters (`count` and `continuation`) to retrieve large settlement histories. This method is useful for tracking settlement events for a specific instrument.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_settlement_history_by_instrument)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "Settlement type",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/settlement_type"
            }
          },
          {
            "description": "Number of requested items, default - `20`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Continuation token for pagination",
            "in": "query",
            "name": "continuation",
            "required": false,
            "schema": {
              "example": "xY7T6cutS3t2B9YtaDkE6TS379oKnkzTvmEDUnEUP2Msa9xKWNNaT",
              "type": "string"
            }
          },
          {
            "description": "The latest timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "search_start_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 2192,
                    "jsonrpc": "2.0",
                    "method": "private/get_settlement_history_by_instrument",
                    "params": {
                      "count": 1,
                      "instrument_name": "ETH-22FEB19",
                      "type": "settlement"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateSettlementResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_settlement_history_by_instrument",
          "metadata": {
            "keywords": [
              "private/get_settlement_history_by_instrument",
              "instrument_name",
              "type",
              "count",
              "continuation",
              "search_start_timestamp",
              "settlements",
              "funding",
              "funded",
              "index_price",
              "mark_price",
              "position",
              "profit_loss",
              "session_bankruptcy",
              "session_profit_loss",
              "session_tax",
              "session_tax_rate",
              "socialized",
              "timestamp"
            ],
            "og:title": "private/get_settlement_history_by_instrument",
            "title": "private/get_settlement_history_by_instrument"
          }
        }
      }
    },
    "/private/get_transaction_log": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves a detailed transaction log for the authenticated account. The log includes all account activities such as trades, deposits, withdrawals, transfers, fees, and other balance-affecting operations.\n\nResults can be filtered by currency, time range, and transaction type. Use the `continuation` parameter for pagination when retrieving large transaction histories. To retrieve transactions for a specific subaccount, use the `subaccount_id` parameter.\n\n**History Limit:** This API method has **no time limit** - users can query transaction history back to account creation. Note that the CSV export feature available on the website is year-limited to 2023. \n\n**Note - This method has distinct API rate limiting requirements:** Sustained rate: 1 request/second. For more information, see [Rate Limits](https://support.deribit.com/hc/en-us/articles/25944617523357-Rate-Limits).\n\n**📖 Related Support Article:** [Transaction log](https://support.deribit.com/hc/en-us/articles/25944587269021-Transaction-log)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_transaction_log)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/wallet_currency"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "start_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "end_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The following keywords can be used to filter the results: `trade`, `maker`, `taker`, `open`, `close`, `liquidation`, `buy`, `sell`, `withdrawal`, `delivery`, `settlement`, `deposit`, `transfer`, `option`, `future`, `correction`, `block_trade`, `swap`. Plus withdrawal or transfer addresses",
            "in": "query",
            "name": "query",
            "required": false,
            "schema": {
              "example": "settlement",
              "type": "string"
            }
          },
          {
            "description": "Count of transaction log entries returned, default - `100`, maximum - `250`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 250,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Id of a subaccount",
            "in": "query",
            "name": "subaccount_id",
            "required": false,
            "schema": {
              "example": 9,
              "type": "integer"
            }
          },
          {
            "description": "Continuation token for pagination",
            "in": "query",
            "name": "continuation",
            "required": false,
            "schema": {
              "example": 429946,
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 4,
                    "jsonrpc": "2.0",
                    "method": "private/get_transaction_log",
                    "params": {
                      "count": 5,
                      "currency": "BTC",
                      "end_timestamp": "1613660407000",
                      "start_timestamp": "1613657734000"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetTransactionLogResponse"
          }
        },
        "tags": [
          "Account Management",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/account-management/private-get_transaction_log",
          "metadata": {
            "keywords": [
              "private/get_transaction_log",
              "currency",
              "start_timestamp",
              "end_timestamp",
              "query",
              "count",
              "subaccount_id",
              "continuation",
              "logs",
              "timestamp",
              "user_id",
              "username",
              "commission",
              "cashflow",
              "balance",
              "change",
              "user_seq",
              "type",
              "info",
              "equity",
              "mark_price",
              "settlement_price",
              "index_price",
              "instrument_name",
              "position",
              "side",
              "amount",
              "price",
              "price_currency",
              "trade_id",
              "order_id",
              "user_role",
              "fee_role",
              "profit_as_cashflow",
              "interest_pl",
              "block_rfq_id",
              "ip",
              "session_rpl",
              "session_upl",
              "total_interest_pl",
              "contracts"
            ],
            "og:title": "private/get_transaction_log",
            "title": "private/get_transaction_log"
          }
        }
      }
    },
    "/private/get_trigger_order_history": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves a detailed log of all trigger orders (stop orders, take-profit orders, etc.) for the authenticated account. The log includes trigger order creation, activation, execution, and cancellation events.\n\nResults can be filtered by currency and instrument name. Use pagination parameters (`count` and `continuation`) to retrieve large trigger order histories. This is useful for tracking trigger order activity and debugging trigger order behavior.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_trigger_order_history)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "Number of requested items, default - `20`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Continuation token for pagination",
            "in": "query",
            "name": "continuation",
            "required": false,
            "schema": {
              "example": "xY7T6cutS3t2B9YtaDkE6TS379oKnkzTvmEDUnEUP2Msa9xKWNNaT",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 2552,
                    "jsonrpc": "2.0",
                    "method": "private/get_trigger_order_history",
                    "params": {
                      "count": 10,
                      "currency": "ETH"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetTriggerOrderHistoryResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_trigger_order_history",
          "metadata": {
            "keywords": [
              "private/get_trigger_order_history",
              "currency",
              "instrument_name",
              "count",
              "continuation",
              "entries",
              "timestamp",
              "trigger",
              "trigger_price",
              "trigger_offset",
              "trigger_order_id",
              "order_id",
              "order_state",
              "request",
              "direction",
              "price",
              "amount",
              "last_update_timestamp",
              "reduce_only",
              "post_only",
              "order_type",
              "label",
              "is_secondary_oto",
              "oco_ref",
              "source"
            ],
            "og:title": "private/get_trigger_order_history",
            "title": "private/get_trigger_order_history"
          }
        }
      }
    },
    "/private/get_user_trades_by_currency": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves the latest user trades that have occurred for instruments in a specific currency. Returns trade details including price, amount, direction, timestamp, trade ID, and order ID for all instruments in the currency.\n\nResults can be filtered by instrument kind, trade ID range, or timestamp range. Use the `count` parameter to limit the number of trades returned, and `sorting` to control the order. To retrieve trades for a specific subaccount, use the `subaccount_id` parameter. Use `historical` to retrieve historical trade data.\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_user_trades_by_currency)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Instrument kind, `\"combo\"` for any combo or `\"any\"` for all. If not provided instruments of all kinds are considered",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind_with_combo_all"
            }
          },
          {
            "description": "The ID of the first trade to be returned. Number for BTC trades, or hyphen name in ex. `\"ETH-15\"` # `\"ETH_USDC-16\"`",
            "in": "query",
            "name": "start_id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/trade_id"
            }
          },
          {
            "description": "The ID of the last trade to be returned. Number for BTC trades, or hyphen name in ex. `\"ETH-15\"` # `\"ETH_USDC-16\"`",
            "in": "query",
            "name": "end_id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/trade_id"
            }
          },
          {
            "description": "Number of requested items, default - `10`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch). When param is provided trades are returned from the earliest",
            "in": "query",
            "name": "start_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch). Only one of params: start_timestamp, end_timestamp is truly required",
            "in": "query",
            "name": "end_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Direction of results sorting (`default` value means no sorting, results will be returned in order in which they left the database)",
            "in": "query",
            "name": "sorting",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/sorting"
            }
          },
          {
            "description": "Determines whether historical trade and order records should be retrieved.\n\n- `false` (default): Returns recent records: orders for 30 min, trades for 24h.\n- `true`: Fetches historical records, available after a short delay due to indexing. Recent data is not included.\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n",
            "in": "query",
            "name": "historical",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "The user id for the subaccount",
            "in": "query",
            "name": "subaccount_id",
            "required": false,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 9367,
                    "jsonrpc": "2.0",
                    "method": "private/get_user_trades_by_currency",
                    "params": {
                      "count": 2,
                      "currency": "ETH",
                      "start_id": "ETH-34066"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetUserTradesHistoryResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_user_trades_by_currency",
          "metadata": {
            "keywords": [
              "private/get_user_trades_by_currency",
              "currency",
              "kind",
              "start_id",
              "end_id",
              "count",
              "start_timestamp",
              "end_timestamp",
              "sorting",
              "historical",
              "subaccount_id",
              "trades",
              "has_more",
              "trade_id",
              "trade_seq",
              "instrument_name",
              "timestamp",
              "order_type",
              "advanced",
              "order_id",
              "matching_id",
              "direction",
              "tick_direction",
              "index_price",
              "price",
              "amount",
              "contracts",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "label",
              "state",
              "block_trade_id",
              "block_rfq_id",
              "block_rfq_quote_id",
              "reduce_only",
              "post_only",
              "mmp",
              "risk_reducing",
              "api",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "quote_set_id",
              "quote_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/get_user_trades_by_currency",
            "title": "private/get_user_trades_by_currency"
          }
        }
      }
    },
    "/private/get_user_trades_by_currency_and_time": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves the latest user trades that have occurred for instruments in a specific currency within a specified time range. Returns trade details including price, amount, direction, timestamp, trade ID, and order ID for all instruments in the currency.\n\nResults can be filtered by instrument kind. Use the `count` parameter to limit the number of trades returned, and `sorting` to control the order. Use `historical` to retrieve historical trade data. This method is useful for analyzing trading activity across a currency over specific time periods.\n\nMain accounts may use the `subaccount_id` parameter to retrieve trade data for a specific subaccount (requires `mainaccount` scope).\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_user_trades_by_currency_and_time)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Instrument kind, `\"combo\"` for any combo or `\"any\"` for all. If not provided instruments of all kinds are considered",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind_with_combo_all"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch). When param is provided trades are returned from the earliest",
            "in": "query",
            "name": "start_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch). Only one of params: start_timestamp, end_timestamp is truly required",
            "in": "query",
            "name": "end_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Number of requested items, default - `10`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Direction of results sorting (`default` value means no sorting, results will be returned in order in which they left the database)",
            "in": "query",
            "name": "sorting",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/sorting"
            }
          },
          {
            "description": "Determines whether historical trade and order records should be retrieved.\n\n- `false` (default): Returns recent records: orders for 30 min, trades for 24h.\n- `true`: Fetches historical records, available after a short delay due to indexing. Recent data is not included.\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n",
            "in": "query",
            "name": "historical",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Id of a subaccount",
            "in": "query",
            "name": "subaccount_id",
            "required": false,
            "schema": {
              "example": 9,
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 9292,
                    "jsonrpc": "2.0",
                    "method": "private/get_user_trades_by_currency_and_time",
                    "params": {
                      "count": 2,
                      "currency": "BTC",
                      "end_timestamp": 1510480630731,
                      "start_timestamp": 1590480630731
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetUserTradesHistoryResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_user_trades_by_currency_and_time",
          "metadata": {
            "keywords": [
              "private/get_user_trades_by_currency_and_time",
              "currency",
              "kind",
              "start_timestamp",
              "end_timestamp",
              "count",
              "sorting",
              "historical",
              "subaccount_id",
              "trades",
              "has_more",
              "trade_id",
              "trade_seq",
              "instrument_name",
              "timestamp",
              "order_type",
              "advanced",
              "order_id",
              "matching_id",
              "direction",
              "tick_direction",
              "index_price",
              "price",
              "amount",
              "contracts",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "label",
              "state",
              "block_trade_id",
              "block_rfq_id",
              "block_rfq_quote_id",
              "reduce_only",
              "post_only",
              "mmp",
              "risk_reducing",
              "api",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "quote_set_id",
              "quote_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/get_user_trades_by_currency_and_time",
            "title": "private/get_user_trades_by_currency_and_time"
          }
        }
      }
    },
    "/private/get_user_trades_by_instrument": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves the latest user trades that have occurred for a specific instrument. Returns trade details including price, amount, direction, timestamp, trade ID, and order ID.\n\nResults can be filtered by sequence number range or timestamp range. Use the `count` parameter to limit the number of trades returned, and `sorting` to control the order (ascending or descending by trade ID). Use `historical` to retrieve historical trade data.\n\nMain accounts may use the `subaccount_id` parameter to retrieve trade data for a specific subaccount (requires `mainaccount` scope).\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_user_trades_by_instrument)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "The sequence number of the first trade to be returned",
            "in": "query",
            "name": "start_seq",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "The sequence number of the last trade to be returned",
            "in": "query",
            "name": "end_seq",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Number of requested items, default - `10`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch). When param is provided trades are returned from the earliest",
            "in": "query",
            "name": "start_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch). Only one of params: start_timestamp, end_timestamp is truly required",
            "in": "query",
            "name": "end_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Determines whether historical trade and order records should be retrieved.\n\n- `false` (default): Returns recent records: orders for 30 min, trades for 24h.\n- `true`: Fetches historical records, available after a short delay due to indexing. Recent data is not included.\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n",
            "in": "query",
            "name": "historical",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Direction of results sorting (`default` value means no sorting, results will be returned in order in which they left the database)",
            "in": "query",
            "name": "sorting",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/sorting"
            }
          },
          {
            "description": "Id of a subaccount",
            "in": "query",
            "name": "subaccount_id",
            "required": false,
            "schema": {
              "example": 9,
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 5728,
                    "jsonrpc": "2.0",
                    "method": "private/get_user_trades_by_instrument",
                    "params": {
                      "count": 2,
                      "instrument_name": "ETH-PERPETUAL",
                      "start_seq": 1966042
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetUserTradesHistoryResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_user_trades_by_instrument",
          "metadata": {
            "keywords": [
              "private/get_user_trades_by_instrument",
              "instrument_name",
              "start_seq",
              "end_seq",
              "count",
              "start_timestamp",
              "end_timestamp",
              "historical",
              "sorting",
              "subaccount_id",
              "trades",
              "has_more",
              "trade_id",
              "trade_seq",
              "timestamp",
              "order_type",
              "advanced",
              "order_id",
              "matching_id",
              "direction",
              "tick_direction",
              "index_price",
              "price",
              "amount",
              "contracts",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "label",
              "state",
              "block_trade_id",
              "block_rfq_id",
              "block_rfq_quote_id",
              "reduce_only",
              "post_only",
              "mmp",
              "risk_reducing",
              "api",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "quote_set_id",
              "quote_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/get_user_trades_by_instrument",
            "title": "private/get_user_trades_by_instrument"
          }
        }
      }
    },
    "/private/get_user_trades_by_instrument_and_time": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves the latest user trades that have occurred for a specific instrument within a specified time range. Returns trade details including price, amount, direction, timestamp, trade ID, and order ID.\n\nUse the `count` parameter to limit the number of trades returned, and `sorting` to control the order (ascending or descending by trade ID). Use `historical` to retrieve historical trade data. This method is useful for analyzing trading activity over specific time periods.\n\nMain accounts may use the `subaccount_id` parameter to retrieve trade data for a specific subaccount (requires `mainaccount` scope).\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_user_trades_by_instrument_and_time)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch). When param is provided trades are returned from the earliest",
            "in": "query",
            "name": "start_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch). Only one of params: start_timestamp, end_timestamp is truly required",
            "in": "query",
            "name": "end_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Number of requested items, default - `10`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Direction of results sorting (`default` value means no sorting, results will be returned in order in which they left the database)",
            "in": "query",
            "name": "sorting",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/sorting"
            }
          },
          {
            "description": "Determines whether historical trade and order records should be retrieved.\n\n- `false` (default): Returns recent records: orders for 30 min, trades for 24h.\n- `true`: Fetches historical records, available after a short delay due to indexing. Recent data is not included.\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n",
            "in": "query",
            "name": "historical",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Id of a subaccount",
            "in": "query",
            "name": "subaccount_id",
            "required": false,
            "schema": {
              "example": 9,
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 276,
                    "jsonrpc": "2.0",
                    "method": "private/get_user_trades_by_instrument_and_time",
                    "params": {
                      "count": 2,
                      "end_timestamp": 1590480872894,
                      "instrument_name": "BTC-PERPETUAL",
                      "start_timestamp": 1590470872894
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetUserTradesHistoryResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_user_trades_by_instrument_and_time",
          "metadata": {
            "keywords": [
              "private/get_user_trades_by_instrument_and_time",
              "instrument_name",
              "start_timestamp",
              "end_timestamp",
              "count",
              "sorting",
              "historical",
              "subaccount_id",
              "trades",
              "has_more",
              "trade_id",
              "trade_seq",
              "timestamp",
              "order_type",
              "advanced",
              "order_id",
              "matching_id",
              "direction",
              "tick_direction",
              "index_price",
              "price",
              "amount",
              "contracts",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "label",
              "state",
              "block_trade_id",
              "block_rfq_id",
              "block_rfq_quote_id",
              "reduce_only",
              "post_only",
              "mmp",
              "risk_reducing",
              "api",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "quote_set_id",
              "quote_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/get_user_trades_by_instrument_and_time",
            "title": "private/get_user_trades_by_instrument_and_time"
          }
        }
      }
    },
    "/private/get_user_trades_by_order": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Retrieves all trades that were executed from a specific order. When an order is filled, it may result in multiple trades (partial fills). This method returns all trades associated with a given order ID.\n\nResults can be sorted in ascending or descending order by trade ID. Use `historical` to retrieve historical trade data. This is useful for tracking how an order was filled and analyzing execution quality.\n\nMain accounts may use the `subaccount_id` parameter to retrieve trade data for a specific subaccount (requires `mainaccount` scope).\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fget_user_trades_by_order)\n\n",
        "parameters": [
          {
            "description": "The order id",
            "in": "query",
            "name": "order_id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/order_id"
            }
          },
          {
            "description": "Direction of results sorting (`default` value means no sorting, results will be returned in order in which they left the database)",
            "in": "query",
            "name": "sorting",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/sorting"
            }
          },
          {
            "description": "Determines whether historical trade and order records should be retrieved.\n\n- `false` (default): Returns recent records: orders for 30 min, trades for 24h.\n- `true`: Fetches historical records, available after a short delay due to indexing. Recent data is not included.\n\n**📖 Related Article:** [Accessing Historical Trades and Orders Using API](https://docs.deribit.com/articles/accessing-historical-trades-orders)\n",
            "in": "query",
            "name": "historical",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Id of a subaccount",
            "in": "query",
            "name": "subaccount_id",
            "required": false,
            "schema": {
              "example": 9,
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 3466,
                    "jsonrpc": "2.0",
                    "method": "private/get_user_trades_by_order",
                    "params": {
                      "order_id": "ETH-584830574"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateGetUserTradesByOrderResponse"
          }
        },
        "tags": [
          "Trading",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-get_user_trades_by_order",
          "metadata": {
            "keywords": [
              "private/get_user_trades_by_order",
              "order_id",
              "sorting",
              "historical",
              "subaccount_id"
            ],
            "og:title": "private/get_user_trades_by_order",
            "title": "private/get_user_trades_by_order"
          }
        }
      }
    },
    "/private/invalidate_block_trade_signature": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Invalidates a block trade signature, effectively cancelling the block trade. This can be called at any time before [private/execute_block_trade](https://docs.deribit.com/api-reference/block-trade/private-execute_block_trade) is called.\n\n**📖 Related Article:** [Block Trading](https://docs.deribit.com/articles/block-trading-api)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Finvalidate_block_trade_signature)\n\n",
        "parameters": [
          {
            "description": "Signature of block trade that will be invalidated",
            "in": "query",
            "name": "signature",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/block_trade_signature"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/invalidate_block_trade_signature",
                    "params": {
                      "signature": "1565173369982.1M9tO0Q-.z9n9WyZUU5op9pEz6Jtd2CI71QxQMMsCZAexnIfK9HQRT1pKH3clxeIbY7Bqm-yMcWIoE3IfCDPW5VEdiN-6oS0YkKUyXPD500MUf3ULKhfkmH81EZs"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/OkResponse"
          }
        },
        "tags": [
          "Block Trade",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-trade/private-invalidate_block_trade_signature",
          "metadata": {
            "keywords": [
              "private/invalidate_block_trade_signature",
              "signature"
            ],
            "og:title": "private/invalidate_block_trade_signature",
            "title": "private/invalidate_block_trade_signature"
          }
        }
      }
    },
    "/private/logout": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:user:read"
            ]
          }
        ],
        "description": "Gracefully terminate the current WebSocket connection and optionally invalidate all tokens associated with the session.\n\nThis method provides a clean way to close WebSocket connections while preserving active orders when [**Cancel On Disconnect (COD)**](https://docs.deribit.com/api-reference/session-management/private-enable_cancel_on_disconnect) is enabled.\n\n**Use Cases:**\n\n- **Clean Shutdown:** Properly close WebSocket connections during application shutdown or restart\n- **Order Preservation:** Close connections without triggering order cancellations when COD is enabled\n- **Session Management:** Invalidate tokens to ensure security when closing connections\n- **Maintenance Operations:** Temporarily disconnect for system maintenance without affecting trading positions\n\n**Cancel On Disconnect (COD) Behavior:**\n\nWhen Cancel On Disconnect is enabled for your connection, this method provides a safe way to close the connection without triggering automatic order cancellations. This is different from other disconnection scenarios:\n\n- **Graceful logout** (this method): Orders are **NOT cancelled**, even if COD is enabled\n- **Unexpected disconnection:** Orders are **cancelled** if COD is enabled\n- **Inactivity timeout:** Orders are **cancelled** if COD is enabled\n- **Heartbeat failure:** Orders are **cancelled** if COD is enabled\n\nThis distinction allows you to perform planned disconnections (e.g., for maintenance, updates, or reconnection) while preserving your active orders.\n\n**WebSocket Only:**\n\nThis method is designed exclusively for WebSocket connections. Attempting to use it via REST/HTTP will result in a 400 error response.\n\n**Note:** This method has no response. The WebSocket connection is closed immediately after the request is processed.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Flogout)\n\n",
        "parameters": [
          {
            "description": "<b>Token Invalidation:</b> By default, all tokens created during the current session are invalidated when you call this method. You can control this behavior using this parameter: <ul><li><b>invalidate_token=true</b> (default): All session tokens are invalidated, requiring re-authentication for new connections</li><li><b>invalidate_token=false</b>: Tokens remain valid, allowing you to reconnect using the same authentication</li></ul>",
            "in": "query",
            "name": "invalidate_token",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 42,
                    "jsonrpc": "2.0",
                    "method": "private/logout",
                    "params": {
                      "access_token": "1529453804065.h2QrBgvn.oS36pCOmuK9EX7954lzCSkUioEtTMg7F5ShToM0ZfYlqU05OquXkQIe2_DDEkPhzmoPp1fBp0ycXShR_0jf-SMSXEdVqxLRWuOw-_StG5BMjToiAl27CbHY4P92MPhlMblTOtTImE81-5dFdyDVydpBwmlfKM3OSQ39kulP9bbfw-2jhyegOL0AgqJTY_tj554oHCQFTbq0A0ZWukukmxL2yu6iy34XdzaJB26Igy-3UxGBMwFu53EhjKBweh7xyP2nDm57-wybndJMtSyTGDXH3vjBVclo1iup5yRP",
                      "invalidate_token": true
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "description": "Connection closed"
          }
        },
        "tags": [
          "Authentication",
          "WebSocket Only",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/authentication/private-logout",
          "metadata": {
            "keywords": [
              "private/logout",
              "invalidate_token"
            ],
            "og:title": "private/logout",
            "title": "private/logout"
          }
        }
      }
    },
    "/private/pme/simulate": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:accounts:read"
            ]
          }
        ],
        "description": "Calculates the Extended Risk Matrix (ERM) and detailed margin information for Portfolio Margin accounts. The ERM provides a comprehensive view of portfolio risk across different scenarios and market conditions.\n\nYou can calculate the ERM for a specific currency or for the entire Cross-Collateral portfolio. The response includes margin requirements, risk metrics, and scenario analysis that helps assess portfolio risk under various market conditions.\n\nUse this method to understand margin requirements and risk exposure before making trading decisions in a Portfolio Margin account.\n\n**📖 Related Article:** [Portfolio Margin](https://support.deribit.com/hc/en-us/articles/25944756247837-Portfolio-Margin)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fpme%2Fsimulate)\n\n",
        "parameters": [
          {
            "description": "The currency for which the Extended Risk Matrix will be calculated. Use `CROSS` for Cross Collateral simulation.",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/pme_currency",
              "example": "BTC"
            }
          },
          {
            "description": "If `true`, adds simulated positions to current positions, otherwise uses only simulated positions. By default `true`",
            "in": "query",
            "name": "add_positions",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Object with positions in following form: `{InstrumentName1: Position1, InstrumentName2: Position2...}`, for example `{\"BTC-PERPETUAL\": -1.0}` (or corresponding URI-encoding for GET). Size in base currency.",
            "in": "query",
            "name": "simulated_positions",
            "required": false,
            "schema": {
              "description": "JSON string containing: object data",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 2255,
                    "jsonrpc": "2.0",
                    "method": "private/pme/simulate",
                    "params": {
                      "currency": "BTC"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivatePmeSimulateResponse"
          }
        },
        "tags": [
          "Account Management",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/account-management/private-simulate",
          "metadata": {
            "keywords": [
              "private/pme/simulate",
              "currency",
              "add_positions",
              "simulated_positions"
            ],
            "og:title": "private/pme/simulate",
            "title": "private/pme/simulate"
          }
        }
      }
    },
    "/private/reject_block_trade": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Rejects a pending block trade. `nonce` and `timestamp` are used to identify the block trade while `role` should be opposite to the trading counterparty.\n\nUse [private/get_block_trade_requests](https://docs.deribit.com/api-reference/block-trade/private-get_block_trade_requests) to retrieve pending block trades that require approval.\n\nTo use the block trade approval feature, an [additional API key setting feature](https://docs.deribit.com/articles/creating-api-key#block-trade-approval-feature) called `enabled_features: block_trade_approval` is required. This key has to be given to the broker/registered partner who performs the trades on behalf of the user for the feature to be active. If the user wants to approve the trade, they must approve it from a different API key that doesn't have this feature enabled.\n\n**📖 Related Article:** [Block Trading](https://docs.deribit.com/articles/block-trading-api)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Freject_block_trade)\n\n",
        "parameters": [
          {
            "description": "Timestamp, shared with other party (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Nonce, shared with other party",
            "in": "query",
            "name": "nonce",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/nonce"
            }
          },
          {
            "description": "Describes if user wants to be maker or taker of trades",
            "in": "query",
            "name": "role",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/role"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/reject_block_trade",
                    "params": {
                      "nonce": "bt-468nha",
                      "role": "maker",
                      "timestamp": 1711468813551
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/OkResponse"
          }
        },
        "tags": [
          "Block Trade",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-trade/private-reject_block_trade",
          "metadata": {
            "keywords": [
              "private/reject_block_trade",
              "timestamp",
              "nonce",
              "role"
            ],
            "og:title": "private/reject_block_trade",
            "title": "private/reject_block_trade"
          }
        }
      }
    },
    "/private/sell": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Places a sell order for an instrument. Supports various order types including limit, market, stop, and advanced order types (stop-limit, take-profit, take-profit-limit, trailing-stop, etc.).\n\nYou can specify order parameters such as price, quantity, time-in-force, post-only, reduce-only, and trigger conditions. Orders can be labeled for easier management and tracking. Market Maker Protection (MMP) can be enabled to prevent excessive quoting.\n\n**📖 Related Article:** [Order Management Best Practices](https://docs.deribit.com/articles/order-management-best-practices)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fsell)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin. The `amount` is a mandatory parameter if `contracts` parameter is missing. If both `contracts` and `amount` parameter are passed they must match each other otherwise error is returned.",
            "in": "query",
            "name": "amount",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "It represents the requested order size in contract units and can be passed instead of `amount`. The `contracts` is a mandatory parameter if `amount` parameter is missing. If both `contracts` and `amount` parameter are passed they must match each other otherwise error is returned.",
            "in": "query",
            "name": "contracts",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "The order type, default: `\"limit\"`",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "enum": [
                "limit",
                "stop_limit",
                "take_limit",
                "market",
                "stop_market",
                "take_market",
                "market_limit",
                "trailing_stop"
              ],
              "type": "string"
            }
          },
          {
            "description": "user defined label for the order (maximum 64 characters)",
            "in": "query",
            "name": "label",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "<p>The order price in base currency (Only for limit and stop_limit orders)</p> <p>When adding an order with advanced=usd, the field price should be the option price value in USD.</p> <p>When adding an order with advanced=implv, the field price should be a value of implied volatility in percentages. For example,  price=100, means implied volatility of 100%</p>",
            "in": "query",
            "name": "price",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "<p>Specifies how long the order remains in effect. Default `\"good_til_cancelled\"`</p> <ul> <li>`\"good_til_cancelled\"` - unfilled order remains in order book until cancelled</li> <li>`\"good_til_day\"` - unfilled order remains in order book till the end of the trading session</li> <li>`\"fill_or_kill\"` - execute a transaction immediately and completely or not at all</li> <li>`\"immediate_or_cancel\"` - execute a transaction immediately, and any portion of the order that cannot be immediately filled is cancelled</li> </ul>",
            "in": "query",
            "name": "time_in_force",
            "required": false,
            "schema": {
              "default": "good_til_cancelled",
              "enum": [
                "good_til_cancelled",
                "good_til_day",
                "fill_or_kill",
                "immediate_or_cancel"
              ],
              "type": "string"
            }
          },
          {
            "description": "Initial display amount for iceberg order. Has to be at least 100 times minimum amount for instrument and ratio of hidden part vs visible part has to be less than 100 as well.",
            "in": "query",
            "name": "display_amount",
            "required": false,
            "schema": {
              "default": 1,
              "type": "number"
            }
          },
          {
            "description": "<p>If true, the order is considered post-only. If the new price would cause the order to be filled immediately (as taker), the price will be changed to be just above the spread.</p> <p>Only valid in combination with time_in_force=`\"good_til_cancelled\"`</p>",
            "in": "query",
            "name": "post_only",
            "required": false,
            "schema": {
              "default": true,
              "type": "boolean"
            }
          },
          {
            "description": "<p>If an order is considered post-only and this field is set to true then the order is put to the order book unmodified or the request is rejected.</p> <p>Only valid in combination with `\"post_only\"` set to true</p>",
            "in": "query",
            "name": "reject_post_only",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "If `true`, the order is considered reduce-only which is intended to only reduce a current position",
            "in": "query",
            "name": "reduce_only",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "Trigger price, required for trigger orders only (Stop-loss or Take-profit orders)",
            "in": "query",
            "name": "trigger_price",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "The maximum deviation from the price peak beyond which the order will be triggered",
            "in": "query",
            "name": "trigger_offset",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "Defines the trigger type. Required for `\"Stop-Loss\"`, `\"Take-Profit\"` and `\"Trailing\"` trigger orders",
            "in": "query",
            "name": "trigger",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/trigger"
            }
          },
          {
            "description": "Advanced option order type. (Only for options. Advanced USD orders are not supported for linear options.)",
            "in": "query",
            "name": "advanced",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/advanced"
            }
          },
          {
            "description": "Order MMP flag, only for order_type 'limit'",
            "in": "query",
            "name": "mmp",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          },
          {
            "description": "Timestamp, when provided server will start processing request in Matching Engine only before given timestamp, in other cases `timed_out` error will be responded. Remember that the given timestamp should be consistent with the server's time, use <a href='#public-get_time'>/public/time</a> method to obtain current server time.",
            "in": "query",
            "name": "valid_until",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "<p>The type of the linked order.</p> <ul> <li>`\"one_triggers_other\"` - Execution of primary order triggers the placement of one or more secondary orders.</li> <li>`\"one_cancels_other\"` -  The execution of one order in a pair automatically cancels the other, typically used to set a stop-loss and take-profit simultaneously.</li> <li>`\"one_triggers_one_cancels_other\"` - The execution of a primary order triggers two secondary orders (a stop-loss and take-profit pair), where the execution of one secondary order cancels the other.</li> </ul>",
            "in": "query",
            "name": "linked_order_type",
            "required": false,
            "schema": {
              "enum": [
                "one_triggers_other",
                "one_cancels_other",
                "one_triggers_one_cancels_other"
              ],
              "type": "string"
            }
          },
          {
            "description": "<p>The fill condition of the linked order (Only for linked order types), default: `first_hit`.</p> <ul> <li>`\"first_hit\"` - any execution of the primary order will fully cancel/place all secondary orders.</li> <li>`\"complete_fill\"` - a complete execution (meaning the primary order no longer exists) will cancel/place the secondary orders.</li> <li>`\"incremental\"` - any fill of the primary order will cause proportional partial cancellation/placement of the secondary order. The amount that will be subtracted/added to the secondary order will be rounded down to the contract size.</li> </ul>",
            "in": "query",
            "name": "trigger_fill_condition",
            "required": false,
            "schema": {
              "default": "first_hit",
              "enum": [
                "first_hit",
                "complete_fill",
                "incremental"
              ],
              "type": "string"
            }
          },
          {
            "description": "List of orders to create or cancel when this order is filled.",
            "explode": true,
            "in": "query",
            "name": "otoco_config",
            "required": false,
            "schema": {
              "items": {
                "properties": {
                  "amount": {
                    "$ref": "#/components/schemas/amount",
                    "description": "It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin."
                  },
                  "direction": {
                    "$ref": "#/components/schemas/direction",
                    "description": "Direction of trade from the maker perspective"
                  },
                  "label": {
                    "description": "user defined label for the order (maximum 64 characters)",
                    "type": "string"
                  },
                  "post_only": {
                    "default": false,
                    "description": "If true, the order is considered post-only. If the new price would cause the order to be filled immediately (as taker), the price will be changed to be just below or above the spread (according to the direction of the order).",
                    "type": "boolean"
                  },
                  "price": {
                    "description": "The order price in base currency (Only for limit and stop_limit orders)",
                    "type": "number"
                  },
                  "reduce_only": {
                    "default": false,
                    "description": "If true, the order is considered reduce-only which is intended to only reduce a current position",
                    "type": "boolean"
                  },
                  "reject_post_only": {
                    "default": false,
                    "description": "If an order is considered post-only and this field is set to true then the order is put to the order book unmodified or the request is rejected.",
                    "type": "boolean"
                  },
                  "time_in_force": {
                    "default": "good_til_cancelled",
                    "description": "Specifies how long the order remains in effect. Default \"good_til_cancelled\"",
                    "enum": [
                      "good_til_cancelled",
                      "good_til_day",
                      "fill_or_kill",
                      "immediate_or_cancel"
                    ],
                    "type": "string"
                  },
                  "trigger": {
                    "$ref": "#/components/schemas/trigger",
                    "description": "Defines the trigger type. Required for \"Stop-Loss\", \"Take-Profit\" and \"Trailing\" trigger orders"
                  },
                  "trigger_offset": {
                    "description": "The maximum deviation from the price peak beyond which the order will be triggered",
                    "type": "number"
                  },
                  "trigger_price": {
                    "description": "Trigger price, required for trigger orders only (Stop-loss or Take-profit orders)",
                    "type": "number"
                  },
                  "type": {
                    "description": "The order type, default: \"limit\"",
                    "enum": [
                      "limit",
                      "stop_limit",
                      "take_limit",
                      "market",
                      "stop_market",
                      "take_market",
                      "market_limit",
                      "trailing_stop"
                    ],
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "style": "form"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 2148,
                    "jsonrpc": "2.0",
                    "method": "private/sell",
                    "params": {
                      "amount": 123,
                      "instrument_name": "ETH-PERPETUAL",
                      "price": 145.61,
                      "trigger": "last_price",
                      "trigger_price": 145,
                      "type": "stop_limit"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateBuyAndSellResponse"
          }
        },
        "tags": [
          "Trading",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/trading/private-sell",
          "metadata": {
            "keywords": [
              "private/sell",
              "instrument_name",
              "amount",
              "contracts",
              "type",
              "label",
              "price",
              "time_in_force",
              "display_amount",
              "post_only",
              "reject_post_only",
              "reduce_only",
              "trigger_price",
              "trigger_offset",
              "trigger",
              "advanced",
              "mmp",
              "valid_until",
              "linked_order_type",
              "trigger_fill_condition",
              "otoco_config",
              "order",
              "trades",
              "order_id",
              "order_state",
              "order_type",
              "original_order_type",
              "is_rebalance",
              "is_liquidation",
              "creation_timestamp",
              "last_update_timestamp",
              "direction",
              "api",
              "web",
              "mobile",
              "refresh_amount",
              "filled_amount",
              "average_price",
              "implv",
              "usd",
              "triggered",
              "trigger_reference_price",
              "block_trade",
              "risk_reducing",
              "replaced",
              "auto_replaced",
              "quote",
              "mmp_group",
              "quote_set_id",
              "quote_id",
              "trigger_order_id",
              "app_name",
              "mmp_cancelled",
              "cancel_reason",
              "oto_order_ids",
              "oco_ref",
              "primary_order_id",
              "is_secondary_oto",
              "is_primary_otoco",
              "trade_id",
              "trade_seq",
              "timestamp",
              "matching_id",
              "tick_direction",
              "index_price",
              "iv",
              "underlying_price",
              "liquidation",
              "liquidity",
              "fee",
              "fee_currency",
              "state",
              "block_trade_id",
              "block_rfq_id",
              "block_rfq_quote_id",
              "profit_loss",
              "mark_price",
              "legs",
              "combo_id",
              "combo_trade_id",
              "trade_allocations",
              "user_id",
              "client_info",
              "client_id",
              "client_link_id",
              "name"
            ],
            "og:title": "private/sell",
            "title": "private/sell"
          }
        }
      }
    },
    "/private/simulate_block_trade": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:transactions:read"
            ]
          }
        ],
        "description": "Checks if a block trade can be executed without actually executing it. Use this method to verify that a block trade will succeed before proceeding with the actual execution.\n\n**📖 Related Article:** [Block Trading](https://docs.deribit.com/articles/block-trading-api)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fsimulate_block_trade)\n\n",
        "parameters": [
          {
            "description": "Describes if user wants to be maker or taker of trades",
            "in": "query",
            "name": "role",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/role"
            }
          },
          {
            "description": "List of trades for block trade",
            "explode": true,
            "in": "query",
            "name": "trades",
            "required": true,
            "schema": {
              "items": {
                "properties": {
                  "amount": {
                    "$ref": "#/components/schemas/amount",
                    "description": "It represents the requested trade size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin."
                  },
                  "direction": {
                    "$ref": "#/components/schemas/direction",
                    "description": "Direction of trade from the maker perspective"
                  },
                  "instrument_name": {
                    "$ref": "#/components/schemas/instrument_name",
                    "description": "Instrument name"
                  },
                  "price": {
                    "description": "Price for trade",
                    "type": "number"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "style": "form"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/simulate_block_trade",
                    "params": {
                      "role": "maker",
                      "trades": [
                        {
                          "amount": 40,
                          "direction": "buy",
                          "instrument_name": "BTC-PERPETUAL",
                          "price": 11624
                        },
                        {
                          "amount": 1.2,
                          "direction": "buy",
                          "instrument_name": "BTC-9AUG19-10250-P",
                          "price": 0.0707
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateSimulateBlockTradeResponse"
          }
        },
        "tags": [
          "Block Trade",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-trade/private-simulate_block_trade",
          "metadata": {
            "keywords": [
              "private/simulate_block_trade",
              "role",
              "trades"
            ],
            "og:title": "private/simulate_block_trade",
            "title": "private/simulate_block_trade"
          }
        }
      }
    },
    "/private/simulate_portfolio": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:accounts:read"
            ]
          }
        ],
        "description": "Calculates portfolio margin requirements and risk metrics for simulated positions or the current portfolio. This method helps you understand margin requirements before opening new positions or assess the impact of potential trades.\n\nYou can simulate adding new positions to the current portfolio or calculate margin for a completely simulated portfolio. The response includes initial margin, maintenance margin, available funds, and other risk metrics.\n\n**Note:** This method has a restricted rate limit of not more than once per second due to the computational complexity of portfolio margin calculations.\n\n**📖 Related Article:** [Portfolio Margin](https://support.deribit.com/hc/en-us/articles/25944756247837-Portfolio-Margin)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fsimulate_portfolio)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency",
              "example": "BTC"
            }
          },
          {
            "description": "If `true`, adds simulated positions to current positions, otherwise uses only simulated positions. By default `true`",
            "in": "query",
            "name": "add_positions",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Object with positions in following form: `{InstrumentName1: Position1, InstrumentName2: Position2...}`, for example `{\"BTC-PERPETUAL\": -1000.0}` (or corresponding URI-encoding for GET). For futures in USD, for options in base currency.",
            "in": "query",
            "name": "simulated_positions",
            "required": false,
            "schema": {
              "description": "JSON string containing: object data",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 22222,
                    "jsonrpc": "2.0",
                    "method": "private/simulate_portfolio",
                    "params": {
                      "add_positions": true,
                      "currency": "BTC",
                      "simulated_positions": {
                        "BTC-PERPETUAL": 1.0
                      }
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateSimulatePortfolioResponse"
          }
        },
        "tags": [
          "Account Management",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/account-management/private-simulate_portfolio",
          "metadata": {
            "keywords": [
              "private/simulate_portfolio",
              "currency",
              "add_positions",
              "simulated_positions",
              "equity",
              "balance",
              "margin_balance",
              "initial_margin",
              "maintenance_margin",
              "projected_initial_margin",
              "projected_maintenance_margin",
              "available_funds",
              "available_withdrawal_funds",
              "available_subaccount_transfer_funds",
              "total_pl",
              "session_rpl",
              "session_upl",
              "futures_pl",
              "futures_session_rpl",
              "futures_session_upl",
              "options_pl",
              "options_session_rpl",
              "options_session_upl",
              "options_value",
              "options_delta",
              "options_gamma",
              "options_theta",
              "options_vega",
              "options_gamma_map",
              "options_theta_map",
              "options_vega_map",
              "delta_total",
              "delta_total_map",
              "projected_delta_total",
              "additional_reserve",
              "spot_reserve",
              "fee_balance",
              "locked_balance",
              "margin_model",
              "portfolio_margining_enabled",
              "cross_collateral_enabled",
              "total_equity_usd",
              "total_initial_margin_usd",
              "total_maintenance_margin_usd",
              "total_margin_balance_usd",
              "total_delta_total_usd"
            ],
            "og:title": "private/simulate_portfolio",
            "title": "private/simulate_portfolio"
          }
        }
      }
    },
    "/private/subscribe": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:user:read"
            ]
          }
        ],
        "description": "Subscribe to one or more channels. The name of the channel determines what information will be provided, and in what form.\n\nFor a complete list of available subscription channels and their notification formats, see [Notifications and Subscriptions](https://docs.deribit.com/articles/notifications).\n\n**Note - This method has distinct API rate limiting requirements:** Sustained rate: ~3.3 requests/second. For more information, see [Rate Limits](https://docs.deribit.com/articles/rate-limits).\n\n**📖 Related Article:** [Market Data Collection Best Practices](https://docs.deribit.com/articles/market-data-collection-best-practices)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fsubscribe)\n\n",
        "parameters": [
          {
            "description": "A list of channels to subscribe to. See [Notifications and Subscriptions](https://docs.deribit.com/articles/notifications) for all available channels.",
            "explode": true,
            "in": "query",
            "name": "channels",
            "required": true,
            "schema": {
              "example": [
                "deribit_price_index.btc_usd"
              ],
              "items": {
                "example": "deribit_price_index.btc_usd",
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          },
          {
            "description": "Optional label which will be added to notifications of private channels (max 16 characters).",
            "in": "query",
            "name": "label",
            "required": false,
            "schema": {
              "example": "TestLabel1",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 4235,
                    "jsonrpc": "2.0",
                    "method": "private/subscribe",
                    "params": {
                      "channels": [
                        "deribit_price_index.btc_usd"
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateSubscribeResponse"
          },
          "401": {
            "$ref": "#/components/responses/ErrorMessageResponse"
          }
        },
        "tags": [
          "Subscription Management",
          "Private",
          "WebSocket Only"
        ],
        "x-mint": {
          "href": "/api-reference/subscription-management/private-subscribe",
          "metadata": {
            "keywords": [
              "private/subscribe",
              "channels",
              "label"
            ],
            "og:title": "private/subscribe",
            "title": "private/subscribe"
          }
        }
      }
    },
    "/private/unsubscribe": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:user:read"
            ]
          }
        ],
        "description": "Unsubscribe from one or more channels. The response contains only the channels that were successfully unsubscribed in this request.\n\nFor a complete list of available subscription channels and their notification formats, see [Notifications and Subscriptions](https://docs.deribit.com/articles/notifications).\n\n**Note:** The `result` field in the response contains only the channels that were successfully processed and unsubscribed from this specific request. It does not include all previously subscribed topics. If a channel in the request is invalid, not subscribed, or fails validation, it will not appear in the result.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Funsubscribe)\n\n",
        "parameters": [
          {
            "description": "A list of channels to unsubscribe from. Only successfully unsubscribed channels will be returned in the result. See [Notifications and Subscriptions](https://docs.deribit.com/articles/notifications) for all available channels.",
            "explode": true,
            "in": "query",
            "name": "channels",
            "required": true,
            "schema": {
              "example": [
                "deribit_price_index.btc_usd"
              ],
              "items": {
                "example": "deribit_price_index.btc_usd",
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 3370,
                    "jsonrpc": "2.0",
                    "method": "private/unsubscribe",
                    "params": {
                      "channels": [
                        "deribit_price_index.btc_usd"
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/Getunsubscribe200response"
          },
          "401": {
            "$ref": "#/components/responses/ErrorMessageResponse"
          }
        },
        "tags": [
          "Subscription Management",
          "Private",
          "WebSocket Only"
        ],
        "x-mint": {
          "href": "/api-reference/subscription-management/private-unsubscribe",
          "metadata": {
            "keywords": [
              "private/unsubscribe",
              "channels"
            ],
            "og:title": "private/unsubscribe",
            "title": "private/unsubscribe"
          }
        }
      }
    },
    "/private/unsubscribe_all": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "view"
            ]
          },
          {
            "OAuth2": [
              "wallet:user:read"
            ]
          }
        ],
        "description": "Unsubscribe from all the channels subscribed so far. This method takes no parameters.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Funsubscribe_all)\n\n",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 154,
                    "jsonrpc": "2.0",
                    "method": "private/unsubscribe_all",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/OkResponse"
          }
        },
        "tags": [
          "Subscription Management",
          "WebSocket Only",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/subscription-management/private-unsubscribe_all",
          "metadata": {
            "keywords": [
              "private/unsubscribe_all"
            ],
            "og:title": "private/unsubscribe_all",
            "title": "private/unsubscribe_all"
          }
        }
      }
    },
    "/private/verify_block_trade": {
      "get": {
        "security": [
          {
            "ApiKey": [
              "trade"
            ]
          },
          {
            "OAuth2": [
              "wallet:buys:create"
            ]
          }
        ],
        "description": "Verifies and creates a block trade signature. This is the first step in the block trade workflow - the first party calls this method to generate a signature that must be shared with the second party.\n\n**Note:** In the API, the `direction` field is always expressed from the maker's perspective. This means that when you accept a block trade as a taker, the direction shown in the API represents the opposite side of your trade. For example, if you are buying puts as a taker, the API will show the operation as a \"sell put\" (maker's perspective), and you will be verifying and accepting a \"sell put\" block trade.\n\n**📖 Related Article:** [Block Trading](https://docs.deribit.com/articles/block-trading-api)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fprivate%2Fverify_block_trade)\n\n",
        "parameters": [
          {
            "description": "Timestamp, shared with other party (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Nonce, shared with other party",
            "in": "query",
            "name": "nonce",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/nonce"
            }
          },
          {
            "description": "Describes if user wants to be maker or taker of trades",
            "in": "query",
            "name": "role",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/role"
            }
          },
          {
            "description": "List of trades for block trade",
            "explode": true,
            "in": "query",
            "name": "trades",
            "required": true,
            "schema": {
              "items": {
                "properties": {
                  "amount": {
                    "$ref": "#/components/schemas/amount",
                    "description": "It represents the requested trade size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base currency coin."
                  },
                  "direction": {
                    "$ref": "#/components/schemas/direction",
                    "description": "Direction of trade from the maker perspective"
                  },
                  "instrument_name": {
                    "$ref": "#/components/schemas/instrument_name",
                    "description": "Instrument name"
                  },
                  "price": {
                    "description": "Price for trade",
                    "type": "number"
                  }
                },
                "type": "object"
              },
              "type": "array"
            },
            "style": "form"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "private/verify_block_trade",
                    "params": {
                      "nonce": "okpdjkdo",
                      "role": "maker",
                      "timestamp": 1565172650935,
                      "trades": [
                        {
                          "amount": 40,
                          "direction": "buy",
                          "instrument_name": "BTC-PERPETUAL",
                          "price": 11624
                        },
                        {
                          "amount": 1.2,
                          "direction": "buy",
                          "instrument_name": "BTC-9AUG19-10250-P",
                          "price": 0.0707
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateVerifyBlockTradeResponse"
          }
        },
        "tags": [
          "Block Trade",
          "Matching Engine",
          "Private"
        ],
        "x-mint": {
          "href": "/api-reference/block-trade/private-verify_block_trade",
          "metadata": {
            "keywords": [
              "private/verify_block_trade",
              "timestamp",
              "nonce",
              "role",
              "trades",
              "signature"
            ],
            "og:title": "private/verify_block_trade",
            "title": "private/verify_block_trade"
          }
        }
      }
    },
    "/public/auth": {
      "post": {
        "security": [],
        "x-mint": {
          "metadata": {
            "title": "public/auth",
            "og:title": "public/auth",
            "keywords": [
              "public/auth",
              "grant_type",
              "token"
            ]
          }
        },
        "description": "Authenticate using a Coinbase-issued credential.\n\n**Accepts both `GET` and `POST`.** Use `POST` as best practice — your credential then travels in the request body, keeping it out of URLs, browser history, and access logs.",
        "requestBody": {
          "required": true,
          "description": "JSON-RPC request body",
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "jsonrpc",
                  "id",
                  "method",
                  "params"
                ],
                "properties": {
                  "jsonrpc": {
                    "description": "The JSON-RPC version (2.0)",
                    "enum": [
                      "2.0"
                    ],
                    "type": "string"
                  },
                  "id": {
                    "description": "The id that was sent in the request",
                    "example": 1,
                    "type": "integer"
                  },
                  "method": {
                    "description": "The method name",
                    "enum": [
                      "public/auth"
                    ],
                    "type": "string"
                  },
                  "params": {
                    "type": "object",
                    "required": [
                      "grant_type",
                      "token"
                    ],
                    "properties": {
                      "grant_type": {
                        "enum": [
                          "coinbase_cdp",
                          "coinbase_oauth2"
                        ],
                        "example": "coinbase_cdp",
                        "type": "string",
                        "description": "Coinbase grant type used to authenticate."
                      },
                      "token": {
                        "type": "string",
                        "example": "...",
                        "description": "Coinbase-issued credential matching `grant_type`."
                      }
                    }
                  }
                }
              },
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "jsonrpc": "2.0",
                    "id": 1,
                    "method": "public/auth",
                    "params": {
                      "grant_type": "coinbase_cdp",
                      "token": "..."
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicAuthResponse"
          }
        },
        "tags": [
          "Authentication",
          "Public"
        ]
      }
    },
    "/public/disable_heartbeat": {
      "get": {
        "security": [],
        "description": "Stop sending heartbeat messages. This method takes no parameters.\n\n**WebSocket Only:** This method is designed exclusively for WebSocket connections. Attempting to use it via REST/HTTP will result in an error response.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fdisable_heartbeat)\n\n",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 3562,
                    "jsonrpc": "2.0",
                    "method": "public/disable_heartbeat",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/OkResponse"
          }
        },
        "tags": [
          "Session Management",
          "WebSocket Only",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/session-management/public-disable_heartbeat",
          "metadata": {
            "keywords": [
              "public/disable_heartbeat"
            ],
            "og:title": "public/disable_heartbeat",
            "title": "public/disable_heartbeat"
          }
        }
      }
    },
    "/public/get_announcements": {
      "get": {
        "security": [],
        "description": "Retrieves platform announcements and important notices. Announcements include system updates, maintenance schedules, new features, policy changes, and other important information.\n\nResults are returned in reverse chronological order (newest first). The default `start_timestamp` is the current time, and the `count` parameter must be between 1 and 50 (default is 5).\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_announcements)\n\n",
        "parameters": [
          {
            "description": "The most recent timestamp to return the results for (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "start_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp",
              "default": "Current time"
            }
          },
          {
            "description": "Maximum count of returned announcements, default - `5`, maximum - `50`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "default": 5,
              "example": 10,
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 7661,
                    "jsonrpc": "2.0",
                    "method": "public/get_announcements",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetAnnouncementsResponse"
          }
        },
        "tags": [
          "Account Management",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/account-management/public-get_announcements",
          "metadata": {
            "keywords": [
              "public/get_announcements",
              "start_timestamp",
              "count",
              "body",
              "publication_timestamp",
              "important",
              "confirmation",
              "title"
            ],
            "og:title": "public/get_announcements",
            "title": "public/get_announcements"
          }
        }
      }
    },
    "/public/get_block_rfq_trades": {
      "get": {
        "security": [],
        "description": "Returns a list of recent Block RFQ trades. Can be optionally filtered by currency.\n\nThis is a public method that provides market data about completed Block RFQ trades. For private Block RFQ information, use [private/get_block_rfqs](https://docs.deribit.com/api-reference/block-rfq/private-get_block_rfqs).\n\n**📖 Related Article:** [Deribit Block RFQ API walkthrough](https://docs.deribit.com/articles/block-rfq-api-walkthrough)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_block_rfq_trades)\n\n",
        "parameters": [
          {
            "description": "The currency symbol or `\"any\"` for all",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency_with_any"
            }
          },
          {
            "description": "Continuation token for pagination. Consists of `timestamp` and `block_rfq_id`.",
            "in": "query",
            "name": "continuation",
            "required": false,
            "schema": {
              "example": "1738050297271:103",
              "type": "string"
            }
          },
          {
            "description": "Count of Block RFQs returned, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "public/get_block_rfq_trades",
                    "params": {
                      "currency": "BTC"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetBlockRfqTradesResponse"
          }
        },
        "tags": [
          "Block RFQ",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/block-rfq/public-get_block_rfq_trades",
          "metadata": {
            "keywords": [
              "public/get_block_rfq_trades",
              "currency",
              "continuation",
              "count",
              "block_rfqs",
              "timestamp",
              "direction",
              "amount",
              "mark_price",
              "legs",
              "combo_id",
              "hedge",
              "index_prices",
              "trades",
              "ratio",
              "instrument_name",
              "price",
              "hedge_amount"
            ],
            "og:title": "public/get_block_rfq_trades",
            "title": "public/get_block_rfq_trades"
          }
        }
      }
    },
    "/public/get_book_summary_by_currency": {
      "get": {
        "security": [],
        "description": "Retrieves summary information such as open interest, 24-hour volume, best bid/ask prices, last trade price, and other market statistics for all instruments in a given currency.\n\nResults can be filtered by instrument kind (future, option, etc.). This method provides a quick overview of market activity across all instruments for a currency.\n\n**Note:** For real-time updates, we recommend using the WebSocket subscription to `ticker.{instrument_name}.{interval}` instead of polling this endpoint.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_book_summary_by_currency)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Instrument kind, if not provided instruments of all kinds are considered",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 9344,
                    "jsonrpc": "2.0",
                    "method": "public/get_book_summary_by_currency",
                    "params": {
                      "currency": "BTC",
                      "kind": "future"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetBookSummaryResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_book_summary_by_currency",
          "metadata": {
            "keywords": [
              "public/get_book_summary_by_currency",
              "currency",
              "kind",
              "instrument_name",
              "high",
              "low",
              "base_currency",
              "quote_currency",
              "volume",
              "bid_price",
              "ask_price",
              "mid_price",
              "mark_price",
              "last",
              "open_interest",
              "creation_timestamp",
              "estimated_delivery_price",
              "volume_usd",
              "volume_notional",
              "current_funding",
              "funding_8h",
              "mark_iv",
              "interest_rate",
              "underlying_index",
              "underlying_price",
              "price_change"
            ],
            "og:title": "public/get_book_summary_by_currency",
            "title": "public/get_book_summary_by_currency"
          }
        }
      }
    },
    "/public/get_book_summary_by_instrument": {
      "get": {
        "security": [],
        "description": "Retrieves summary information such as open interest, 24-hour volume, best bid/ask prices, last trade price, mark price, and other market statistics for a specific instrument.\n\nThis method provides a quick overview of current market activity and liquidity for a single instrument.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_book_summary_by_instrument)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 3659,
                    "jsonrpc": "2.0",
                    "method": "public/get_book_summary_by_instrument",
                    "params": {
                      "instrument_name": "ETH-22FEB19-140-P"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetBookSummaryResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_book_summary_by_instrument",
          "metadata": {
            "keywords": [
              "public/get_book_summary_by_instrument",
              "instrument_name",
              "high",
              "low",
              "base_currency",
              "quote_currency",
              "volume",
              "bid_price",
              "ask_price",
              "mid_price",
              "mark_price",
              "last",
              "open_interest",
              "creation_timestamp",
              "estimated_delivery_price",
              "volume_usd",
              "volume_notional",
              "current_funding",
              "funding_8h",
              "mark_iv",
              "interest_rate",
              "underlying_index",
              "underlying_price",
              "price_change"
            ],
            "og:title": "public/get_book_summary_by_instrument",
            "title": "public/get_book_summary_by_instrument"
          }
        }
      }
    },
    "/public/get_combo_details": {
      "get": {
        "security": [],
        "description": "Retrieves detailed information about a specific combo, including its leg structure, state, and other properties.\n\nUse [public/get_combo_ids](https://docs.deribit.com/api-reference/combo-books/public-get_combo_ids) to get a list of available combo IDs.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_combo_details)\n\n",
        "parameters": [
          {
            "description": "Combo ID",
            "in": "query",
            "name": "combo_id",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/combo_id"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 3,
                    "jsonrpc": "2.0",
                    "method": "public/get_combo_details",
                    "params": {
                      "combo_id": "BTC-FS-29APR22_PERP"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetComboDetailsResponse"
          }
        },
        "tags": [
          "Combo Books",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/combo-books/public-get_combo_details",
          "metadata": {
            "keywords": [
              "public/get_combo_details",
              "combo_id",
              "instrument_id",
              "state",
              "state_timestamp",
              "creation_timestamp",
              "legs",
              "instrument_name",
              "amount"
            ],
            "og:title": "public/get_combo_details",
            "title": "public/get_combo_details"
          }
        }
      }
    },
    "/public/get_combo_ids": {
      "get": {
        "security": [],
        "description": "Retrieves available combo IDs. This method can be used to get the list of all combos, or only the list of combos in the given state.\n\nUse [public/get_combo_details](https://docs.deribit.com/api-reference/combo-books/public-get_combo_details) to retrieve detailed information about a specific combo.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_combo_ids)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Combo state, if not provided combos of all states are considered",
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/combo_state"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "public/get_combo_ids",
                    "params": {
                      "currency": "BTC",
                      "state": "active"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetComboIdsResponse"
          }
        },
        "tags": [
          "Combo Books",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/combo-books/public-get_combo_ids",
          "metadata": {
            "keywords": [
              "public/get_combo_ids",
              "currency",
              "state"
            ],
            "og:title": "public/get_combo_ids",
            "title": "public/get_combo_ids"
          }
        }
      }
    },
    "/public/get_combos": {
      "get": {
        "security": [],
        "description": "Retrieves information about active combos for the specified currency. Returns detailed information including leg structures and combo properties.\n\nFor a list of combo IDs only, use [public/get_combo_ids](https://docs.deribit.com/api-reference/combo-books/public-get_combo_ids). For details about a specific combo, use [public/get_combo_details](https://docs.deribit.com/api-reference/combo-books/public-get_combo_details).\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_combos)\n\n",
        "parameters": [
          {
            "description": "The currency symbol or `\"any\"` for all",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency_with_any"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 2,
                    "jsonrpc": "2.0",
                    "method": "public/get_combos",
                    "params": {
                      "currency": "BTC"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetCombosResponse"
          }
        },
        "tags": [
          "Combo Books",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/combo-books/public-get_combos",
          "metadata": {
            "keywords": [
              "public/get_combos",
              "currency",
              "instrument_id",
              "state",
              "state_timestamp",
              "creation_timestamp",
              "legs",
              "instrument_name",
              "amount"
            ],
            "og:title": "public/get_combos",
            "title": "public/get_combos"
          }
        }
      }
    },
    "/public/get_contract_size": {
      "get": {
        "security": [],
        "description": "Retrieves the contract size (also known as contract multiplier) for a given instrument. The contract size determines how many units of the underlying asset one contract represents.\n\nThis value is essential for calculating position values, margin requirements, and P&L calculations. Different instruments may have different contract sizes.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_contract_size)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetContractSizeResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_contract_size",
          "metadata": {
            "keywords": [
              "public/get_contract_size",
              "instrument_name",
              "contract_size"
            ],
            "og:title": "public/get_contract_size",
            "title": "public/get_contract_size"
          }
        }
      }
    },
    "/public/get_currencies": {
      "get": {
        "security": [],
        "description": "Retrieves all cryptocurrencies supported by the Deribit API. Returns a list of available currencies with their codes and basic information.\n\nThis method takes no parameters and is useful for discovering which currencies are available for trading on the platform.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_currencies)\n\n",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 7538,
                    "jsonrpc": "2.0",
                    "method": "public/get_currencies",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetCurrenciesResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_currencies",
          "metadata": {
            "keywords": [
              "public/get_currencies",
              "withdrawal_fee",
              "withdrawal_priorities",
              "min_withdrawal_fee",
              "currency",
              "currency_long",
              "min_confirmations",
              "coin_type",
              "in_cross_collateral_pool",
              "apr",
              "network_fee",
              "network_currency",
              "decimals",
              "name",
              "value"
            ],
            "og:title": "public/get_currencies",
            "title": "public/get_currencies"
          }
        }
      }
    },
    "/public/get_delivery_prices": {
      "get": {
        "security": [],
        "description": "Retrieves historical delivery prices for a given index. Delivery prices are the settlement prices used when futures or options contracts expire and are settled.\n\nResults can be paginated using the `offset` and `count` parameters. This method is useful for analyzing historical settlement prices and understanding how contracts have been settled over time.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_delivery_prices)\n\n",
        "parameters": [
          {
            "description": "Index identifier, matches (base) cryptocurrency with quote currency",
            "in": "query",
            "name": "index_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/index_name"
            }
          },
          {
            "description": "The offset for pagination, default - `0`",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "example": 10,
              "type": "integer"
            }
          },
          {
            "description": "Number of requested items, default - `10`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 3601,
                    "jsonrpc": "2.0",
                    "method": "public/get_delivery_prices",
                    "params": {
                      "count": 5,
                      "index_name": "btc_usd",
                      "offset": 0
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetDeliveryPricesResponse"
          }
        },
        "tags": [
          "Market Data"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_delivery_prices",
          "metadata": {
            "keywords": [
              "public/get_delivery_prices",
              "index_name",
              "offset",
              "count",
              "records_total",
              "data",
              "date",
              "delivery_price"
            ],
            "og:title": "public/get_delivery_prices",
            "title": "public/get_delivery_prices"
          }
        }
      }
    },
    "/public/get_expirations": {
      "get": {
        "security": [],
        "description": "Retrieves all available expiration timestamps for instruments. This method can be used to discover which expiration dates are available for trading, which is useful for finding instruments with specific expiration dates.\n\nResults can be filtered by settlement currency, instrument kind (future or option), and currency pair. The response includes expiration timestamps in milliseconds since the UNIX epoch.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_expirations)\n\n",
        "parameters": [
          {
            "description": "The currency symbol or `\"any\"` for all or '\"grouped\"' for all grouped by currency",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/settlement_currency_with_any_and_grouped"
            }
          },
          {
            "description": "Instrument kind, `\"future\"` or `\"option\"` or `\"any\"`",
            "in": "query",
            "name": "kind",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/kind_future_or_option_with_any"
            }
          },
          {
            "description": "The currency pair symbol",
            "in": "query",
            "name": "currency_pair",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/index_name"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "public/get_expirations",
                    "params": {
                      "currency": "any",
                      "kind": "any"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetExpirationsResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_expirations",
          "metadata": {
            "keywords": [
              "public/get_expirations",
              "currency",
              "kind",
              "currency_pair"
            ],
            "og:title": "public/get_expirations",
            "title": "public/get_expirations"
          }
        }
      }
    },
    "/public/get_funding_chart_data": {
      "get": {
        "security": [],
        "description": "Retrieves funding rate chart data points for a PERPETUAL instrument within a given time period. The data is formatted for use in charting applications and includes funding rate values at regular intervals.\n\nUse the `length` parameter to specify the time period for which to retrieve chart data. This method is useful for visualizing funding rate trends over time.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_funding_chart_data)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "Specifies time period. `8h` - 8 hours, `24h` - 24 hours, `1m` - 1 month",
            "in": "query",
            "name": "length",
            "required": true,
            "schema": {
              "enum": [
                "8h",
                "24h",
                "1m"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetFundingChartDataResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_funding_chart_data",
          "metadata": {
            "keywords": [
              "public/get_funding_chart_data",
              "instrument_name",
              "length",
              "current_interest",
              "interest_8h",
              "data",
              "timestamp",
              "index_price"
            ],
            "og:title": "public/get_funding_chart_data",
            "title": "public/get_funding_chart_data"
          }
        }
      }
    },
    "/public/get_funding_rate_history": {
      "get": {
        "security": [],
        "description": "Retrieves hourly historical funding rate (interest rate) data for a PERPETUAL instrument over a specified time period. Funding rates are periodic payments exchanged between long and short positions in perpetual contracts.\n\nThe response includes hourly funding rate values, which can be used to analyze funding rate trends and calculate historical funding costs. This method is applicable only for PERPETUAL instruments.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_funding_rate_history)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "start_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "end_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 7617,
                    "jsonrpc": "2.0",
                    "method": "public/get_funding_rate_history",
                    "params": {
                      "end_timestamp": 1569902400000,
                      "instrument_name": "BTC-PERPETUAL",
                      "start_timestamp": 1569888000000
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetFundingRateHistoryResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_funding_rate_history",
          "metadata": {
            "keywords": [
              "public/get_funding_rate_history",
              "instrument_name",
              "start_timestamp",
              "end_timestamp",
              "timestamp",
              "prev_index_price",
              "index_price",
              "interest_1h",
              "interest_8h"
            ],
            "og:title": "public/get_funding_rate_history",
            "title": "public/get_funding_rate_history"
          }
        }
      }
    },
    "/public/get_funding_rate_value": {
      "get": {
        "security": [],
        "description": "Retrieves the funding rate (interest rate) value for a perpetual instrument over a specified time period. Funding rates are periodic payments exchanged between long and short positions in perpetual contracts.\n\nThis method is applicable only for PERPETUAL instruments. The funding rate is typically expressed as a percentage and is used to keep the perpetual contract price aligned with the underlying index price.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_funding_rate_value)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "start_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "end_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 7617,
                    "jsonrpc": "2.0",
                    "method": "public/get_funding_rate_value",
                    "params": {
                      "end_timestamp": 1569974400000,
                      "instrument_name": "BTC-PERPETUAL",
                      "start_timestamp": 1569888000000
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetFundingRateValueResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_funding_rate_value",
          "metadata": {
            "keywords": [
              "public/get_funding_rate_value",
              "instrument_name",
              "start_timestamp",
              "end_timestamp"
            ],
            "og:title": "public/get_funding_rate_value",
            "title": "public/get_funding_rate_value"
          }
        }
      }
    },
    "/public/get_historical_volatility": {
      "get": {
        "security": [],
        "description": "Provides historical volatility data for a given cryptocurrency. Historical volatility measures the degree of price variation over a past period and is useful for risk assessment and option pricing.\n\nThe response includes volatility statistics calculated from historical price movements. This data can be used for portfolio risk analysis and understanding market conditions.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_historical_volatility)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 8387,
                    "jsonrpc": "2.0",
                    "method": "public/get_historical_volatility",
                    "params": {
                      "currency": "BTC"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetHistoricalVolatilityResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_historical_volatility",
          "metadata": {
            "keywords": [
              "public/get_historical_volatility",
              "currency",
              "timestamp",
              "value"
            ],
            "og:title": "public/get_historical_volatility",
            "title": "public/get_historical_volatility"
          }
        }
      }
    },
    "/public/get_index_chart_data": {
      "get": {
        "security": [],
        "description": "Returns historical price index chart data for the specified index name and time range. The data is formatted for use in charting applications and shows price index values over time.\n\nUse the `range` parameter to specify the time period for which to retrieve chart data. This method is useful for visualizing price index trends and historical movements.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_index_chart_data)\n\n",
        "parameters": [
          {
            "description": "Index identifier, matches (base) cryptocurrency with quote currency",
            "in": "query",
            "name": "index_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/index_name"
            }
          },
          {
            "description": "Range of the data to return",
            "in": "query",
            "name": "range",
            "required": true,
            "schema": {
              "enum": [
                "1h",
                "1d",
                "2d",
                "1m",
                "1y",
                "all"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "public/get_index_chart_data",
                    "params": {
                      "index_name": "btc_usd",
                      "range": "1m"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetIndexChartDataResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_index_chart_data",
          "metadata": {
            "keywords": [
              "public/get_index_chart_data",
              "index_name",
              "range"
            ],
            "og:title": "public/get_index_chart_data",
            "title": "public/get_index_chart_data"
          }
        }
      }
    },
    "/public/get_index_price": {
      "get": {
        "security": [],
        "description": "Retrieves the current index price value for a given index name. Index prices are used as reference prices for mark price calculations and settlement.\n\nUse `get_index_price_names` or `get_supported_index_names` to retrieve available index names.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_index_price)\n\n",
        "parameters": [
          {
            "description": "Index identifier, matches (base) cryptocurrency with quote currency",
            "in": "query",
            "name": "index_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/index_name"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetIndexPriceResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_index_price",
          "metadata": {
            "keywords": [
              "public/get_index_price",
              "index_name",
              "index_price",
              "estimated_delivery_price"
            ],
            "og:title": "public/get_index_price",
            "title": "public/get_index_price"
          }
        }
      }
    },
    "/public/get_index_price_names": {
      "get": {
        "security": [],
        "description": "Retrieves the identifiers (names) of all supported price indexes. Price indexes are reference prices used for mark price calculations, settlement, and other market operations.\n\nWhen the `extended` parameter is set to `true`, the response includes additional information such as whether future combo creation and option combo creation are enabled for each index.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_index_price_names)\n\n",
        "parameters": [
          {
            "description": "When set to `true`, returns additional information including `future_combo_creation_enabled` and `option_combo_creation_enabled` for each index",
            "in": "query",
            "name": "extended",
            "required": false,
            "schema": {
              "default": false,
              "example": true,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "public/get_index_price_names",
                    "params": {
                      "extended": true
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetIndexPriceNamesResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_index_price_names",
          "metadata": {
            "keywords": [
              "public/get_index_price_names",
              "extended",
              "name",
              "future_combo_creation_enabled",
              "option_combo_creation_enabled"
            ],
            "og:title": "public/get_index_price_names",
            "title": "public/get_index_price_names"
          }
        }
      }
    },
    "/public/get_instrument": {
      "get": {
        "security": [],
        "description": "Retrieves detailed information about a specific instrument, including instrument specifications, contract details, tick size, settlement currency, expiration date (for futures and options), strike price (for options), and other instrument parameters.\n\nThis method is useful for obtaining instrument metadata needed for trading operations and calculations.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_instrument)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 2,
                    "jsonrpc": "2.0",
                    "method": "public/get_instrument",
                    "params": {
                      "instrument_name": "BTC-13JAN23-16000-P"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetInstrumentResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_instrument",
          "metadata": {
            "keywords": [
              "public/get_instrument",
              "instrument_name",
              "kind",
              "settlement_currency",
              "counter_currency",
              "base_currency",
              "quote_currency",
              "min_trade_amount",
              "instrument_id",
              "is_active",
              "settlement_period",
              "creation_timestamp",
              "tick_size",
              "tick_size_steps",
              "expiration_timestamp",
              "strike",
              "option_type",
              "future_type",
              "instrument_type",
              "contract_size",
              "maker_commission",
              "taker_commission",
              "max_liquidation_commission",
              "block_trade_commission",
              "block_trade_tick_size",
              "block_trade_min_trade_amount",
              "max_leverage",
              "price_index",
              "state",
              "above_price"
            ],
            "og:title": "public/get_instrument",
            "title": "public/get_instrument"
          }
        }
      }
    },
    "/public/get_instruments": {
      "get": {
        "security": [],
        "description": "Retrieves available trading instruments. This method can be used to see which instruments are available for trading, or which instruments have recently expired.\n\n**Note - This method has distinct API rate limiting requirements:** Sustained rate: 1 request/second. To avoid rate limits, we recommend using either the REST requests for server-cached data or the WebSocket subscription to [instrument_state.{kind}.{currency}](https://docs.deribit.com/api-reference/subscription-channels/instrument-state-kind-currency) for real-time updates. For more information, see [Rate Limits](https://support.deribit.com/hc/en-us/articles/25944617523357-Rate-Limits).\n\nResults can be filtered by currency and instrument kind (future, option, etc.). Set the `expired` parameter to `true` to retrieve recently expired instruments instead of active ones.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_instruments)\n\n",
        "parameters": [
          {
            "description": "The currency symbol or `\"any\"` for all",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency_with_any"
            }
          },
          {
            "description": "Instrument kind, if not provided instruments of all kinds are considered",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind"
            }
          },
          {
            "description": "Set to true to show recently expired instruments instead of active ones.",
            "in": "query",
            "name": "expired",
            "required": false,
            "schema": {
              "default": false,
              "type": "boolean"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "public/get_instruments",
                    "params": {
                      "currency": "BTC",
                      "kind": "future"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetInstrumentsResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_instruments",
          "metadata": {
            "keywords": [
              "public/get_instruments",
              "currency",
              "kind",
              "expired",
              "settlement_currency",
              "counter_currency",
              "base_currency",
              "quote_currency",
              "min_trade_amount",
              "instrument_name",
              "instrument_id",
              "is_active",
              "settlement_period",
              "creation_timestamp",
              "tick_size",
              "tick_size_steps",
              "expiration_timestamp",
              "strike",
              "option_type",
              "future_type",
              "instrument_type",
              "contract_size",
              "maker_commission",
              "taker_commission",
              "max_liquidation_commission",
              "block_trade_commission",
              "block_trade_tick_size",
              "block_trade_min_trade_amount",
              "max_leverage",
              "price_index",
              "state",
              "above_price"
            ],
            "og:title": "public/get_instruments",
            "title": "public/get_instruments"
          }
        }
      }
    },
    "/public/get_last_settlements_by_currency": {
      "get": {
        "security": [],
        "description": "Retrieves historical settlement, delivery, and bankruptcy events from all instruments within a given currency. Settlements occur when futures or options contracts expire and are settled at the delivery price.\n\nResults can be filtered by settlement type and timestamp. Use pagination parameters (`count` and `continuation`) to retrieve large settlement histories. This data is useful for analyzing historical contract settlements and understanding market events.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_last_settlements_by_currency)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Settlement type",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/settlement_type"
            }
          },
          {
            "description": "Number of requested items, default - `20`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Continuation token for pagination",
            "in": "query",
            "name": "continuation",
            "required": false,
            "schema": {
              "example": "xY7T6cutS3t2B9YtaDkE6TS379oKnkzTvmEDUnEUP2Msa9xKWNNaT",
              "type": "string"
            }
          },
          {
            "description": "The latest timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "search_start_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 4497,
                    "jsonrpc": "2.0",
                    "method": "public/get_last_settlements_by_currency",
                    "params": {
                      "count": 2,
                      "currency": "BTC",
                      "type": "delivery"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicSettlementResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_last_settlements_by_currency",
          "metadata": {
            "keywords": [
              "public/get_last_settlements_by_currency",
              "currency",
              "type",
              "count",
              "continuation",
              "search_start_timestamp",
              "settlements",
              "funding",
              "funded",
              "index_price",
              "instrument_name",
              "mark_price",
              "position",
              "profit_loss",
              "session_bankruptcy",
              "session_profit_loss",
              "session_tax",
              "session_tax_rate",
              "socialized",
              "timestamp"
            ],
            "og:title": "public/get_last_settlements_by_currency",
            "title": "public/get_last_settlements_by_currency"
          }
        }
      }
    },
    "/public/get_last_settlements_by_instrument": {
      "get": {
        "security": [],
        "description": "Retrieves historical settlement, delivery, and bankruptcy events for a specific instrument. Settlements occur when futures or options contracts expire and are settled at the delivery price.\n\nResults can be filtered by settlement type and timestamp. Use pagination parameters (`count` and `continuation`) to retrieve large settlement histories. This method is useful for tracking settlement history for a specific instrument.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_last_settlements_by_instrument)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "Settlement type",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/settlement_type"
            }
          },
          {
            "description": "Number of requested items, default - `20`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Continuation token for pagination",
            "in": "query",
            "name": "continuation",
            "required": false,
            "schema": {
              "example": "xY7T6cutS3t2B9YtaDkE6TS379oKnkzTvmEDUnEUP2Msa9xKWNNaT",
              "type": "string"
            }
          },
          {
            "description": "The latest timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "search_start_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 5482,
                    "jsonrpc": "2.0",
                    "method": "public/get_last_settlements_by_instrument",
                    "params": {
                      "count": 1,
                      "instrument_name": "BTC-22FEB19",
                      "type": "settlement"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicSettlementResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_last_settlements_by_instrument",
          "metadata": {
            "keywords": [
              "public/get_last_settlements_by_instrument",
              "instrument_name",
              "type",
              "count",
              "continuation",
              "search_start_timestamp",
              "settlements",
              "funding",
              "funded",
              "index_price",
              "mark_price",
              "position",
              "profit_loss",
              "session_bankruptcy",
              "session_profit_loss",
              "session_tax",
              "session_tax_rate",
              "socialized",
              "timestamp"
            ],
            "og:title": "public/get_last_settlements_by_instrument",
            "title": "public/get_last_settlements_by_instrument"
          }
        }
      }
    },
    "/public/get_last_trades_by_currency": {
      "get": {
        "security": [],
        "description": "Retrieves the latest trades that have occurred for instruments in a specific currency. Returns trade details including price, amount, direction, timestamp, and trade ID for all instruments in the currency.\n\nResults can be filtered by instrument kind and trade ID range or timestamp range. Use the `count` parameter to limit the number of trades returned, and `sorting` to control the order (ascending or descending by trade ID).\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_last_trades_by_currency)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Instrument kind, `\"combo\"` for any combo or `\"any\"` for all. If not provided instruments of all kinds are considered",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind_with_combo_all"
            }
          },
          {
            "description": "The ID of the first trade to be returned. Number for BTC trades, or hyphen name in ex. `\"ETH-15\"` # `\"ETH_USDC-16\"`",
            "in": "query",
            "name": "start_id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/trade_id"
            }
          },
          {
            "description": "The ID of the last trade to be returned. Number for BTC trades, or hyphen name in ex. `\"ETH-15\"` # `\"ETH_USDC-16\"`",
            "in": "query",
            "name": "end_id",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/trade_id"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch). When param is provided trades are returned from the earliest",
            "in": "query",
            "name": "start_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch). Only one of params: start_timestamp, end_timestamp is truly required",
            "in": "query",
            "name": "end_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Number of requested items, default - `10`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Direction of results sorting (`default` value means no sorting, results will be returned in order in which they left the database)",
            "in": "query",
            "name": "sorting",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/sorting"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 9290,
                    "jsonrpc": "2.0",
                    "method": "public/get_last_trades_by_currency",
                    "params": {
                      "count": 3,
                      "currency": "BTC"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicTradesHistoryResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_last_trades_by_currency",
          "metadata": {
            "keywords": [
              "public/get_last_trades_by_currency",
              "currency",
              "kind",
              "start_id",
              "end_id",
              "start_timestamp",
              "end_timestamp",
              "count",
              "sorting",
              "trades",
              "has_more",
              "trade_id",
              "trade_seq",
              "instrument_name",
              "timestamp",
              "direction",
              "tick_direction",
              "index_price",
              "price",
              "amount",
              "contracts",
              "iv",
              "liquidation",
              "mark_price",
              "block_trade_id",
              "block_trade_leg_count",
              "combo_id",
              "combo_trade_id",
              "block_rfq_id"
            ],
            "og:title": "public/get_last_trades_by_currency",
            "title": "public/get_last_trades_by_currency"
          }
        }
      }
    },
    "/public/get_last_trades_by_currency_and_time": {
      "get": {
        "security": [],
        "description": "Retrieves the latest trades that have occurred for instruments in a specific currency within a specified time range. Returns trade details including price, amount, direction, timestamp, and trade ID.\n\nResults can be filtered by instrument kind. Use the `count` parameter to limit the number of trades returned, and `sorting` to control the order (ascending or descending by trade ID).\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_last_trades_by_currency_and_time)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "Instrument kind, `\"combo\"` for any combo or `\"any\"` for all. If not provided instruments of all kinds are considered",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/kind_with_combo_all"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch). When param is provided trades are returned from the earliest",
            "in": "query",
            "name": "start_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch). Only one of params: start_timestamp, end_timestamp is truly required",
            "in": "query",
            "name": "end_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Number of requested items, default - `10`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Direction of results sorting (`default` value means no sorting, results will be returned in order in which they left the database)",
            "in": "query",
            "name": "sorting",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/sorting"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1469,
                    "jsonrpc": "2.0",
                    "method": "public/get_last_trades_by_currency_and_time",
                    "params": {
                      "count": 1,
                      "currency": "BTC",
                      "end_timestamp": 1590480022768,
                      "start_timestamp": 1590470022768
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicTradesHistoryResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_last_trades_by_currency_and_time",
          "metadata": {
            "keywords": [
              "public/get_last_trades_by_currency_and_time",
              "currency",
              "kind",
              "start_timestamp",
              "end_timestamp",
              "count",
              "sorting",
              "trades",
              "has_more",
              "trade_id",
              "trade_seq",
              "instrument_name",
              "timestamp",
              "direction",
              "tick_direction",
              "index_price",
              "price",
              "amount",
              "contracts",
              "iv",
              "liquidation",
              "mark_price",
              "block_trade_id",
              "block_trade_leg_count",
              "combo_id",
              "combo_trade_id",
              "block_rfq_id"
            ],
            "og:title": "public/get_last_trades_by_currency_and_time",
            "title": "public/get_last_trades_by_currency_and_time"
          }
        }
      }
    },
    "/public/get_last_trades_by_instrument": {
      "get": {
        "security": [],
        "description": "Retrieves the latest trades that have occurred for a specific instrument. Returns trade details including price, amount, direction, timestamp, and trade ID.\n\nResults can be filtered by sequence number range or timestamp range. Use the `count` parameter to limit the number of trades returned, and `sorting` to control the order (ascending or descending by trade ID).\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_last_trades_by_instrument)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "The sequence number of the first trade to be returned",
            "in": "query",
            "name": "start_seq",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "The sequence number of the last trade to be returned",
            "in": "query",
            "name": "end_seq",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch). When param is provided trades are returned from the earliest",
            "in": "query",
            "name": "start_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch). Only one of params: start_timestamp, end_timestamp is truly required",
            "in": "query",
            "name": "end_timestamp",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Number of requested items, default - `10`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Direction of results sorting (`default` value means no sorting, results will be returned in order in which they left the database)",
            "in": "query",
            "name": "sorting",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/sorting"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 9267,
                    "jsonrpc": "2.0",
                    "method": "public/get_last_trades_by_instrument",
                    "params": {
                      "count": 1,
                      "instrument_name": "BTC-PERPETUAL"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicTradesHistoryResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_last_trades_by_instrument",
          "metadata": {
            "keywords": [
              "public/get_last_trades_by_instrument",
              "instrument_name",
              "start_seq",
              "end_seq",
              "start_timestamp",
              "end_timestamp",
              "count",
              "sorting",
              "trades",
              "has_more",
              "trade_id",
              "trade_seq",
              "timestamp",
              "direction",
              "tick_direction",
              "index_price",
              "price",
              "amount",
              "contracts",
              "iv",
              "liquidation",
              "mark_price",
              "block_trade_id",
              "block_trade_leg_count",
              "combo_id",
              "combo_trade_id",
              "block_rfq_id"
            ],
            "og:title": "public/get_last_trades_by_instrument",
            "title": "public/get_last_trades_by_instrument"
          }
        }
      }
    },
    "/public/get_last_trades_by_instrument_and_time": {
      "get": {
        "security": [],
        "description": "Retrieves the latest trades that have occurred for a specific instrument within a specified time range. Returns trade details including price, amount, direction, timestamp, and trade ID.\n\nUse the `count` parameter to limit the number of trades returned, and `sorting` to control the order (ascending or descending by trade ID). This method is useful for analyzing trading activity over specific time periods.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_last_trades_by_instrument_and_time)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch). When param is provided trades are returned from the earliest",
            "in": "query",
            "name": "start_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch). Only one of params: start_timestamp, end_timestamp is truly required",
            "in": "query",
            "name": "end_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Number of requested items, default - `10`, maximum - `1000`",
            "in": "query",
            "name": "count",
            "required": false,
            "schema": {
              "maximum": 1000,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Direction of results sorting (`default` value means no sorting, results will be returned in order in which they left the database)",
            "in": "query",
            "name": "sorting",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/sorting"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 3983,
                    "jsonrpc": "2.0",
                    "method": "public/get_last_trades_by_instrument_and_time",
                    "params": {
                      "count": 1,
                      "end_timestamp": 1590480022768,
                      "instrument_name": "ETH-PERPETUAL"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicTradesHistoryResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_last_trades_by_instrument_and_time",
          "metadata": {
            "keywords": [
              "public/get_last_trades_by_instrument_and_time",
              "instrument_name",
              "start_timestamp",
              "end_timestamp",
              "count",
              "sorting",
              "trades",
              "has_more",
              "trade_id",
              "trade_seq",
              "timestamp",
              "direction",
              "tick_direction",
              "index_price",
              "price",
              "amount",
              "contracts",
              "iv",
              "liquidation",
              "mark_price",
              "block_trade_id",
              "block_trade_leg_count",
              "combo_id",
              "combo_trade_id",
              "block_rfq_id"
            ],
            "og:title": "public/get_last_trades_by_instrument_and_time",
            "title": "public/get_last_trades_by_instrument_and_time"
          }
        }
      }
    },
    "/public/get_mark_price_history": {
      "get": {
        "security": [],
        "description": "Retrieves 5-minute historical mark price data for an instrument. Mark prices are used for margin calculations and position valuations.\n\n**Note:** Currently, mark price history is available only for a subset of options that participate in volatility index calculations. All other instruments, including futures and perpetuals, will return an empty list.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_mark_price_history)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "start_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "end_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 1,
                    "jsonrpc": "2.0",
                    "method": "public/get_mark_price_history",
                    "params": {
                      "end_timestamp": 1609376810000,
                      "instrument_name": "BTC-25JUN21-50000-C",
                      "start_timestamp": 1609376800000
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetMarkPriceHistoryResponse"
          }
        },
        "tags": [
          "Market Data",
          "Mark Price",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_mark_price_history",
          "metadata": {
            "keywords": [
              "public/get_mark_price_history",
              "instrument_name",
              "start_timestamp",
              "end_timestamp"
            ],
            "og:title": "public/get_mark_price_history",
            "title": "public/get_mark_price_history"
          }
        }
      }
    },
    "/public/get_order_book": {
      "get": {
        "security": [],
        "description": "Retrieves the order book (bids and asks) for a given instrument, along with other market values such as best bid/ask prices, last trade price, mark price, and index price.\n\nThe order book depth can be controlled using the `depth` parameter, which accepts values from 1 to 10000. The response includes price levels sorted by price (bids descending, asks ascending).\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_order_book)\n\n",
        "parameters": [
          {
            "description": "The instrument name for which to retrieve the order book, see [`public/get_instruments`](#public-get_instruments) to obtain instrument names.",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "example": "BTC-PERPETUAL",
              "type": "string"
            }
          },
          {
            "description": "The number of entries to return for bids and asks, maximum - `10000`.",
            "in": "query",
            "name": "depth",
            "required": false,
            "schema": {
              "enum": [
                1,
                5,
                10,
                20,
                50,
                100,
                1000,
                10000
              ],
              "example": 5,
              "type": "integer"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 8772,
                    "jsonrpc": "2.0",
                    "method": "public/get_order_book",
                    "params": {
                      "depth": 5,
                      "instrument_name": "BTC-PERPETUAL"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetOrderBookResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_order_book",
          "metadata": {
            "keywords": [
              "public/get_order_book",
              "instrument_name",
              "depth",
              "timestamp",
              "state",
              "stats",
              "open_interest",
              "best_bid_price",
              "best_bid_amount",
              "best_ask_price",
              "best_ask_amount",
              "index_price",
              "min_price",
              "max_price",
              "mark_price",
              "last_price",
              "underlying_price",
              "underlying_index",
              "interest_rate",
              "bid_iv",
              "ask_iv",
              "mark_iv",
              "greeks",
              "funding_8h",
              "current_funding",
              "delivery_price",
              "settlement_price",
              "bids",
              "asks",
              "volume",
              "low",
              "high",
              "price_change",
              "volume_usd",
              "delta",
              "gamma",
              "rho",
              "theta",
              "vega"
            ],
            "og:title": "public/get_order_book",
            "title": "public/get_order_book"
          }
        }
      }
    },
    "/public/get_order_book_by_instrument_id": {
      "get": {
        "security": [],
        "description": "Retrieves the order book (bids and asks) for a given instrument ID, along with other market values such as best bid/ask prices, last trade price, mark price, and index price.\n\nThis method is similar to `get_order_book` but uses instrument ID instead of instrument name. The order book depth can be controlled using the `depth` parameter, which accepts values from 1 to 10000.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_order_book_by_instrument_id)\n\n",
        "parameters": [
          {
            "description": "The instrument ID for which to retrieve the order book, see [`public/get_instruments`](#public-get_instruments) to obtain instrument IDs.",
            "in": "query",
            "name": "instrument_id",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "The number of entries to return for bids and asks, maximum - `10000`.",
            "in": "query",
            "name": "depth",
            "required": false,
            "schema": {
              "enum": [
                1,
                5,
                10,
                20,
                50,
                100,
                1000,
                10000
              ],
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetOrderBookResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_order_book_by_instrument_id",
          "metadata": {
            "keywords": [
              "public/get_order_book_by_instrument_id",
              "instrument_id",
              "depth",
              "instrument_name",
              "timestamp",
              "state",
              "stats",
              "open_interest",
              "best_bid_price",
              "best_bid_amount",
              "best_ask_price",
              "best_ask_amount",
              "index_price",
              "min_price",
              "max_price",
              "mark_price",
              "last_price",
              "underlying_price",
              "underlying_index",
              "interest_rate",
              "bid_iv",
              "ask_iv",
              "mark_iv",
              "greeks",
              "funding_8h",
              "current_funding",
              "delivery_price",
              "settlement_price",
              "bids",
              "asks",
              "volume",
              "low",
              "high",
              "price_change",
              "volume_usd",
              "delta",
              "gamma",
              "rho",
              "theta",
              "vega"
            ],
            "og:title": "public/get_order_book_by_instrument_id",
            "title": "public/get_order_book_by_instrument_id"
          }
        }
      }
    },
    "/public/get_supported_index_names": {
      "get": {
        "security": [],
        "description": "Retrieves the identifiers (names) of all supported price indexes, optionally filtered by index type. Price indexes are reference prices used for mark price calculations, settlement, and other market operations.\n\nUse the `type` parameter to filter indexes by type (e.g., spot, futures, etc.). This method helps discover available indexes for use with other API methods.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_supported_index_names)\n\n",
        "parameters": [
          {
            "description": "Type of a cryptocurrency price index",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "enum": [
                "all",
                "spot",
                "derivative"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetIndexPriceNamesResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_supported_index_names",
          "metadata": {
            "keywords": [
              "public/get_supported_index_names",
              "type",
              "name",
              "future_combo_creation_enabled",
              "option_combo_creation_enabled"
            ],
            "og:title": "public/get_supported_index_names",
            "title": "public/get_supported_index_names"
          }
        }
      }
    },
    "/public/get_time": {
      "get": {
        "security": [],
        "description": "Retrieves the current time (in milliseconds). This API endpoint can be used to check the clock skew between your software and Deribit's systems.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_time)\n\n",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 7365,
                    "jsonrpc": "2.0",
                    "method": "public/get_time",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetTimeResponse"
          }
        },
        "tags": [
          "Supporting",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/supporting/public-get_time",
          "metadata": {
            "keywords": [
              "public/get_time"
            ],
            "og:title": "public/get_time",
            "title": "public/get_time"
          }
        }
      }
    },
    "/public/get_trade_volumes": {
      "get": {
        "security": [],
        "description": "Retrieves aggregated 24-hour trade volumes for different instrument types and currencies. The volume statistics include all executed trades across the platform.\n\n**Note:** Position moves are not included in this volume. Block trades and Block RFQ trades are included in the volume calculations.\n\nUse the `extended` parameter to include additional volume statistics and breakdowns.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_trade_volumes)\n\n",
        "parameters": [
          {
            "description": "Request for extended statistics. Including also 7 and 30 days volumes (default false)",
            "in": "query",
            "name": "extended",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetTradesVolumesResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_trade_volumes",
          "metadata": {
            "keywords": [
              "public/get_trade_volumes",
              "extended",
              "currency",
              "calls_volume",
              "puts_volume",
              "futures_volume",
              "spot_volume",
              "calls_volume_7d",
              "puts_volume_7d",
              "futures_volume_7d",
              "spot_volume_7d",
              "calls_volume_30d",
              "puts_volume_30d",
              "futures_volume_30d",
              "spot_volume_30d"
            ],
            "og:title": "public/get_trade_volumes",
            "title": "public/get_trade_volumes"
          }
        }
      }
    },
    "/public/get_tradingview_chart_data": {
      "get": {
        "security": [],
        "description": "Retrieves publicly available market data formatted for generating TradingView-compatible candle charts. The data includes open, high, low, close (OHLC) prices and volume for specified time intervals.\n\nUse the `chart_resolution` parameter to specify the candle interval (e.g., 1m, 5m, 1h, 1d). This method provides the standard format used by TradingView and other charting platforms.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_tradingview_chart_data)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "start_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "end_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Chart bars resolution given in full minutes or keyword `1D` (only some specific resolutions are supported)",
            "in": "query",
            "name": "resolution",
            "required": true,
            "schema": {
              "enum": [
                1,
                3,
                5,
                10,
                15,
                30,
                60,
                120,
                180,
                360,
                720,
                "1D"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 833,
                    "jsonrpc": "2.0",
                    "method": "public/get_tradingview_chart_data",
                    "params": {
                      "end_timestamp": 1554376800000,
                      "instrument_name": "BTC-5APR19",
                      "resolution": "30",
                      "start_timestamp": 1554373800000
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetTradingviewChartDataResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_tradingview_chart_data",
          "metadata": {
            "keywords": [
              "public/get_tradingview_chart_data",
              "instrument_name",
              "start_timestamp",
              "end_timestamp",
              "resolution",
              "status",
              "ticks",
              "volume",
              "cost",
              "open",
              "close",
              "high",
              "low"
            ],
            "og:title": "public/get_tradingview_chart_data",
            "title": "public/get_tradingview_chart_data"
          }
        }
      }
    },
    "/public/get_volatility_index_data": {
      "get": {
        "security": [],
        "description": "Retrieves volatility index (VIX) chart data formatted as candles. Volatility indexes measure market expectations of future volatility and are useful for risk assessment and trading strategies.\n\nUse the `vix_resolution` parameter to specify the candle interval. The data shows historical volatility index values over time and is formatted for use in charting applications.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fget_volatility_index_data)\n\n",
        "parameters": [
          {
            "description": "The currency symbol",
            "in": "query",
            "name": "currency",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/currency"
            }
          },
          {
            "description": "The earliest timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "start_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "The most recent timestamp to return result from (milliseconds since the UNIX epoch)",
            "in": "query",
            "name": "end_timestamp",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/timestamp"
            }
          },
          {
            "description": "Time resolution given in full seconds or keyword `1D` (only some specific resolutions are supported)",
            "in": "query",
            "name": "resolution",
            "required": true,
            "schema": {
              "enum": [
                1,
                60,
                3600,
                43200,
                "1D"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 833,
                    "jsonrpc": "2.0",
                    "method": "public/get_volatility_index_data",
                    "params": {
                      "currency": "BTC",
                      "end_timestamp": 1599376800000,
                      "resolution": "60",
                      "start_timestamp": 1599373800000
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicGetVolatilityIndexDataResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-get_volatility_index_data",
          "metadata": {
            "keywords": [
              "public/get_volatility_index_data",
              "currency",
              "start_timestamp",
              "end_timestamp",
              "resolution",
              "data",
              "continuation"
            ],
            "og:title": "public/get_volatility_index_data",
            "title": "public/get_volatility_index_data"
          }
        }
      }
    },
    "/public/hello": {
      "get": {
        "security": [],
        "description": "Method used to introduce the client software connected to Deribit platform over websocket. Provided data may have an impact on the maintained connection and will be collected for internal statistical purposes. In response, Deribit will also introduce itself.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fhello)\n\n",
        "parameters": [
          {
            "description": "Client software name",
            "in": "query",
            "name": "client_name",
            "required": true,
            "schema": {
              "example": "My Trading Software",
              "type": "string"
            }
          },
          {
            "description": "Client software version",
            "in": "query",
            "name": "client_version",
            "required": true,
            "schema": {
              "example": "1.0.2",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 2841,
                    "jsonrpc": "2.0",
                    "method": "public/hello",
                    "params": {
                      "client_name": "My Trading Software",
                      "client_version": "1.0.2"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicTestResponse"
          }
        },
        "tags": [
          "Supporting",
          "Public",
          "WebSocket Only"
        ],
        "x-mint": {
          "href": "/api-reference/supporting/public-hello",
          "metadata": {
            "keywords": [
              "public/hello",
              "client_name",
              "client_version",
              "version"
            ],
            "og:title": "public/hello",
            "title": "public/hello"
          }
        }
      }
    },
    "/public/set_heartbeat": {
      "get": {
        "security": [],
        "description": "Signals the WebSocket connection to send and request heartbeats. Heartbeats can be used to detect stale connections.\n\nWhen heartbeats have been set up, the API server will send `heartbeat` messages and `test_request` messages. Your software should respond to `test_request` messages by sending a `/api/v2/public/test` request. If your software fails to do so, the API server will immediately close the connection. If your account is configured to cancel on disconnect, any orders opened over the connection will be cancelled.\n\n**WebSocket Only:** This method is designed exclusively for WebSocket connections. Attempting to use it via REST/HTTP will result in an error response.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fset_heartbeat)\n\n",
        "parameters": [
          {
            "description": "The heartbeat interval in seconds, but not less than 10",
            "in": "query",
            "name": "interval",
            "required": true,
            "schema": {
              "example": 30,
              "type": "number"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 9098,
                    "jsonrpc": "2.0",
                    "method": "public/set_heartbeat",
                    "params": {
                      "interval": 30
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/OkResponse"
          }
        },
        "tags": [
          "Session Management",
          "Public",
          "WebSocket Only"
        ],
        "x-mint": {
          "href": "/api-reference/session-management/public-set_heartbeat",
          "metadata": {
            "keywords": [
              "public/set_heartbeat",
              "interval"
            ],
            "og:title": "public/set_heartbeat",
            "title": "public/set_heartbeat"
          }
        }
      }
    },
    "/public/status": {
      "get": {
        "security": [],
        "description": "Method used to get information about locked currencies\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fstatus)\n\n",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 55,
                    "jsonrpc": "2.0",
                    "method": "public/status",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicStatusResponse"
          }
        },
        "tags": [
          "Supporting",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/supporting/public-status",
          "metadata": {
            "keywords": [
              "public/status",
              "locked",
              "locked_indices"
            ],
            "og:title": "public/status",
            "title": "public/status"
          }
        }
      }
    },
    "/public/subscribe": {
      "get": {
        "security": [],
        "description": "Subscribe to one or more channels. This is the same method as `/private/subscribe`, but it can only be used for 'public' channels.\n\nFor a complete list of available subscription channels and their notification formats, see [Notifications and Subscriptions](https://docs.deribit.com/articles/notifications).\n\n**Note - This method has distinct API rate limiting requirements:** Sustained rate: ~3.3 requests/second. For more information, see [Rate Limits](https://docs.deribit.com/articles/rate-limits).\n\n**📖 Related Article:** [Market Data Collection Best Practices](https://docs.deribit.com/articles/market-data-collection-best-practices)\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fsubscribe)\n\n",
        "parameters": [
          {
            "description": "A list of channels to subscribe to. See [Notifications and Subscriptions](https://docs.deribit.com/articles/notifications) for all available channels.",
            "explode": true,
            "in": "query",
            "name": "channels",
            "required": true,
            "schema": {
              "example": [
                "deribit_price_index.btc_usd"
              ],
              "items": {
                "example": "deribit_price_index.btc_usd",
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 3600,
                    "jsonrpc": "2.0",
                    "method": "public/subscribe",
                    "params": {
                      "channels": [
                        "deribit_price_index.btc_usd"
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PrivateSubscribeResponse"
          },
          "401": {
            "$ref": "#/components/responses/ErrorMessageResponse"
          }
        },
        "tags": [
          "Subscription Management",
          "Public",
          "WebSocket Only"
        ],
        "x-mint": {
          "href": "/api-reference/subscription-management/public-subscribe",
          "metadata": {
            "keywords": [
              "public/subscribe",
              "channels"
            ],
            "og:title": "public/subscribe",
            "title": "public/subscribe"
          }
        }
      }
    },
    "/public/test": {
      "get": {
        "security": [],
        "description": "Tests the connection to the API server, and returns its version. You can use this to make sure the API is reachable, and matches the expected version.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Ftest)\n\n",
        "parameters": [
          {
            "description": "The value \"exception\" will trigger an error response. This may be useful for testing wrapper libraries.",
            "in": "query",
            "name": "expected_result",
            "required": false,
            "schema": {
              "enum": [
                "exception"
              ],
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 8212,
                    "jsonrpc": "2.0",
                    "method": "public/test",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicTestResponse"
          }
        },
        "tags": [
          "Supporting",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/supporting/public-test",
          "metadata": {
            "keywords": [
              "public/test",
              "expected_result",
              "version"
            ],
            "og:title": "public/test",
            "title": "public/test"
          }
        }
      }
    },
    "/public/ticker": {
      "get": {
        "security": [],
        "description": "Retrieves the ticker (24-hour statistics) for a specific instrument. The ticker includes the last trade price, best bid/ask prices, 24-hour high/low, 24-hour volume, open interest, mark price, and other market statistics.\n\nThis is a lightweight method for getting current market data for a single instrument. For real-time updates, consider using WebSocket subscriptions to ticker channels.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Fticker)\n\n",
        "parameters": [
          {
            "description": "Instrument name",
            "in": "query",
            "name": "instrument_name",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/instrument_name"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 8106,
                    "jsonrpc": "2.0",
                    "method": "public/ticker",
                    "params": {
                      "instrument_name": "BTC-PERPETUAL"
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/PublicTickerResponse"
          }
        },
        "tags": [
          "Market Data",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/market-data/public-ticker",
          "metadata": {
            "keywords": [
              "public/ticker",
              "instrument_name",
              "timestamp",
              "state",
              "stats",
              "open_interest",
              "best_bid_price",
              "best_bid_amount",
              "best_ask_price",
              "best_ask_amount",
              "index_price",
              "min_price",
              "max_price",
              "mark_price",
              "last_price",
              "underlying_price",
              "underlying_index",
              "interest_rate",
              "bid_iv",
              "ask_iv",
              "mark_iv",
              "greeks",
              "funding_8h",
              "current_funding",
              "interest_value",
              "delivery_price",
              "settlement_price",
              "estimated_delivery_price",
              "volume",
              "low",
              "high",
              "price_change",
              "volume_usd",
              "delta",
              "gamma",
              "rho",
              "theta",
              "vega"
            ],
            "og:title": "public/ticker",
            "title": "public/ticker"
          }
        }
      }
    },
    "/public/unsubscribe": {
      "get": {
        "security": [],
        "description": "Unsubscribe from one or more channels. The response contains only the channels that were successfully unsubscribed in this request.\n\nFor a complete list of available subscription channels and their notification formats, see [Notifications and Subscriptions](https://docs.deribit.com/articles/notifications).\n\n**Note:** The `result` field in the response contains only the channels that were successfully processed and unsubscribed from this specific request. It does not include all previously subscribed topics. If a channel in the request is invalid, not subscribed, or fails validation, it will not appear in the result.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Funsubscribe)\n\n",
        "parameters": [
          {
            "description": "A list of channels to unsubscribe from. Only successfully unsubscribed channels will be returned in the result. See [Notifications and Subscriptions](https://docs.deribit.com/articles/notifications) for all available channels.",
            "explode": true,
            "in": "query",
            "name": "channels",
            "required": true,
            "schema": {
              "example": [
                "deribit_price_index.btc_usd"
              ],
              "items": {
                "example": "deribit_price_index.btc_usd",
                "type": "string"
              },
              "type": "array"
            },
            "style": "form"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 8691,
                    "jsonrpc": "2.0",
                    "method": "public/unsubscribe",
                    "params": {
                      "channels": [
                        "deribit_price_index.btc_usd"
                      ]
                    }
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/Getunsubscribe200response"
          },
          "401": {
            "$ref": "#/components/responses/ErrorMessageResponse"
          }
        },
        "tags": [
          "Subscription Management",
          "Public",
          "WebSocket Only"
        ],
        "x-mint": {
          "href": "/api-reference/subscription-management/public-unsubscribe",
          "metadata": {
            "keywords": [
              "public/unsubscribe",
              "channels"
            ],
            "og:title": "public/unsubscribe",
            "title": "public/unsubscribe"
          }
        }
      }
    },
    "/public/unsubscribe_all": {
      "get": {
        "security": [],
        "description": "Unsubscribe from all the channels subscribed so far. This method takes no parameters.\n\n[Try in API console](https://test.deribit.com/api_console?method=%2Fpublic%2Funsubscribe_all)\n\n",
        "requestBody": {
          "content": {
            "application/json": {
              "examples": {
                "request": {
                  "description": "JSON-RPC Request Example",
                  "value": {
                    "id": 153,
                    "jsonrpc": "2.0",
                    "method": "public/unsubscribe_all",
                    "params": {}
                  }
                }
              }
            }
          },
          "description": "JSON-RPC request body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/OkResponse"
          }
        },
        "tags": [
          "Subscription Management",
          "WebSocket Only",
          "Public"
        ],
        "x-mint": {
          "href": "/api-reference/subscription-management/public-unsubscribe_all",
          "metadata": {
            "keywords": [
              "public/unsubscribe_all"
            ],
            "og:title": "public/unsubscribe_all",
            "title": "public/unsubscribe_all"
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://drb.coinbase.com/api/v2"
    }
  ],
  "tags": [
    {
      "description": "Can only be used over websockets.",
      "name": "WebSocket Only"
    },
    {
      "description": "Public methods can be used without authentication.",
      "name": "Public"
    },
    {
      "description": "<p>Private methods require authentication. All requests must include a valid OAuth2 token.</p>\n<p>A token can be requested using the <a href=\"#public-auth\">/public/auth</a> method.</p>\n<p>When using the websockets protocol, the token must be included as a parameter <code>access_token</code> in the message. When using REST (HTTP GET), the token may also be passed in the <code>Authorization</code> header.</p>",
      "name": "Private"
    },
    {
      "name": "Authentication"
    },
    {
      "name": "Session Management"
    },
    {
      "description": "Subscription works as [notifications](#notifications), so users will automatically (after subscribing) receive messages from the server. Overview for each channel response format is described in [subscriptions](#subscriptions) section.",
      "name": "Subscription Management"
    },
    {
      "name": "Account Management"
    },
    {
      "name": "Trading"
    },
    {
      "name": "Market Data"
    }
  ]
}
