@gloom-sh/terminal 0.20.10 → 0.20.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/package.json +1 -1
  2. package/patches/@opentui%2Fcore@0.3.2.patch +16 -0
  3. package/src/api-client/socket-connection.ts +355 -0
  4. package/src/api-client/socket-features.ts +75 -0
  5. package/src/api-client/socket-frames.ts +161 -0
  6. package/src/api-client/socket-listeners.ts +207 -0
  7. package/src/api-client/socket-quotes.ts +332 -0
  8. package/src/api-client/socket.ts +150 -983
  9. package/src/brokers/signed-in/adapter.ts +19 -5
  10. package/src/brokers/signed-in/client.ts +13 -1
  11. package/src/brokers/signed-in/sign-in-dialog.tsx +33 -9
  12. package/src/components/chart/native/kitty/manager.ts +2 -0
  13. package/src/components/chart/native/surface/manager.ts +211 -11
  14. package/src/components/command-bar/panel/index.tsx +2 -13
  15. package/src/components/command-bar/panel/layout.ts +1 -7
  16. package/src/components/command-bar/panel/runtime.ts +0 -1
  17. package/src/components/command-bar/panel/types.ts +0 -2
  18. package/src/components/data-table/column-menu.tsx +89 -0
  19. package/src/components/data-table/sort-menu.tsx +9 -2
  20. package/src/components/data-table/view.tsx +33 -6
  21. package/src/components/form-modal/content.tsx +10 -0
  22. package/src/components/index.ts +1 -1
  23. package/src/components/layout/pane/footer/index.tsx +25 -11
  24. package/src/components/layout/pane/footer/model.ts +62 -20
  25. package/src/components/layout/pane/sidebar.tsx +125 -15
  26. package/src/components/layout/shell/active-drag.ts +18 -13
  27. package/src/components/layout/shell/drag/magnets.ts +34 -18
  28. package/src/components/ticker/list-table-view.tsx +5 -0
  29. package/src/components/ui/data-table/column-order.ts +180 -0
  30. package/src/components/ui/data-table/index.tsx +12 -1
  31. package/src/components/ui/data-table/opentui/index.tsx +267 -23
  32. package/src/components/ui/data-table/opentui/model.ts +43 -4
  33. package/src/components/ui/data-table/types.ts +49 -0
  34. package/src/components/ui/data-table/use-column-order.ts +135 -0
  35. package/src/components/ui/index.ts +1 -1
  36. package/src/components/ui/table-layout.ts +120 -0
  37. package/src/docs/snapshot.json +3 -2
  38. package/src/i18n/es.ts +2 -0
  39. package/src/i18n/ja.ts +2 -0
  40. package/src/i18n/ko.ts +2 -0
  41. package/src/i18n/zh-cn.ts +2 -0
  42. package/src/i18n/zh-tw.ts +2 -0
  43. package/src/market-data/coordinator/index.ts +4 -3
  44. package/src/market-data/coordinator/quotes.ts +12 -4
  45. package/src/market-data/quotes/freshness.ts +12 -0
  46. package/src/market-data/quotes/live-valuation.ts +1 -1
  47. package/src/market-data/quotes/regular-session-valuation.ts +1 -1
  48. package/src/plugins/builtin/broker-manager/detail.tsx +5 -3
  49. package/src/plugins/builtin/broker-manager/index.tsx +6 -6
  50. package/src/plugins/builtin/broker-manager/model.ts +15 -6
  51. package/src/plugins/builtin/broker-manager/pane-actions.tsx +11 -4
  52. package/src/plugins/builtin/broker-manager/sign-in-end.ts +50 -19
  53. package/src/plugins/builtin/broker-manager/table.ts +10 -4
  54. package/src/plugins/builtin/chat/sidebar.tsx +33 -16
  55. package/src/plugins/builtin/cloud/askg/tool-timeline.tsx +2 -0
  56. package/src/plugins/builtin/equity-screener/live.ts +74 -18
  57. package/src/plugins/builtin/equity-screener/model.ts +19 -4
  58. package/src/plugins/builtin/equity-screener/pane.tsx +19 -14
  59. package/src/plugins/builtin/equity-screener/refresh-anchor.ts +45 -0
  60. package/src/plugins/builtin/equity-screener/results.ts +22 -2
  61. package/src/plugins/builtin/equity-screener/screen-check.ts +9 -3
  62. package/src/plugins/builtin/futures/index.tsx +15 -1
  63. package/src/plugins/builtin/futures/table.tsx +1 -1
  64. package/src/plugins/builtin/fx-matrix/index.tsx +2 -0
  65. package/src/plugins/builtin/holders/pane.tsx +30 -20
  66. package/src/plugins/builtin/iv-history/events.ts +5 -0
  67. package/src/plugins/builtin/iv-history/headless.ts +7 -2
  68. package/src/plugins/builtin/kelly-sizer/sections.tsx +2 -0
  69. package/src/plugins/builtin/macro-day/headless.ts +12 -3
  70. package/src/plugins/builtin/options/view.tsx +2 -0
  71. package/src/plugins/builtin/options-scenario/pane.tsx +2 -1
  72. package/src/plugins/builtin/perps/cascade-tabs.tsx +2 -1
  73. package/src/plugins/builtin/portfolio-list/pane/index.tsx +13 -0
  74. package/src/plugins/builtin/portfolio-list/table.tsx +5 -0
  75. package/src/plugins/builtin/rate-path/pane.tsx +2 -0
  76. package/src/plugins/builtin/revenue-breakdown/pane.tsx +2 -0
  77. package/src/plugins/builtin/reverse-dcf/pane.tsx +2 -1
  78. package/src/plugins/builtin/seasonality/pane.tsx +2 -1
  79. package/src/plugins/builtin/thirteenf/pane.tsx +2 -0
  80. package/src/plugins/builtin/ticker-detail/financials/model.ts +28 -6
  81. package/src/plugins/builtin/ticker-detail/financials/ratio-table.tsx +26 -9
  82. package/src/plugins/builtin/ticker-detail/financials/tab.tsx +58 -35
  83. package/src/plugins/builtin/vol-surface/heat-grid.tsx +2 -1
  84. package/src/plugins/builtin/vol-surface/pane.tsx +2 -1
  85. package/src/plugins/builtin/world-indices/index.tsx +5 -1
  86. package/src/plugins/builtin/yield-curve/index.tsx +2 -1
  87. package/src/renderers/dom/data-table/column-drag.ts +147 -0
  88. package/src/renderers/dom/data-table/index.tsx +22 -0
  89. package/src/renderers/dom/data-table/row.tsx +27 -5
  90. package/src/renderers/dom/styles.css +22 -0
  91. package/src/renderers/opentui/chart-surface.tsx +1 -0
  92. package/src/renderers/opentui/frame-hits.ts +33 -0
  93. package/src/renderers/opentui/host.tsx +2 -0
  94. package/src/renderers/opentui/native-surface.ts +14 -21
  95. package/src/renderers/opentui/test-utils.tsx +3 -0
  96. package/src/state/app/context/index.tsx +22 -0
  97. package/src/test-support/app-store.ts +24 -1
  98. package/src/time-series/live-quotes.ts +3 -9
  99. package/src/ui/host.tsx +18 -0
  100. package/src/ui/pointer-drag.ts +11 -2
  101. package/src/utils/fundamentals.ts +14 -3
  102. package/src/utils/share-multiples.cases.json +780 -2
  103. package/src/utils/share-multiples.ts +154 -24
@@ -1,5 +1,5 @@
1
1
  {
2
- "about": "Listings priced as valuation prices them and as the screener's server projects them, from the same payloads: each gets the same trailing P/E, or none for the same reason. The server reads these cases too; the two copies are kept identical. `served` is what the service adds to a stored payload when it serves it; `universe` is the company universe's large companies with their home lines.",
2
+ "about": "Listings priced as valuation prices them and as the screener's server projects them, from the same payloads: each gets the same trailing P/E, or none for the same reason. The server reads these cases too; the two copies are kept identical. `served` is what the service adds to a stored payload when it serves it; `universe` is the company universe's large companies with their home lines. `usdRates` are the cached US dollar rates a screener pass labels a cross-currency block at, and `servedFundamentals` the block the service serves at those rates.",
3
3
  "now": "2026-11-12T07:00:00Z",
4
4
  "universe": [
5
5
  {
@@ -261,7 +261,7 @@
261
261
  ],
262
262
  "expect": {
263
263
  "trailingPE": null,
264
- "because": "in USD beside a price in CAD, with no rate on record"
264
+ "because": "in USD beside a price in CAD"
265
265
  }
266
266
  },
267
267
  {
@@ -884,6 +884,784 @@
884
884
  "expect": {
885
885
  "trailingPE": 12.5
886
886
  }
887
+ },
888
+ {
889
+ "name": "TBT on Munich is a euro price over Tokuyama's yen EPS, converted at the rate valuation names",
890
+ "symbol": "TBT",
891
+ "exchange": "MUNICH",
892
+ "quote": {
893
+ "price": 21.6,
894
+ "currency": "EUR",
895
+ "name": "Tokuyama Corp"
896
+ },
897
+ "fundamentals": {
898
+ "eps": 308.64,
899
+ "trailingPE": 0.06998444790046657,
900
+ "revenue": 349476000000,
901
+ "netIncome": 22205000000,
902
+ "sharesOutstanding": 71944660,
903
+ "source": "gloom"
904
+ },
905
+ "financialCurrency": "JPY",
906
+ "annualStatements": [
907
+ {
908
+ "date": "2025-03-31",
909
+ "currency": "JPY",
910
+ "eps": 325.08,
911
+ "netIncome": 23388000000,
912
+ "totalRevenue": 343073000000
913
+ },
914
+ {
915
+ "date": "2026-03-31",
916
+ "currency": "JPY",
917
+ "eps": 308.64,
918
+ "netIncome": 22205000000,
919
+ "totalRevenue": 349476000000
920
+ }
921
+ ],
922
+ "usdRates": {
923
+ "EUR": 1.1,
924
+ "JPY": 0.006208708
925
+ },
926
+ "servedFundamentals": {
927
+ "financialCurrency": "JPY",
928
+ "trailingPEConversion": {
929
+ "from": "JPY",
930
+ "rate": 0.00564428
931
+ },
932
+ "trailingPE": 12.399180745899667
933
+ },
934
+ "expect": {
935
+ "trailingPE": 12.399180745899667
936
+ }
937
+ },
938
+ {
939
+ "name": "MARA on Stuttgart, Marubeni's yen EPS in euros, with quarters filed since its year",
940
+ "symbol": "MARA",
941
+ "exchange": "XSTU",
942
+ "quote": {
943
+ "price": 29.39,
944
+ "currency": "EUR",
945
+ "name": "Marubeni Corp"
946
+ },
947
+ "fundamentals": {
948
+ "eps": 330.09,
949
+ "trailingPE": 0.08903632342694418,
950
+ "revenue": 8265841000000,
951
+ "netIncome": 543852000000,
952
+ "sharesOutstanding": 1638396915,
953
+ "source": "gloom"
954
+ },
955
+ "financialCurrency": "JPY",
956
+ "annualStatements": [
957
+ {
958
+ "date": "2025-03-31",
959
+ "currency": "JPY",
960
+ "eps": 302.51,
961
+ "netIncome": 502965000000,
962
+ "totalRevenue": 7790168000000
963
+ },
964
+ {
965
+ "date": "2026-03-31",
966
+ "currency": "JPY",
967
+ "eps": 330.09,
968
+ "netIncome": 543852000000,
969
+ "totalRevenue": 8265841000000
970
+ }
971
+ ],
972
+ "quarterlyStatements": [
973
+ {
974
+ "date": "2025-09-30",
975
+ "currency": "JPY",
976
+ "netIncome": 151097000000,
977
+ "totalRevenue": 2039644000000
978
+ },
979
+ {
980
+ "date": "2025-12-31",
981
+ "currency": "JPY",
982
+ "netIncome": 126793000000,
983
+ "totalRevenue": 1969053000000
984
+ },
985
+ {
986
+ "date": "2026-03-31",
987
+ "currency": "JPY",
988
+ "netIncome": 111562000000,
989
+ "totalRevenue": 2093422000000
990
+ },
991
+ {
992
+ "date": "2026-06-30",
993
+ "currency": "JPY",
994
+ "eps": 114.19,
995
+ "netIncome": 186432000000,
996
+ "totalRevenue": 2609225000000
997
+ },
998
+ {
999
+ "date": "2026-09-30",
1000
+ "currency": "JPY",
1001
+ "netIncome": 151595000000,
1002
+ "totalRevenue": 2570903000000
1003
+ }
1004
+ ],
1005
+ "usdRates": {
1006
+ "EUR": 1.1,
1007
+ "JPY": 0.006208708
1008
+ },
1009
+ "servedFundamentals": {
1010
+ "financialCurrency": "JPY",
1011
+ "trailingPEConversion": {
1012
+ "from": "JPY",
1013
+ "rate": 0.00564428
1014
+ },
1015
+ "trailingPE": 15.774611363529836
1016
+ },
1017
+ "expect": {
1018
+ "trailingPE": 15.774611363529836
1019
+ }
1020
+ },
1021
+ {
1022
+ "name": "An agorot price over a dollar EPS: the EPS converted into shekels is put in agorot before dividing (32.4, not 3,240)",
1023
+ "symbol": "AGRT",
1024
+ "exchange": "TASE",
1025
+ "quote": {
1026
+ "price": 30000,
1027
+ "currency": "ILA",
1028
+ "name": "Agorot Industries Ltd"
1029
+ },
1030
+ "fundamentals": {
1031
+ "eps": 2.5,
1032
+ "trailingPE": 120,
1033
+ "revenue": 1000000000,
1034
+ "netIncome": 250000000,
1035
+ "sharesOutstanding": 100000000,
1036
+ "source": "gloom"
1037
+ },
1038
+ "financialCurrency": "USD",
1039
+ "annualStatements": [
1040
+ {
1041
+ "date": "2025-12-31",
1042
+ "currency": "USD",
1043
+ "eps": 2.5,
1044
+ "netIncome": 250000000,
1045
+ "totalRevenue": 1000000000
1046
+ }
1047
+ ],
1048
+ "usdRates": {
1049
+ "USD": 1,
1050
+ "ILS": 0.27
1051
+ },
1052
+ "servedFundamentals": {
1053
+ "financialCurrency": "USD",
1054
+ "trailingPEConversion": {
1055
+ "from": "USD",
1056
+ "rate": 3.7037
1057
+ },
1058
+ "trailingPE": 32.4000324000324
1059
+ },
1060
+ "expect": {
1061
+ "trailingPE": 32.4000324000324
1062
+ }
1063
+ },
1064
+ {
1065
+ "name": "A pence price over a euro EPS: the EPS converted into pounds is put in pence",
1066
+ "symbol": "PENC",
1067
+ "exchange": "LSE",
1068
+ "quote": {
1069
+ "price": 1500,
1070
+ "currency": "GBX",
1071
+ "name": "Pence Holdings plc"
1072
+ },
1073
+ "fundamentals": {
1074
+ "eps": 1.2,
1075
+ "trailingPE": 12.5,
1076
+ "revenue": 2000000000,
1077
+ "netIncome": 120000000,
1078
+ "sharesOutstanding": 100000000,
1079
+ "source": "gloom"
1080
+ },
1081
+ "financialCurrency": "EUR",
1082
+ "annualStatements": [
1083
+ {
1084
+ "date": "2025-12-31",
1085
+ "currency": "EUR",
1086
+ "eps": 1.2,
1087
+ "netIncome": 120000000,
1088
+ "totalRevenue": 2000000000
1089
+ }
1090
+ ],
1091
+ "usdRates": {
1092
+ "EUR": 1.1,
1093
+ "GBP": 1.32
1094
+ },
1095
+ "servedFundamentals": {
1096
+ "financialCurrency": "EUR",
1097
+ "trailingPEConversion": {
1098
+ "from": "EUR",
1099
+ "rate": 0.833333
1100
+ },
1101
+ "trailingPE": 15.0000060000024
1102
+ },
1103
+ "expect": {
1104
+ "trailingPE": 15.0000060000024
1105
+ }
1106
+ },
1107
+ {
1108
+ "name": "A South African cents price over a dollar EPS: the EPS converted into rand is put in cents",
1109
+ "symbol": "CNTS",
1110
+ "exchange": "JSE",
1111
+ "quote": {
1112
+ "price": 2359,
1113
+ "currency": "ZAC",
1114
+ "name": "Cents Resources Ltd"
1115
+ },
1116
+ "fundamentals": {
1117
+ "eps": 0.1,
1118
+ "trailingPE": 235.9,
1119
+ "revenue": 500000000,
1120
+ "netIncome": 200000000,
1121
+ "sharesOutstanding": 2000000000,
1122
+ "source": "gloom"
1123
+ },
1124
+ "financialCurrency": "USD",
1125
+ "annualStatements": [
1126
+ {
1127
+ "date": "2026-06-30",
1128
+ "currency": "USD",
1129
+ "eps": 0.1,
1130
+ "netIncome": 200000000,
1131
+ "totalRevenue": 500000000
1132
+ }
1133
+ ],
1134
+ "usdRates": {
1135
+ "USD": 1,
1136
+ "ZAR": 0.059
1137
+ },
1138
+ "servedFundamentals": {
1139
+ "financialCurrency": "USD",
1140
+ "trailingPEConversion": {
1141
+ "from": "USD",
1142
+ "rate": 16.9492
1143
+ },
1144
+ "trailingPE": 13.918061029429117
1145
+ },
1146
+ "expect": {
1147
+ "trailingPE": 13.918061029429117
1148
+ }
1149
+ },
1150
+ {
1151
+ "name": "With both rates on hand, a source P/E that does not match its EPS is said so, not a missing rate",
1152
+ "symbol": "PENM",
1153
+ "exchange": "LSE",
1154
+ "quote": {
1155
+ "price": 1500,
1156
+ "currency": "GBX",
1157
+ "name": "Pence Holdings plc"
1158
+ },
1159
+ "fundamentals": {
1160
+ "eps": 1.2,
1161
+ "trailingPE": 40,
1162
+ "revenue": 2000000000,
1163
+ "netIncome": 120000000,
1164
+ "sharesOutstanding": 100000000,
1165
+ "source": "gloom"
1166
+ },
1167
+ "financialCurrency": "EUR",
1168
+ "annualStatements": [
1169
+ {
1170
+ "date": "2025-12-31",
1171
+ "currency": "EUR",
1172
+ "eps": 1.2,
1173
+ "netIncome": 120000000,
1174
+ "totalRevenue": 2000000000
1175
+ }
1176
+ ],
1177
+ "usdRates": {
1178
+ "EUR": 1.1,
1179
+ "GBP": 1.32
1180
+ },
1181
+ "servedFundamentals": {
1182
+ "financialCurrency": "EUR",
1183
+ "trailingPE": 40
1184
+ },
1185
+ "expect": {
1186
+ "trailingPE": null,
1187
+ "because": "in EUR beside a price in GBP, and the source's P/E does not match that EPS"
1188
+ }
1189
+ },
1190
+ {
1191
+ "name": "Without a rate for the yen, MARA's EPS is its year's own in yen, and there is no P/E",
1192
+ "symbol": "MARA",
1193
+ "exchange": "XSTU",
1194
+ "quote": {
1195
+ "price": 29.39,
1196
+ "currency": "EUR",
1197
+ "name": "Marubeni Corp"
1198
+ },
1199
+ "fundamentals": {
1200
+ "eps": 330.09,
1201
+ "trailingPE": 0.08903632342694418,
1202
+ "revenue": 8265841000000,
1203
+ "netIncome": 543852000000,
1204
+ "sharesOutstanding": 1638396915,
1205
+ "source": "gloom"
1206
+ },
1207
+ "financialCurrency": "JPY",
1208
+ "annualStatements": [
1209
+ {
1210
+ "date": "2025-03-31",
1211
+ "currency": "JPY",
1212
+ "eps": 302.51,
1213
+ "netIncome": 502965000000,
1214
+ "totalRevenue": 7790168000000
1215
+ },
1216
+ {
1217
+ "date": "2026-03-31",
1218
+ "currency": "JPY",
1219
+ "eps": 330.09,
1220
+ "netIncome": 543852000000,
1221
+ "totalRevenue": 8265841000000
1222
+ }
1223
+ ],
1224
+ "quarterlyStatements": [
1225
+ {
1226
+ "date": "2025-09-30",
1227
+ "currency": "JPY",
1228
+ "netIncome": 151097000000,
1229
+ "totalRevenue": 2039644000000
1230
+ },
1231
+ {
1232
+ "date": "2025-12-31",
1233
+ "currency": "JPY",
1234
+ "netIncome": 126793000000,
1235
+ "totalRevenue": 1969053000000
1236
+ },
1237
+ {
1238
+ "date": "2026-03-31",
1239
+ "currency": "JPY",
1240
+ "netIncome": 111562000000,
1241
+ "totalRevenue": 2093422000000
1242
+ },
1243
+ {
1244
+ "date": "2026-06-30",
1245
+ "currency": "JPY",
1246
+ "eps": 114.19,
1247
+ "netIncome": 186432000000,
1248
+ "totalRevenue": 2609225000000
1249
+ },
1250
+ {
1251
+ "date": "2026-09-30",
1252
+ "currency": "JPY",
1253
+ "netIncome": 151595000000,
1254
+ "totalRevenue": 2570903000000
1255
+ }
1256
+ ],
1257
+ "expect": {
1258
+ "trailingPE": null,
1259
+ "because": "in JPY beside a price in EUR"
1260
+ }
1261
+ },
1262
+ {
1263
+ "name": "159682 on SZSE is the ChiNext 50 ETF, though its source types it as equity",
1264
+ "symbol": "159682",
1265
+ "exchange": "SZSE",
1266
+ "quote": {
1267
+ "price": 1.105,
1268
+ "currency": "CNY",
1269
+ "name": "Invesco Great Wall Fund Management Co Ltd - Szse Chinext 50 Index ETF"
1270
+ },
1271
+ "fundamentals": {
1272
+ "eps": 1.27,
1273
+ "trailingPE": 0.87,
1274
+ "forwardPE": 0.8
1275
+ },
1276
+ "expect": {
1277
+ "trailingPE": null,
1278
+ "forwardPE": null,
1279
+ "because": "fund is not a company's share"
1280
+ }
1281
+ },
1282
+ {
1283
+ "name": "BOVA11 is a Brazilian index fund by its name",
1284
+ "symbol": "BOVA11",
1285
+ "exchange": "B3",
1286
+ "quote": {
1287
+ "price": 150,
1288
+ "currency": "BRL",
1289
+ "name": "Ishares Ibovespa Classe de Índice - Responsabilidade Limitada"
1290
+ },
1291
+ "fundamentals": {
1292
+ "eps": 15.21,
1293
+ "trailingPE": 9.86
1294
+ },
1295
+ "expect": {
1296
+ "trailingPE": null,
1297
+ "because": "fund is not a company's share"
1298
+ }
1299
+ },
1300
+ {
1301
+ "name": "Polar Capital Technology Trust is a closed-end fund by its profile",
1302
+ "symbol": "PCT",
1303
+ "exchange": "LSE",
1304
+ "quote": {
1305
+ "price": 5.77,
1306
+ "currency": "GBP",
1307
+ "name": "Polar Capital Technology Ord"
1308
+ },
1309
+ "profile": {
1310
+ "description": "Polar Capital Technology Trust plc is a closed ended equity mutual fund launched and managed by Polar Capital LLP. The fund invests in public equity markets across the globe."
1311
+ },
1312
+ "fundamentals": {
1313
+ "eps": 3.3,
1314
+ "trailingPE": 1.75
1315
+ },
1316
+ "expect": {
1317
+ "trailingPE": null,
1318
+ "because": "fund is not a company's share"
1319
+ }
1320
+ },
1321
+ {
1322
+ "name": "A business development company named a fund keeps its P/E",
1323
+ "symbol": "BXSL",
1324
+ "exchange": "NYSE",
1325
+ "quote": {
1326
+ "price": 26,
1327
+ "currency": "USD",
1328
+ "name": "Blackstone Secured Lending Fund"
1329
+ },
1330
+ "profile": {
1331
+ "description": "Blackstone Secured Lending Fund is a business development company focused on providing financing to private U.S. companies."
1332
+ },
1333
+ "fundamentals": {
1334
+ "eps": 1.3,
1335
+ "trailingPE": 20
1336
+ },
1337
+ "expect": {
1338
+ "trailingPE": 20
1339
+ }
1340
+ },
1341
+ {
1342
+ "name": "A real estate investment trust keeps its P/E",
1343
+ "symbol": "FRT",
1344
+ "exchange": "NYSE",
1345
+ "quote": {
1346
+ "price": 100,
1347
+ "currency": "USD",
1348
+ "name": "Federal Realty Investment Trust"
1349
+ },
1350
+ "profile": {
1351
+ "description": "Federal Realty Investment Trust is a retail-focused real estate investment trust that owns, operates, and redevelops shopping centers."
1352
+ },
1353
+ "fundamentals": {
1354
+ "eps": 4,
1355
+ "trailingPE": 25
1356
+ },
1357
+ "expect": {
1358
+ "trailingPE": 25
1359
+ }
1360
+ },
1361
+ {
1362
+ "name": "A royalty trust keeps its P/E",
1363
+ "symbol": "CRT",
1364
+ "exchange": "NYSE",
1365
+ "quote": {
1366
+ "price": 12,
1367
+ "currency": "USD",
1368
+ "name": "Cross Timbers Royalty Trust"
1369
+ },
1370
+ "profile": {
1371
+ "description": "Cross Timbers Royalty Trust is a royalty trust that holds net profits interests in oil and natural gas properties located in Texas."
1372
+ },
1373
+ "fundamentals": {
1374
+ "eps": 0.5,
1375
+ "trailingPE": 24
1376
+ },
1377
+ "expect": {
1378
+ "trailingPE": 24
1379
+ }
1380
+ },
1381
+ {
1382
+ "name": "A fund sponsor is a company",
1383
+ "symbol": "WT",
1384
+ "exchange": "NYSE",
1385
+ "quote": {
1386
+ "price": 12,
1387
+ "currency": "USD",
1388
+ "name": "WisdomTree, Inc."
1389
+ },
1390
+ "profile": {
1391
+ "description": "WisdomTree, Inc. is an exchange-traded fund sponsor and asset manager headquartered in New York."
1392
+ },
1393
+ "fundamentals": {
1394
+ "eps": 0.6,
1395
+ "trailingPE": 20
1396
+ },
1397
+ "expect": {
1398
+ "trailingPE": 20
1399
+ }
1400
+ },
1401
+ {
1402
+ "name": "A profile carrying another listing's fund name leaves a company its P/E",
1403
+ "symbol": "USAU",
1404
+ "exchange": "NASDAQ",
1405
+ "quote": {
1406
+ "price": 15,
1407
+ "currency": "USD",
1408
+ "name": "U.S. Gold Corp."
1409
+ },
1410
+ "profile": {
1411
+ "name": "Lyxor MSCI USA UCITS ETF",
1412
+ "description": "U.S. Gold Corp. is a U.S.-focused gold exploration and development company."
1413
+ },
1414
+ "fundamentals": {
1415
+ "eps": 0.75,
1416
+ "trailingPE": 20
1417
+ },
1418
+ "expect": {
1419
+ "trailingPE": 20
1420
+ }
1421
+ },
1422
+ {
1423
+ "name": "Cohen & Steers Infrastructure Fund is a closed-end fund: its profile's first sentence is read past \"Inc.\"",
1424
+ "symbol": "UTF",
1425
+ "exchange": "NYSE",
1426
+ "quote": {
1427
+ "price": 25.74,
1428
+ "currency": "USD",
1429
+ "name": "Cohen & Steers Infrastructure Fund, Inc"
1430
+ },
1431
+ "profile": {
1432
+ "name": "Cohen & Steers Infrastructure Fund, Inc.",
1433
+ "description": "Cohen & Steers Infrastructure Fund, Inc. is a closed ended balanced mutual fund launched and managed by Cohen & Steers Capital Management, Inc. The fund invests in public equity and fixed income markets."
1434
+ },
1435
+ "fundamentals": {
1436
+ "eps": 4.76,
1437
+ "trailingPE": 5.407563025210084
1438
+ },
1439
+ "expect": {
1440
+ "trailingPE": null,
1441
+ "because": "fund is not a company's share"
1442
+ }
1443
+ },
1444
+ {
1445
+ "name": "PIMCO Dynamic Income Fund is a closed ended fixed income mutual fund",
1446
+ "symbol": "PDI",
1447
+ "exchange": "NYSE",
1448
+ "quote": {
1449
+ "price": 14.48,
1450
+ "currency": "USD",
1451
+ "name": "PIMCO Dynamic Income Fund"
1452
+ },
1453
+ "profile": {
1454
+ "description": "PIMCO Dynamic Income Fund is a closed ended fixed income mutual fund launched and managed by Pacific Investment Management Company LLC."
1455
+ },
1456
+ "fundamentals": {
1457
+ "eps": 1.4,
1458
+ "trailingPE": 10.342857142857143
1459
+ },
1460
+ "expect": {
1461
+ "trailingPE": null,
1462
+ "because": "fund is not a company's share"
1463
+ }
1464
+ },
1465
+ {
1466
+ "name": "Pershing Square Holdings is a closed-ended fund, read past \"Ltd.\"",
1467
+ "symbol": "PSH",
1468
+ "exchange": "LSE",
1469
+ "quote": {
1470
+ "price": 39.88,
1471
+ "currency": "GBP",
1472
+ "name": "Pershing Square Holdings Ord"
1473
+ },
1474
+ "profile": {
1475
+ "description": "Pershing Square Holdings, Ltd. is a closed-ended balanced fund launched and managed by Pershing Square Capital Management, L.P. It invests in public equity and fixed income markets across the globe."
1476
+ },
1477
+ "fundamentals": {
1478
+ "eps": 9.68,
1479
+ "trailingPE": 4.119834710743802
1480
+ },
1481
+ "expect": {
1482
+ "trailingPE": null,
1483
+ "because": "fund is not a company's share"
1484
+ }
1485
+ },
1486
+ {
1487
+ "name": "Scottish Mortgage is an investment trust",
1488
+ "symbol": "SMT",
1489
+ "exchange": "LSE",
1490
+ "quote": {
1491
+ "price": 15.13,
1492
+ "currency": "GBP",
1493
+ "name": "Scottish Mortgage Ord"
1494
+ },
1495
+ "profile": {
1496
+ "name": "Scottish Mortgage Investment Trust PLC",
1497
+ "description": "Scottish Mortgage Investment Trust PLC is a closed-ended investment trust launched in 1909 and managed by Baillie Gifford & Co., domiciled in the United Kingdom."
1498
+ },
1499
+ "fundamentals": {
1500
+ "eps": 2.7531,
1501
+ "trailingPE": 5.495623115760416
1502
+ },
1503
+ "expect": {
1504
+ "trailingPE": null,
1505
+ "because": "fund is not a company's share"
1506
+ }
1507
+ },
1508
+ {
1509
+ "name": "Literacy Capital is a closed-ended investment company",
1510
+ "symbol": "BOOK",
1511
+ "exchange": "LSE",
1512
+ "quote": {
1513
+ "price": 3,
1514
+ "currency": "GBP",
1515
+ "name": "Literacy Capital PLC"
1516
+ },
1517
+ "profile": {
1518
+ "name": "Literacy Capital plc",
1519
+ "description": "Literacy Capital plc is a British closed-ended investment company that focuses on investing in and supporting medium-sized private businesses."
1520
+ },
1521
+ "fundamentals": {
1522
+ "eps": 0.0123,
1523
+ "trailingPE": 243.90243902439025
1524
+ },
1525
+ "expect": {
1526
+ "trailingPE": null,
1527
+ "because": "fund is not a company's share"
1528
+ }
1529
+ },
1530
+ {
1531
+ "name": "A business development company that is also a closed-end investment firm keeps its P/E",
1532
+ "symbol": "CSWC",
1533
+ "exchange": "NASDAQ",
1534
+ "quote": {
1535
+ "price": 23.51,
1536
+ "currency": "USD",
1537
+ "name": "Capital Southwest Corporation"
1538
+ },
1539
+ "profile": {
1540
+ "name": "Capital Southwest Corporation",
1541
+ "description": "Capital Southwest Corporation is a business development company and closed-end investment firm that provides customized financing to lower middle-market businesses."
1542
+ },
1543
+ "fundamentals": {
1544
+ "eps": 1.73,
1545
+ "trailingPE": 13.589595375722544
1546
+ },
1547
+ "expect": {
1548
+ "trailingPE": 13.589595375722544
1549
+ }
1550
+ },
1551
+ {
1552
+ "name": "A fund sponsor named for its ETFs keeps its P/E",
1553
+ "symbol": "GLBX",
1554
+ "exchange": "NYSE",
1555
+ "quote": {
1556
+ "price": 36,
1557
+ "currency": "USD",
1558
+ "name": "Global X ETFs"
1559
+ },
1560
+ "profile": {
1561
+ "name": "Global X ETFs",
1562
+ "description": "Global X ETFs is a provider of exchange-traded funds based in New York."
1563
+ },
1564
+ "fundamentals": {
1565
+ "eps": 2,
1566
+ "trailingPE": 18
1567
+ },
1568
+ "expect": {
1569
+ "trailingPE": 18
1570
+ }
1571
+ },
1572
+ {
1573
+ "name": "A company named for the unit trusts it runs keeps its P/E",
1574
+ "symbol": "UTCO",
1575
+ "exchange": "NYSE",
1576
+ "quote": {
1577
+ "price": 36,
1578
+ "currency": "USD",
1579
+ "name": "Unit Trust Corporation"
1580
+ },
1581
+ "profile": {
1582
+ "description": "Unit Trust Corporation is a financial services company that manages unit trusts."
1583
+ },
1584
+ "fundamentals": {
1585
+ "eps": 2,
1586
+ "trailingPE": 18
1587
+ },
1588
+ "expect": {
1589
+ "trailingPE": 18
1590
+ }
1591
+ },
1592
+ {
1593
+ "name": "Another listing's ETF profile leaves a company its P/E",
1594
+ "symbol": "HL",
1595
+ "exchange": "NYSE",
1596
+ "quote": {
1597
+ "price": 18,
1598
+ "currency": "USD",
1599
+ "name": "Hecla Mining Company"
1600
+ },
1601
+ "profile": {
1602
+ "name": "iShares MSCI Brazil ETF",
1603
+ "description": "The iShares MSCI Brazil ETF is an exchange-traded fund that tracks large and mid-sized Brazilian equities."
1604
+ },
1605
+ "fundamentals": {
1606
+ "eps": 0.6,
1607
+ "trailingPE": 30
1608
+ },
1609
+ "expect": {
1610
+ "trailingPE": 30
1611
+ }
1612
+ },
1613
+ {
1614
+ "name": "A receipt's profile is its underlying's: a CEDEAR of an ETF is a fund",
1615
+ "symbol": "COPX",
1616
+ "exchange": "BYMA",
1617
+ "quote": {
1618
+ "price": 50000,
1619
+ "currency": "ARS",
1620
+ "name": "Banco Comafi S.A."
1621
+ },
1622
+ "profile": {
1623
+ "name": "Global X Copper Miners ETF",
1624
+ "description": "The Global X Copper Miners ETF is an exchange-traded fund that provides investors with targeted exposure to the global copper mining industry."
1625
+ },
1626
+ "fundamentals": {
1627
+ "eps": 2000,
1628
+ "trailingPE": 25,
1629
+ "isDepositaryReceipt": true,
1630
+ "cedearRatio": {
1631
+ "listing": "COPX:BYMA",
1632
+ "receipts": 14,
1633
+ "shares": 1,
1634
+ "company": "Global X Copper Miners ETF",
1635
+ "underlying": "COPX",
1636
+ "listedAt": "2026-09-16"
1637
+ }
1638
+ },
1639
+ "expect": {
1640
+ "trailingPE": null,
1641
+ "because": "fund is not a company's share"
1642
+ }
1643
+ },
1644
+ {
1645
+ "name": "A profile naming the listing's symbol is its own",
1646
+ "symbol": "IBOV11",
1647
+ "exchange": "B3",
1648
+ "quote": {
1649
+ "price": 150,
1650
+ "currency": "BRL",
1651
+ "name": "Ibovespa"
1652
+ },
1653
+ "profile": {
1654
+ "name": "IBOV11 Fund",
1655
+ "description": "IBOV11 Fund is an exchange-traded fund designed to track the performance of the Bovespa Index."
1656
+ },
1657
+ "fundamentals": {
1658
+ "eps": 15,
1659
+ "trailingPE": 10
1660
+ },
1661
+ "expect": {
1662
+ "trailingPE": null,
1663
+ "because": "fund is not a company's share"
1664
+ }
887
1665
  }
888
1666
  ]
889
1667
  }