| Schedule of Securities under repurchase agreement obligations | 
 As of March 31, 2023 and 2022, trading securities included collateralized securities subject to repurchase agreements as described in the following table: 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
|   | 
March 31, 2023 | 
 
|   | 
Interest rates and remaining contractual maturity of the agreements | 
 
|   | 
Average interest rate | 
 | 
Up to 30 days | 
 | 
30-90 days | 
 | 
Over 90 days | 
 | 
Total | 
 
|   | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Securities sold under repurchase agreements  | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Non-US sovereign debt | 
15.98  | 
% | 
 | 
$ | 
826,196  | 
 | 
 | 
$ | 
55,265  | 
 | 
 | 
$ | 
—  | 
 | 
 | 
$ | 
881,461  | 
 | 
 
| Corporate debt | 
16.07  | 
% | 
 | 
597,559  | 
 | 
 | 
5,375  | 
 | 
 | 
—  | 
 | 
 | 
602,934  | 
 | 
 
| US sovereign debt  | 
1.52  | 
% | 
 | 
17,637  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
17,637  | 
 | 
 
| Corporate equity | 
12.24  | 
% | 
 | 
15,384  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
15,384  | 
 | 
 
| Total securities sold under repurchase agreements | 
  | 
 | 
$ | 
1,456,776 
 | 
 | 
 | 
$ | 
60,640 
 | 
 | 
 | 
$ | 
— 
 | 
 | 
 | 
$ | 
1,517,416 
 | 
 | 
 
  
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
 | 
March 31, 2022 (Recasted) | 
 
 | 
Interest rates and remaining contractual maturity of the agreements | 
 
 | 
Average interest rate | 
 | 
Up to 30 days | 
 | 
30-90 days | 
 | 
Over 90 days | 
 | 
Total | 
 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Securities sold under repurchase agreements  | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
 
| Corporate debt | 
11.96  | 
% | 
 | 
$ | 
609,405  | 
 | 
 | 
$ | 
142  | 
 | 
 | 
$ | 
—  | 
 | 
 | 
$ | 
609,547  | 
 | 
 
| Non-US sovereign debt | 
10.85  | 
% | 
 | 
222,893  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
222,893  | 
 | 
 
| US sovereign debt | 
0.77  | 
% | 
 | 
7,396  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
7,396  | 
 | 
 
| Corporate equity | 
14.00  | 
% | 
 | 
388  | 
 | 
 | 
—  | 
 | 
 | 
—  | 
 | 
 | 
388  | 
 | 
 
| Total securities sold under repurchase agreements | 
 | 
 | 
$ | 
840,082 
 | 
 | 
 | 
$ | 
142 
 | 
 | 
 | 
$ | 
— 
 | 
 | 
 | 
$ | 
840,224 
 | 
 | 
 
 
 |