| Schedule of Assets and Liabilities Measured at Fair Value on Recurring Basis | 
 The following tables present information about the Company's assets and liabilities measured at fair value on a recurring basis as of March 31, 2023 and June 30, 2022, aggregated by each fair value hierarchy level:  
  
      
       
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
        
       
        in thousands  | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
           | 
           | 
        March 31, 2023  | 
           | 
        
       
           | 
           | 
        Quoted Price in Active Markets for Identical Instruments (Level 1)  | 
           | 
           | 
        Significant Other Observable Inputs (Level 2)  | 
           | 
           | 
        Significant Unobservable Inputs (Level 3)  | 
           | 
           | 
        Total  | 
           | 
        
       
        Assets:  | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
        Inventories(1)  | 
           | 
        $  | 
        966,564  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        966,564  | 
           | 
        
       
        Precious metals held under financing arrangements  | 
           | 
           | 
        24,014  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        24,014  | 
           | 
        
       
        Derivative assets — open sale and purchase commitments, net  | 
           | 
           | 
        56,624  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        56,624  | 
           | 
        
       
        Derivative assets — forward contracts  | 
           | 
           | 
        1,832  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        1,832  | 
           | 
        
       
        Option to purchase interest in a long-term investment  | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        5,300  | 
           | 
           | 
           | 
        5,300  | 
           | 
        
       
        Total assets, valued at fair value  | 
           | 
        $  | 
        1,049,034  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        5,300  | 
           | 
           | 
        $  | 
        1,054,334  | 
           | 
        
       
        Liabilities:  | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
        Liabilities on borrowed metals  | 
           | 
        $  | 
        25,730  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        25,730  | 
           | 
        
       
        Product financing arrangements  | 
           | 
           | 
        292,104  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        292,104  | 
           | 
        
       
        Derivative liabilities — open sale and purchase commitments, net  | 
           | 
           | 
        10,599  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        10,599  | 
           | 
        
       
        Derivative liabilities — margin accounts  | 
           | 
           | 
        5,564  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        5,564  | 
           | 
        
       
        Derivative liabilities — futures contracts  | 
           | 
           | 
        10,071  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        10,071  | 
           | 
        
       
        Derivative liabilities — forward contracts  | 
           | 
           | 
        57,096  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        57,096  | 
           | 
        
       
        Total liabilities, valued at fair value  | 
           | 
        $  | 
        401,164  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        401,164  | 
           | 
        
       
  
(1)
Commemorative coin inventory totaling $1.0 million is held at lower of cost or realizable value, and thus is excluded from the inventories balance shown in this table.
 
 
  
      
       
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
         | 
        
       
        in thousands  | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
           | 
           | 
        June 30, 2022  | 
           | 
        
       
           | 
           | 
        Quoted Price in Active Markets for Identical Instruments (Level 1)  | 
           | 
           | 
        Significant Other Observable Inputs (Level 2)  | 
           | 
           | 
        Significant Unobservable Inputs (Level 3)  | 
           | 
           | 
        Total  | 
           | 
        
       
        Assets:  | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
        Inventories(1)  | 
           | 
        $  | 
        739,584  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        739,584  | 
           | 
        
       
        Precious metals held under financing arrangements  | 
           | 
           | 
        79,766  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        79,766  | 
           | 
        
       
        Derivative assets — open sale and purchase commitments, net  | 
           | 
           | 
        27,423  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        27,423  | 
           | 
        
       
        Derivative assets — futures contracts  | 
           | 
           | 
        20,245  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        20,245  | 
           | 
        
       
        Derivative assets — forward contracts  | 
           | 
           | 
        44,075  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        44,075  | 
           | 
        
       
        Option to purchase interest in a long-term investment  | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        5,300  | 
           | 
           | 
           | 
        5,300  | 
           | 
        
       
        Total assets, valued at fair value  | 
           | 
        $  | 
        911,093  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        5,300  | 
           | 
           | 
        $  | 
        916,393  | 
           | 
        
       
        Liabilities:  | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
           | 
        
       
        Liabilities on borrowed metals  | 
           | 
        $  | 
        59,417  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        59,417  | 
           | 
        
       
        Product financing arrangements  | 
           | 
           | 
        282,671  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        282,671  | 
           | 
        
       
        Derivative liabilities — open sale and purchase commitments, net  | 
           | 
           | 
        70,564  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        70,564  | 
           | 
        
       
        Derivative liabilities — margin accounts  | 
           | 
           | 
        4,686  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        4,686  | 
           | 
        
       
        Derivative liabilities — forward contracts  | 
           | 
           | 
        530  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        —  | 
           | 
           | 
           | 
        530  | 
           | 
        
       
        Total liabilities, valued at fair value  | 
           | 
        $  | 
        417,868  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        —  | 
           | 
           | 
        $  | 
        417,868  | 
           | 
        
       
  
(1)
Commemorative coin inventory totaling $1.4 million is held at lower of cost or net realizable value, and thus is excluded from the inventories balance shown in this table.
 
 
 |