<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>330</ContextCount>
  <ElementCount>358</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>97</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>8</UnitCount>
  <MyReports>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>9952151 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSunaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952152 - Statement - CONDENSED CONSOLIDATED BALANCE SHEETS (unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSunauditedParenthetical</Role>
      <ShortName>CONDENSED CONSOLIDATED BALANCE SHEETS (unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952153 - Statement - CONDENSED CONSOLIDATED INCOME STATEMENTS (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CONDENSEDCONSOLIDATEDINCOMESTATEMENTSunaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED INCOME STATEMENTS (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952154 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCOMPREHENSIVEINCOMEunaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF COMPREHENSIVE INCOME (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952155 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY AND NONCONTROLLING INTERESTS (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYANDNONCONTROLLINGINTERESTSunaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY AND NONCONTROLLING INTERESTS (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952156 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY AND NONCONTROLLING INTERESTS (unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCHANGESINSTOCKHOLDERSEQUITYANDNONCONTROLLINGINTERESTSunauditedParenthetical</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY AND NONCONTROLLING INTERESTS (unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952157 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFCASHFLOWSunaudited</Role>
      <ShortName>CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS (unaudited)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952158 - Statement - CONDENSED CONSOLIDATED INCOME STATEMENTS (unaudited) (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CONDENSEDCONSOLIDATEDINCOMESTATEMENTSunauditedParenthetical</Role>
      <ShortName>CONDENSED CONSOLIDATED INCOME STATEMENTS (unaudited) (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Organization</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Organization</Role>
      <ShortName>Organization</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Summary of significant accounting policies and estimates</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Summaryofsignificantaccountingpoliciesandestimates</Role>
      <ShortName>Summary of significant accounting policies and estimates</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Financial Instruments - Credit Losses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/FinancialInstrumentsCreditLosses</Role>
      <ShortName>Financial Instruments - Credit Losses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Leases</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Leases</Role>
      <ShortName>Leases</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Revenue from contracts with customers</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Revenuefromcontractswithcustomers</Role>
      <ShortName>Revenue from contracts with customers</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Earnings per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Earningspershare</Role>
      <ShortName>Earnings per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Receivable from and payable to brokers, dealers and clearing organizations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Receivablefromandpayabletobrokersdealersandclearingorganizations</Role>
      <ShortName>Receivable from and payable to brokers, dealers and clearing organizations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Fair value measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Fairvaluemeasurements</Role>
      <ShortName>Fair value measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Collateralized transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Collateralizedtransactions</Role>
      <ShortName>Collateralized transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Variable interest entities ("VIEs")</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/VariableinterestentitiesVIEs</Role>
      <ShortName>Variable interest entities ("VIEs")</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Income taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Incometaxes</Role>
      <ShortName>Income taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Stockholders' Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/StockholdersEquity</Role>
      <ShortName>Stockholders' Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - Regulatory requirements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Regulatoryrequirements</Role>
      <ShortName>Regulatory requirements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952173 - Disclosure - Segment information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Segmentinformation</Role>
      <ShortName>Segment information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>9952174 - Disclosure - Subsequent events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/Subsequentevents</Role>
      <ShortName>Subsequent events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Summary of significant accounting policies and estimates (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/SummaryofsignificantaccountingpoliciesandestimatesPolicies</Role>
      <ShortName>Summary of significant accounting policies and estimates (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Financial Instruments - Credit Losses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/FinancialInstrumentsCreditLossesTables</Role>
      <ShortName>Financial Instruments - Credit Losses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.opco.com/role/FinancialInstrumentsCreditLosses</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Leases (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/LeasesTables</Role>
      <ShortName>Leases (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.opco.com/role/Leases</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Revenue from contracts with customers (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/RevenuefromcontractswithcustomersTables</Role>
      <ShortName>Revenue from contracts with customers (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.opco.com/role/Revenuefromcontractswithcustomers</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Earnings per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/EarningspershareTables</Role>
      <ShortName>Earnings per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.opco.com/role/Earningspershare</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Receivable from and payable to brokers, dealers and clearing organizations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/ReceivablefromandpayabletobrokersdealersandclearingorganizationsTables</Role>
      <ShortName>Receivable from and payable to brokers, dealers and clearing organizations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.opco.com/role/Receivablefromandpayabletobrokersdealersandclearingorganizations</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Fair value measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/FairvaluemeasurementsTables</Role>
      <ShortName>Fair value measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.opco.com/role/Fairvaluemeasurements</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Collateralized transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CollateralizedtransactionsTables</Role>
      <ShortName>Collateralized transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.opco.com/role/Collateralizedtransactions</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Variable interest entities ("VIEs") (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/VariableinterestentitiesVIEsTables</Role>
      <ShortName>Variable interest entities ("VIEs") (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.opco.com/role/VariableinterestentitiesVIEs</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Stockholders' Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/StockholdersEquityTables</Role>
      <ShortName>Stockholders' Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.opco.com/role/StockholdersEquity</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Segment information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/SegmentinformationTables</Role>
      <ShortName>Segment information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.opco.com/role/Segmentinformation</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Organization (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/OrganizationDetails</Role>
      <ShortName>Organization (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.opco.com/role/Organization</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Financial Instruments - Credit Losses - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/FinancialInstrumentsCreditLossesNarrativeDetails</Role>
      <ShortName>Financial Instruments - Credit Losses - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Financial Instruments - Credit Losses - Schedule of Disaggregation of Defaulted Notes by Year of Default (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.opco.com/role/FinancialInstrumentsCreditLossesScheduleofDisaggregationofDefaultedNotesbyYearofDefaultDetails</Role>
      <ShortName>Financial Instruments - Credit Losses - Schedule of Disaggregation of Defaulted Notes by Year of Default (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Financial Instruments - Credit Losses - Schedule of Activity in Allowance for Uncollectibles of Defaulted Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.opco.com/role/FinancialInstrumentsCreditLossesScheduleofActivityinAllowanceforUncollectiblesofDefaultedNotesDetails</Role>
      <ShortName>Financial Instruments - Credit Losses - Schedule of Activity in Allowance for Uncollectibles of Defaulted Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Leases - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/LeasesNarrativeDetails</Role>
      <ShortName>Leases - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Leases - Schedule of Weighted Average Lease Term and Weighted Average Discount Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/LeasesScheduleofWeightedAverageLeaseTermandWeightedAverageDiscountRateDetails</Role>
      <ShortName>Leases - Schedule of Weighted Average Lease Term and Weighted Average Discount Rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Leases - Schedule of Operating Lease Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/LeasesScheduleofOperatingLeaseCostsDetails</Role>
      <ShortName>Leases - Schedule of Operating Lease Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Leases - Schedule of Maturities of Lease Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/LeasesScheduleofMaturitiesofLeaseLiabilitiesDetails</Role>
      <ShortName>Leases - Schedule of Maturities of Lease Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Revenue from contracts with customers - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/RevenuefromcontractswithcustomersNarrativeDetails</Role>
      <ShortName>Revenue from contracts with customers - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Revenue from contracts with customers - Schedule of Disaggregation of Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/RevenuefromcontractswithcustomersScheduleofDisaggregationofRevenueDetails</Role>
      <ShortName>Revenue from contracts with customers - Schedule of Disaggregation of Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Revenue from contracts with customers - Schedule of Receivables and Deferred Revenue Balances from Contracts with Customers (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/RevenuefromcontractswithcustomersScheduleofReceivablesandDeferredRevenueBalancesfromContractswithCustomersDetails</Role>
      <ShortName>Revenue from contracts with customers - Schedule of Receivables and Deferred Revenue Balances from Contracts with Customers (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Earnings per share - Schedule of Earnings Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/EarningspershareScheduleofEarningsPerShareDetails</Role>
      <ShortName>Earnings per share - Schedule of Earnings Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Receivable from and payable to brokers, dealers and clearing organizations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/ReceivablefromandpayabletobrokersdealersandclearingorganizationsDetails</Role>
      <ShortName>Receivable from and payable to brokers, dealers and clearing organizations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.opco.com/role/ReceivablefromandpayabletobrokersdealersandclearingorganizationsTables</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Fair value measurements - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/FairvaluemeasurementsNarrativeDetails</Role>
      <ShortName>Fair value measurements - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Fair value measurements - Schedule of Investments in Company-Sponsored Funds (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/FairvaluemeasurementsScheduleofInvestmentsinCompanySponsoredFundsDetails</Role>
      <ShortName>Fair value measurements - Schedule of Investments in Company-Sponsored Funds (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Fair value measurements - Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/FairvaluemeasurementsScheduleofAssetsandLiabilitiesMeasuredatFairValueonRecurringBasisDetails</Role>
      <ShortName>Fair value measurements - Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Fair value measurements - Schedule of Changes in Level 3 Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/FairvaluemeasurementsScheduleofChangesinLevel3AssetsandLiabilitiesMeasuredatFairValueonaRecurringBasisDetails</Role>
      <ShortName>Fair value measurements - Schedule of Changes in Level 3 Assets and Liabilities Measured at Fair Value on a Recurring Basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Fair value measurements - Schedule of Assets and Liabilities Not Measured at Fair Value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/FairvaluemeasurementsScheduleofAssetsandLiabilitiesNotMeasuredatFairValueDetails</Role>
      <ShortName>Fair value measurements - Schedule of Assets and Liabilities Not Measured at Fair Value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Fair value measurements - Schedule of Notional Amounts and Fair Values of Derivatives by Product (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/FairvaluemeasurementsScheduleofNotionalAmountsandFairValuesofDerivativesbyProductDetails</Role>
      <ShortName>Fair value measurements - Schedule of Notional Amounts and Fair Values of Derivatives by Product (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Fair value measurements - Schedule of Fair Value Amounts of Derivative Instruments and their Effect on Consolidated Income Statements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/FairvaluemeasurementsScheduleofFairValueAmountsofDerivativeInstrumentsandtheirEffectonConsolidatedIncomeStatementsDetails</Role>
      <ShortName>Fair value measurements - Schedule of Fair Value Amounts of Derivative Instruments and their Effect on Consolidated Income Statements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Collateralized transactions - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CollateralizedtransactionsNarrativeDetails</Role>
      <ShortName>Collateralized transactions - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Collateralized transactions - Schedule of Disaggregation of Gross Obligation by Class of Collateral Pledged and Remaining Contractual Maturity of Repurchase Agreements and Securities Loaned Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CollateralizedtransactionsScheduleofDisaggregationofGrossObligationbyClassofCollateralPledgedandRemainingContractualMaturityofRepurchaseAgreementsandSecuritiesLoanedTransactionsDetails</Role>
      <ShortName>Collateralized transactions - Schedule of Disaggregation of Gross Obligation by Class of Collateral Pledged and Remaining Contractual Maturity of Repurchase Agreements and Securities Loaned Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Collateralized transactions - Schedule of Gross Amounts and Offsetting Amounts of Reverse Repurchase Agreements, Repurchase Agreements, Securities Borrowed and Securities Loaned Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CollateralizedtransactionsScheduleofGrossAmountsandOffsettingAmountsofReverseRepurchaseAgreementsRepurchaseAgreementsSecuritiesBorrowedandSecuritiesLoanedTransactionsDetails</Role>
      <ShortName>Collateralized transactions - Schedule of Gross Amounts and Offsetting Amounts of Reverse Repurchase Agreements, Repurchase Agreements, Securities Borrowed and Securities Loaned Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Variable interest entities ("VIEs") - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/VariableinterestentitiesVIEsNarrativeDetails</Role>
      <ShortName>Variable interest entities ("VIEs") - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.opco.com/role/VariableinterestentitiesVIEsTables</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Variable interest entities ("VIEs") - Assets and Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/VariableinterestentitiesVIEsAssetsandLiabilitiesDetails</Role>
      <ShortName>Variable interest entities ("VIEs") - Assets and Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.opco.com/role/VariableinterestentitiesVIEsTables</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Variable interest entities ("VIEs") - Schedule of Unfunded Commitments VIEs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/VariableinterestentitiesVIEsScheduleofUnfundedCommitmentsVIEsDetails</Role>
      <ShortName>Variable interest entities ("VIEs") - Schedule of Unfunded Commitments VIEs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.opco.com/role/VariableinterestentitiesVIEsTables</ParentRole>
      <Position>63</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Income taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/IncometaxesDetails</Role>
      <ShortName>Income taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.opco.com/role/Incometaxes</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Stockholders' Equity - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/StockholdersEquityNarrativeDetails</Role>
      <ShortName>Stockholders' Equity - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Stockholders' Equity - Schedule of Changes in Number of Shares of Class A Stock Outstanding (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/StockholdersEquityScheduleofChangesinNumberofSharesofClassAStockOutstandingDetails</Role>
      <ShortName>Stockholders' Equity - Schedule of Changes in Number of Shares of Class A Stock Outstanding (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/CommitmentsandContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.opco.com/role/CommitmentsandContingencies</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Regulatory requirements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/RegulatoryrequirementsDetails</Role>
      <ShortName>Regulatory requirements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.opco.com/role/Regulatoryrequirements</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Segment information - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/SegmentinformationNarrativeDetails</Role>
      <ShortName>Segment information - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Segment information - Schedule of Reported Revenue and Pre-Tax Income (Loss) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/SegmentinformationScheduleofReportedRevenueandPreTaxIncomeLossDetails</Role>
      <ShortName>Segment information - Schedule of Reported Revenue and Pre-Tax Income (Loss) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="opy-20260331.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Segment information - Schedule of Revenue Classified by Major Geographic Areas (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.opco.com/role/SegmentinformationScheduleofRevenueClassifiedbyMajorGeographicAreasDetails</Role>
      <ShortName>Segment information - Schedule of Revenue Classified by Major Geographic Areas (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q" isDefinitelyFs="true" isUsgaap="true" original="opy-20260331.htm">opy-20260331.htm</File>
    <File>opy-20260331.xsd</File>
    <File>opy-20260331_cal.xml</File>
    <File>opy-20260331_def.xml</File>
    <File>opy-20260331_lab.xml</File>
    <File>opy-20260331_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="17">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="983">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="30">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="4">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
