shortcutxl 0.2.0

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 (423) hide show
  1. package/README.md +59 -0
  2. package/agent-docs/README.md +397 -0
  3. package/agent-docs/docs/compaction.md +390 -0
  4. package/agent-docs/docs/custom-provider.md +580 -0
  5. package/agent-docs/docs/development.md +69 -0
  6. package/agent-docs/docs/extensions.md +1971 -0
  7. package/agent-docs/docs/json.md +79 -0
  8. package/agent-docs/docs/keybindings.md +174 -0
  9. package/agent-docs/docs/models.md +293 -0
  10. package/agent-docs/docs/packages.md +209 -0
  11. package/agent-docs/docs/prompt-templates.md +67 -0
  12. package/agent-docs/docs/providers.md +186 -0
  13. package/agent-docs/docs/rpc.md +1317 -0
  14. package/agent-docs/docs/sdk.md +962 -0
  15. package/agent-docs/docs/session.md +412 -0
  16. package/agent-docs/docs/settings.md +223 -0
  17. package/agent-docs/docs/shell-aliases.md +13 -0
  18. package/agent-docs/docs/skills.md +231 -0
  19. package/agent-docs/docs/terminal-setup.md +70 -0
  20. package/agent-docs/docs/termux.md +127 -0
  21. package/agent-docs/docs/themes.md +295 -0
  22. package/agent-docs/docs/tree.md +219 -0
  23. package/agent-docs/docs/tui.md +887 -0
  24. package/agent-docs/docs/windows.md +17 -0
  25. package/agent-docs/examples/README.md +25 -0
  26. package/agent-docs/examples/extensions/README.md +205 -0
  27. package/agent-docs/examples/extensions/antigravity-image-gen.ts +447 -0
  28. package/agent-docs/examples/extensions/auto-commit-on-exit.ts +49 -0
  29. package/agent-docs/examples/extensions/bash-spawn-hook.ts +30 -0
  30. package/agent-docs/examples/extensions/bookmark.ts +50 -0
  31. package/agent-docs/examples/extensions/built-in-tool-renderer.ts +256 -0
  32. package/agent-docs/examples/extensions/claude-rules.ts +86 -0
  33. package/agent-docs/examples/extensions/commands.ts +75 -0
  34. package/agent-docs/examples/extensions/confirm-destructive.ts +59 -0
  35. package/agent-docs/examples/extensions/custom-compaction.ts +126 -0
  36. package/agent-docs/examples/extensions/custom-footer.ts +63 -0
  37. package/agent-docs/examples/extensions/custom-header.ts +73 -0
  38. package/agent-docs/examples/extensions/custom-provider-anthropic/index.ts +660 -0
  39. package/agent-docs/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
  40. package/agent-docs/examples/extensions/custom-provider-anthropic/package.json +19 -0
  41. package/agent-docs/examples/extensions/custom-provider-gitlab-duo/index.ts +362 -0
  42. package/agent-docs/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
  43. package/agent-docs/examples/extensions/custom-provider-gitlab-duo/test.ts +88 -0
  44. package/agent-docs/examples/extensions/custom-provider-qwen-cli/index.ts +349 -0
  45. package/agent-docs/examples/extensions/custom-provider-qwen-cli/package.json +16 -0
  46. package/agent-docs/examples/extensions/dirty-repo-guard.ts +56 -0
  47. package/agent-docs/examples/extensions/doom-overlay/README.md +46 -0
  48. package/agent-docs/examples/extensions/doom-overlay/doom/build.sh +152 -0
  49. package/agent-docs/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
  50. package/agent-docs/examples/extensions/doom-overlay/doom-component.ts +133 -0
  51. package/agent-docs/examples/extensions/doom-overlay/doom-engine.ts +186 -0
  52. package/agent-docs/examples/extensions/doom-overlay/doom-keys.ts +108 -0
  53. package/agent-docs/examples/extensions/doom-overlay/index.ts +74 -0
  54. package/agent-docs/examples/extensions/doom-overlay/wad-finder.ts +51 -0
  55. package/agent-docs/examples/extensions/dynamic-resources/SKILL.md +8 -0
  56. package/agent-docs/examples/extensions/dynamic-resources/dynamic.json +79 -0
  57. package/agent-docs/examples/extensions/dynamic-resources/dynamic.md +5 -0
  58. package/agent-docs/examples/extensions/dynamic-resources/index.ts +15 -0
  59. package/agent-docs/examples/extensions/dynamic-tools.ts +77 -0
  60. package/agent-docs/examples/extensions/event-bus.ts +43 -0
  61. package/agent-docs/examples/extensions/file-trigger.ts +41 -0
  62. package/agent-docs/examples/extensions/git-checkpoint.ts +53 -0
  63. package/agent-docs/examples/extensions/handoff.ts +155 -0
  64. package/agent-docs/examples/extensions/hello.ts +25 -0
  65. package/agent-docs/examples/extensions/inline-bash.ts +94 -0
  66. package/agent-docs/examples/extensions/input-transform.ts +43 -0
  67. package/agent-docs/examples/extensions/interactive-shell.ts +209 -0
  68. package/agent-docs/examples/extensions/mac-system-theme.ts +47 -0
  69. package/agent-docs/examples/extensions/message-renderer.ts +59 -0
  70. package/agent-docs/examples/extensions/minimal-mode.ts +430 -0
  71. package/agent-docs/examples/extensions/modal-editor.ts +90 -0
  72. package/agent-docs/examples/extensions/model-status.ts +31 -0
  73. package/agent-docs/examples/extensions/notify.ts +55 -0
  74. package/agent-docs/examples/extensions/overlay-qa-tests.ts +936 -0
  75. package/agent-docs/examples/extensions/overlay-test.ts +159 -0
  76. package/agent-docs/examples/extensions/permission-gate.ts +37 -0
  77. package/agent-docs/examples/extensions/pirate.ts +47 -0
  78. package/agent-docs/examples/extensions/plan-mode/README.md +65 -0
  79. package/agent-docs/examples/extensions/plan-mode/index.ts +363 -0
  80. package/agent-docs/examples/extensions/plan-mode/utils.ts +173 -0
  81. package/agent-docs/examples/extensions/preset.ts +418 -0
  82. package/agent-docs/examples/extensions/protected-paths.ts +30 -0
  83. package/agent-docs/examples/extensions/qna.ts +122 -0
  84. package/agent-docs/examples/extensions/question.ts +278 -0
  85. package/agent-docs/examples/extensions/questionnaire.ts +440 -0
  86. package/agent-docs/examples/extensions/rainbow-editor.ts +90 -0
  87. package/agent-docs/examples/extensions/reload-runtime.ts +37 -0
  88. package/agent-docs/examples/extensions/rpc-demo.ts +124 -0
  89. package/agent-docs/examples/extensions/sandbox/index.ts +324 -0
  90. package/agent-docs/examples/extensions/sandbox/package-lock.json +92 -0
  91. package/agent-docs/examples/extensions/sandbox/package.json +19 -0
  92. package/agent-docs/examples/extensions/send-user-message.ts +97 -0
  93. package/agent-docs/examples/extensions/session-name.ts +27 -0
  94. package/agent-docs/examples/extensions/shutdown-command.ts +69 -0
  95. package/agent-docs/examples/extensions/snake.ts +343 -0
  96. package/agent-docs/examples/extensions/space-invaders.ts +566 -0
  97. package/agent-docs/examples/extensions/ssh.ts +233 -0
  98. package/agent-docs/examples/extensions/status-line.ts +40 -0
  99. package/agent-docs/examples/extensions/subagent/README.md +172 -0
  100. package/agent-docs/examples/extensions/subagent/agents/planner.md +37 -0
  101. package/agent-docs/examples/extensions/subagent/agents/reviewer.md +35 -0
  102. package/agent-docs/examples/extensions/subagent/agents/scout.md +50 -0
  103. package/agent-docs/examples/extensions/subagent/agents/worker.md +24 -0
  104. package/agent-docs/examples/extensions/subagent/agents.ts +130 -0
  105. package/agent-docs/examples/extensions/subagent/index.ts +1068 -0
  106. package/agent-docs/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
  107. package/agent-docs/examples/extensions/subagent/prompts/implement.md +10 -0
  108. package/agent-docs/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
  109. package/agent-docs/examples/extensions/summarize.ts +206 -0
  110. package/agent-docs/examples/extensions/system-prompt-header.ts +17 -0
  111. package/agent-docs/examples/extensions/timed-confirm.ts +72 -0
  112. package/agent-docs/examples/extensions/titlebar-spinner.ts +58 -0
  113. package/agent-docs/examples/extensions/todo.ts +314 -0
  114. package/agent-docs/examples/extensions/tool-override.ts +146 -0
  115. package/agent-docs/examples/extensions/tools.ts +145 -0
  116. package/agent-docs/examples/extensions/trigger-compact.ts +40 -0
  117. package/agent-docs/examples/extensions/truncated-tool.ts +194 -0
  118. package/agent-docs/examples/extensions/widget-placement.ts +17 -0
  119. package/agent-docs/examples/extensions/with-deps/index.ts +37 -0
  120. package/agent-docs/examples/extensions/with-deps/package-lock.json +31 -0
  121. package/agent-docs/examples/extensions/with-deps/package.json +22 -0
  122. package/agent-docs/examples/rpc-extension-ui.ts +654 -0
  123. package/agent-docs/examples/sdk/01-minimal.ts +22 -0
  124. package/agent-docs/examples/sdk/02-custom-model.ts +48 -0
  125. package/agent-docs/examples/sdk/03-custom-prompt.ts +55 -0
  126. package/agent-docs/examples/sdk/04-skills.ts +53 -0
  127. package/agent-docs/examples/sdk/05-tools.ts +56 -0
  128. package/agent-docs/examples/sdk/06-extensions.ts +88 -0
  129. package/agent-docs/examples/sdk/07-context-files.ts +40 -0
  130. package/agent-docs/examples/sdk/08-prompt-templates.ts +47 -0
  131. package/agent-docs/examples/sdk/09-api-keys-and-oauth.ts +48 -0
  132. package/agent-docs/examples/sdk/10-settings.ts +54 -0
  133. package/agent-docs/examples/sdk/11-sessions.ts +48 -0
  134. package/agent-docs/examples/sdk/12-full-control.ts +82 -0
  135. package/agent-docs/examples/sdk/README.md +144 -0
  136. package/agent-docs/xll-skill.md +61 -0
  137. package/agent-docs/xll-spec.md +110 -0
  138. package/dist/cli/args.js +290 -0
  139. package/dist/cli/config-selector.js +31 -0
  140. package/dist/cli/file-processor.js +79 -0
  141. package/dist/cli/list-models.js +92 -0
  142. package/dist/cli/package-commands.js +210 -0
  143. package/dist/cli/report-settings-errors.js +11 -0
  144. package/dist/cli/session-picker.js +34 -0
  145. package/dist/cli.js +19 -0
  146. package/dist/config.js +288 -0
  147. package/dist/core/abort.js +15 -0
  148. package/dist/core/agent-loop.js +352 -0
  149. package/dist/core/agent-session.js +2019 -0
  150. package/dist/core/agent.js +410 -0
  151. package/dist/core/auth-storage.js +456 -0
  152. package/dist/core/bash-executor.js +222 -0
  153. package/dist/core/compaction/branch-summarization.js +242 -0
  154. package/dist/core/compaction/compaction.js +610 -0
  155. package/dist/core/compaction/index.js +7 -0
  156. package/dist/core/compaction/utils.js +139 -0
  157. package/dist/core/defaults.js +6 -0
  158. package/dist/core/diagnostics.js +2 -0
  159. package/dist/core/event-bus.js +25 -0
  160. package/dist/core/exec.js +71 -0
  161. package/dist/core/export-html/ansi-to-html.js +256 -0
  162. package/dist/core/export-html/index.js +238 -0
  163. package/dist/core/export-html/session-view-model.js +342 -0
  164. package/dist/core/export-html/template.css +1110 -0
  165. package/dist/core/export-html/template.html +76 -0
  166. package/dist/core/export-html/template.js +1990 -0
  167. package/dist/core/export-html/tool-renderer.js +63 -0
  168. package/dist/core/export-html/vendor/highlight.min.js +7725 -0
  169. package/dist/core/export-html/vendor/marked.min.js +1803 -0
  170. package/dist/core/extensions/index.js +9 -0
  171. package/dist/core/extensions/loader.js +422 -0
  172. package/dist/core/extensions/runner.js +651 -0
  173. package/dist/core/extensions/types.js +35 -0
  174. package/dist/core/extensions/wrapper.js +102 -0
  175. package/dist/core/footer-data-provider.js +162 -0
  176. package/dist/core/index.js +9 -0
  177. package/dist/core/keybindings.js +153 -0
  178. package/dist/core/messages.js +133 -0
  179. package/dist/core/model-registry.js +539 -0
  180. package/dist/core/model-resolver.js +370 -0
  181. package/dist/core/package-manager.js +1485 -0
  182. package/dist/core/prompt-templates.js +253 -0
  183. package/dist/core/resolve-config-value.js +59 -0
  184. package/dist/core/resource-loader.js +700 -0
  185. package/dist/core/sdk.js +197 -0
  186. package/dist/core/session-bash.js +99 -0
  187. package/dist/core/session-compaction.js +165 -0
  188. package/dist/core/session-manager.js +1153 -0
  189. package/dist/core/session-models.js +99 -0
  190. package/dist/core/session-retry.js +155 -0
  191. package/dist/core/settings-manager.js +572 -0
  192. package/dist/core/skills.js +382 -0
  193. package/dist/core/slash-commands.js +31 -0
  194. package/dist/core/system-prompt.js +161 -0
  195. package/dist/core/theme.js +770 -0
  196. package/dist/core/timings.js +26 -0
  197. package/dist/core/tools/bash.js +258 -0
  198. package/dist/core/tools/edit-diff.js +245 -0
  199. package/dist/core/tools/edit.js +148 -0
  200. package/dist/core/tools/find.js +208 -0
  201. package/dist/core/tools/grep.js +246 -0
  202. package/dist/core/tools/index.js +67 -0
  203. package/dist/core/tools/ls.js +123 -0
  204. package/dist/core/tools/path-utils.js +81 -0
  205. package/dist/core/tools/read.js +160 -0
  206. package/dist/core/tools/truncate.js +70 -0
  207. package/dist/core/tools/write.js +82 -0
  208. package/dist/custom/agents/action.js +13 -0
  209. package/dist/custom/agents/document-reader.js +70 -0
  210. package/dist/custom/agents/general.js +26 -0
  211. package/dist/custom/agents/index.js +49 -0
  212. package/dist/custom/agents/installation.js +13 -0
  213. package/dist/custom/agents/types.js +7 -0
  214. package/dist/custom/auth/refresh-timer.js +33 -0
  215. package/dist/custom/auth/shortcut-oauth.js +145 -0
  216. package/dist/custom/constants.js +21 -0
  217. package/dist/custom/context/workbook-summary.js +73 -0
  218. package/dist/custom/credits/shortcut-credits.js +29 -0
  219. package/dist/custom/cron/cron-daemon-entry.js +18 -0
  220. package/dist/custom/cron/daemon-ipc.js +131 -0
  221. package/dist/custom/cron/daemon.js +224 -0
  222. package/dist/custom/cron/jobs.js +226 -0
  223. package/dist/custom/cron/run-log.js +51 -0
  224. package/dist/custom/cron/schedule.js +72 -0
  225. package/dist/custom/cron/status-line.js +98 -0
  226. package/dist/custom/cron/store.js +87 -0
  227. package/dist/custom/cron/types.js +8 -0
  228. package/dist/custom/dev/index.js +59 -0
  229. package/dist/custom/dev/trace-export.js +58 -0
  230. package/dist/custom/ensure-excel.js +63 -0
  231. package/dist/custom/excel-config.js +36 -0
  232. package/dist/custom/preflight.js +422 -0
  233. package/dist/custom/prompts/action.js +100 -0
  234. package/dist/custom/prompts/api.js +66 -0
  235. package/dist/custom/prompts/installation.js +124 -0
  236. package/dist/custom/prompts/shared.js +138 -0
  237. package/dist/custom/providers/llm-usage.js +42 -0
  238. package/dist/custom/providers/message-converter.js +74 -0
  239. package/dist/custom/providers/provider-ids.js +9 -0
  240. package/dist/custom/providers/register-openai-codex-provider.js +27 -0
  241. package/dist/custom/providers/register-shortcut-provider.js +52 -0
  242. package/dist/custom/providers/shortcut-invoke.js +117 -0
  243. package/dist/custom/providers/shortcut-stream.js +252 -0
  244. package/dist/custom/providers/sse-protocol.js +38 -0
  245. package/dist/custom/sync-xll.js +130 -0
  246. package/dist/custom/tools/cron.js +413 -0
  247. package/dist/custom/tools/excel-exec.js +167 -0
  248. package/dist/custom/tools/excel-range.js +50 -0
  249. package/dist/custom/tools/llm-analysis.js +265 -0
  250. package/dist/custom/tools/render-helpers.js +38 -0
  251. package/dist/custom/tools/switch-mode.js +94 -0
  252. package/dist/custom/tools/task/agents.js +6 -0
  253. package/dist/custom/tools/task/index.js +8 -0
  254. package/dist/custom/tools/task/render.js +348 -0
  255. package/dist/custom/tools/task/subprocess.js +320 -0
  256. package/dist/custom/tools/task/task.js +205 -0
  257. package/dist/custom/tools/todo-list.js +195 -0
  258. package/dist/custom/tracing/session-upload.js +93 -0
  259. package/dist/index.js +45 -0
  260. package/dist/main.js +613 -0
  261. package/dist/migrations.js +265 -0
  262. package/dist/modes/index.js +8 -0
  263. package/dist/modes/interactive/components/armin.js +337 -0
  264. package/dist/modes/interactive/components/assistant-message.js +94 -0
  265. package/dist/modes/interactive/components/bash-execution.js +171 -0
  266. package/dist/modes/interactive/components/bordered-loader.js +51 -0
  267. package/dist/modes/interactive/components/branch-summary-message.js +45 -0
  268. package/dist/modes/interactive/components/compaction-summary-message.js +46 -0
  269. package/dist/modes/interactive/components/config-selector.js +488 -0
  270. package/dist/modes/interactive/components/countdown-timer.js +33 -0
  271. package/dist/modes/interactive/components/custom-editor.js +93 -0
  272. package/dist/modes/interactive/components/custom-message.js +81 -0
  273. package/dist/modes/interactive/components/daxnuts.js +140 -0
  274. package/dist/modes/interactive/components/diff.js +133 -0
  275. package/dist/modes/interactive/components/dynamic-border.js +21 -0
  276. package/dist/modes/interactive/components/extension-editor.js +105 -0
  277. package/dist/modes/interactive/components/extension-input.js +61 -0
  278. package/dist/modes/interactive/components/extension-selector.js +78 -0
  279. package/dist/modes/interactive/components/footer.js +309 -0
  280. package/dist/modes/interactive/components/index.js +33 -0
  281. package/dist/modes/interactive/components/keybinding-hints.js +61 -0
  282. package/dist/modes/interactive/components/layout.js +64 -0
  283. package/dist/modes/interactive/components/login-dialog.js +148 -0
  284. package/dist/modes/interactive/components/model-selector.js +237 -0
  285. package/dist/modes/interactive/components/oauth-selector.js +111 -0
  286. package/dist/modes/interactive/components/session-selector-search.js +157 -0
  287. package/dist/modes/interactive/components/session-selector.js +860 -0
  288. package/dist/modes/interactive/components/settings-selector.js +123 -0
  289. package/dist/modes/interactive/components/show-images-selector.js +35 -0
  290. package/dist/modes/interactive/components/skill-invocation-message.js +48 -0
  291. package/dist/modes/interactive/components/theme-selector.js +47 -0
  292. package/dist/modes/interactive/components/thinking-selector.js +47 -0
  293. package/dist/modes/interactive/components/tool-execution.js +789 -0
  294. package/dist/modes/interactive/components/tool-group.js +106 -0
  295. package/dist/modes/interactive/components/tree-selector.js +962 -0
  296. package/dist/modes/interactive/components/user-message-selector.js +115 -0
  297. package/dist/modes/interactive/components/user-message.js +48 -0
  298. package/dist/modes/interactive/components/visual-truncate.js +33 -0
  299. package/dist/modes/interactive/file-attachments.js +135 -0
  300. package/dist/modes/interactive/interactive-mode.js +3775 -0
  301. package/dist/modes/interactive/theme/dark.json +85 -0
  302. package/dist/modes/interactive/theme/light.json +85 -0
  303. package/dist/modes/interactive/theme/theme-schema.json +335 -0
  304. package/dist/modes/interactive/theme/theme.js +177 -0
  305. package/dist/modes/print-mode.js +101 -0
  306. package/dist/modes/rpc/rpc-client.js +387 -0
  307. package/dist/modes/rpc/rpc-mode.js +509 -0
  308. package/dist/modes/rpc/rpc-types.js +8 -0
  309. package/dist/subagent-entry.js +145 -0
  310. package/dist/tool-names.js +34 -0
  311. package/dist/tui/autocomplete.js +596 -0
  312. package/dist/tui/components/box.js +104 -0
  313. package/dist/tui/components/cancellable-loader.js +35 -0
  314. package/dist/tui/components/editor.js +1679 -0
  315. package/dist/tui/components/image.js +69 -0
  316. package/dist/tui/components/input.js +433 -0
  317. package/dist/tui/components/loader.js +49 -0
  318. package/dist/tui/components/markdown.js +629 -0
  319. package/dist/tui/components/select-list.js +152 -0
  320. package/dist/tui/components/settings-list.js +185 -0
  321. package/dist/tui/components/spacer.js +23 -0
  322. package/dist/tui/components/text.js +89 -0
  323. package/dist/tui/components/truncated-text.js +51 -0
  324. package/dist/tui/editor-component.js +2 -0
  325. package/dist/tui/fuzzy.js +107 -0
  326. package/dist/tui/get-east-asian-width/index.js +32 -0
  327. package/dist/tui/get-east-asian-width/lookup.js +404 -0
  328. package/dist/tui/index.js +32 -0
  329. package/dist/tui/keybindings.js +114 -0
  330. package/dist/tui/keys.js +959 -0
  331. package/dist/tui/kill-ring.js +44 -0
  332. package/dist/tui/stdin-buffer.js +317 -0
  333. package/dist/tui/terminal-image.js +288 -0
  334. package/dist/tui/terminal.js +249 -0
  335. package/dist/tui/tui/autocomplete.js +596 -0
  336. package/dist/tui/tui/components/box.js +106 -0
  337. package/dist/tui/tui/components/cancellable-loader.js +35 -0
  338. package/dist/tui/tui/components/editor.js +1679 -0
  339. package/dist/tui/tui/components/image.js +69 -0
  340. package/dist/tui/tui/components/input.js +433 -0
  341. package/dist/tui/tui/components/loader.js +49 -0
  342. package/dist/tui/tui/components/markdown.js +629 -0
  343. package/dist/tui/tui/components/select-list.js +152 -0
  344. package/dist/tui/tui/components/settings-list.js +185 -0
  345. package/dist/tui/tui/components/spacer.js +23 -0
  346. package/dist/tui/tui/components/text.js +91 -0
  347. package/dist/tui/tui/components/truncated-text.js +51 -0
  348. package/dist/tui/tui/editor-component.js +2 -0
  349. package/dist/tui/tui/fuzzy.js +107 -0
  350. package/dist/tui/tui/get-east-asian-width/index.js +32 -0
  351. package/dist/tui/tui/get-east-asian-width/lookup.js +404 -0
  352. package/dist/tui/tui/index.js +32 -0
  353. package/dist/tui/tui/keybindings.js +114 -0
  354. package/dist/tui/tui/keys.js +959 -0
  355. package/dist/tui/tui/kill-ring.js +44 -0
  356. package/dist/tui/tui/stdin-buffer.js +317 -0
  357. package/dist/tui/tui/terminal-image.js +288 -0
  358. package/dist/tui/tui/terminal.js +249 -0
  359. package/dist/tui/tui/tui.js +955 -0
  360. package/dist/tui/tui/undo-stack.js +25 -0
  361. package/dist/tui/tui/utils.js +800 -0
  362. package/dist/tui/tui.js +955 -0
  363. package/dist/tui/undo-stack.js +25 -0
  364. package/dist/tui/utils.js +800 -0
  365. package/dist/utils/changelog.js +87 -0
  366. package/dist/utils/clipboard-image.js +164 -0
  367. package/dist/utils/clipboard-native.js +14 -0
  368. package/dist/utils/clipboard.js +67 -0
  369. package/dist/utils/frontmatter.js +26 -0
  370. package/dist/utils/git.js +166 -0
  371. package/dist/utils/image-convert.js +35 -0
  372. package/dist/utils/image-resize.js +183 -0
  373. package/dist/utils/mime.js +26 -0
  374. package/dist/utils/photon.js +121 -0
  375. package/dist/utils/shell.js +217 -0
  376. package/dist/utils/sleep.js +17 -0
  377. package/dist/utils/tools-manager.js +259 -0
  378. package/package.json +78 -0
  379. package/skills/excel-com-api/SKILL.md +74 -0
  380. package/skills/excel-com-api/excel-type-library.py +27767 -0
  381. package/skills/excel-com-api/office-type-library.py +10867 -0
  382. package/skills/integrations/SKILL.md +138 -0
  383. package/skills/integrations/alphasense.md +457 -0
  384. package/skills/integrations/bloomberg.md +803 -0
  385. package/skills/integrations/calcbench.md +315 -0
  386. package/skills/integrations/capiq.md +848 -0
  387. package/skills/integrations/dynamics-365-finance.md +354 -0
  388. package/skills/integrations/earnings_transcripts.md +387 -0
  389. package/skills/integrations/factset.md +758 -0
  390. package/skills/integrations/ice-fixed-income.md +344 -0
  391. package/skills/integrations/moodys-analytics.md +313 -0
  392. package/skills/integrations/morningstar.md +433 -0
  393. package/skills/integrations/nasdaq-data-link.md +249 -0
  394. package/skills/integrations/pitchbook.md +413 -0
  395. package/skills/integrations/preqin.md +422 -0
  396. package/skills/integrations/quickbooks.md +289 -0
  397. package/skills/integrations/quickfs.md +314 -0
  398. package/skills/integrations/refinitiv.md +473 -0
  399. package/skills/integrations/sage-intacct.md +401 -0
  400. package/skills/integrations/visible-alpha.md +320 -0
  401. package/skills/integrations/xero.md +393 -0
  402. package/skills/integrations/ycharts.md +306 -0
  403. package/skills/pdf-creation/SKILL.md +93 -0
  404. package/skills/pdf-extraction/SKILL.md +32 -0
  405. package/skills/powerpoint-creation/SKILL.md +110 -0
  406. package/skills/sec-edgar/SKILL.md +127 -0
  407. package/skills/sec-edgar/sec_to_pdf.py +109 -0
  408. package/xll/ShortcutXL.xll +0 -0
  409. package/xll/modules/debug_render.py +272 -0
  410. package/xll/modules/gameboy.py +241 -0
  411. package/xll/modules/pong.py +188 -0
  412. package/xll/modules/shortcut_xl/__init__.py +18 -0
  413. package/xll/modules/shortcut_xl/_categorize.py +200 -0
  414. package/xll/modules/shortcut_xl/_com.py +108 -0
  415. package/xll/modules/shortcut_xl/_format.py +252 -0
  416. package/xll/modules/shortcut_xl/_log.py +12 -0
  417. package/xll/modules/shortcut_xl/_managed.py +116 -0
  418. package/xll/modules/shortcut_xl/_registry.py +44 -0
  419. package/xll/modules/shortcut_xl/_threading.py +161 -0
  420. package/xll/modules/shortcut_xl/_tracking.py +283 -0
  421. package/xll/modules/stocks.py +100 -0
  422. package/xll/python3.dll +0 -0
  423. package/xll/python312.dll +0 -0
@@ -0,0 +1,848 @@
1
+ **CapIQ Formula Guide**
2
+
3
+ **Intro**
4
+ You have full access to CapIQ through Excel, but you should only pull CapIQ data **when the user explicitly tells you to**. When the user does request CapIQ data, you can retrieve any data point—financials, estimates, ownership, multiples, ratios, market data, etc.—by writing CIQ formulas directly in the cell.
5
+
6
+ **IMPORTANT:** Before completing a task involving Cap IQ, you must verify two things:
7
+ 1. Your Cap IQ formulas do not return errors.
8
+ 2. All values should seem reasonable and make intuitive sense based on your general knowledge of companies and finance.
9
+ 3. Use cell references for tickers and periods when possible as opposed to hardcoded values into the formula.
10
+
11
+ You should essentially gut check every value that shows up. If there are any errors or the values seem wrong, you likely wrote the formula syntax incorrectly or are misinterpreting the data that Cap IQ returns. Please correct the formula until it outputs the proper value. Make sure that value makes logical sense. After you make the proper corrections, there may still be errors, but they should be because of the underlying Cap IQ data, not your formula syntax. Please thoroughly check all Cap IQ formulas and outputs before completing a task to make sure they are not your own syntax errors.
12
+
13
+ ---
14
+ **Cap IQ Formula Syntax**
15
+
16
+ **1. Basic CIQ Formula Format**
17
+ Use this when you only need ticker, data point / variable, and period.
18
+ Format: =CIQ("TICKER","DATA_POINT",PERIOD)
19
+ Example: =CIQ("AAPL","IQ_TOTAL_REV",IQ_FY)
20
+ (Meaning: pull Apple's total revenue for the most recent fiscal year.)
21
+
22
+ **Ticker Format:** CIQ uses plain ticker symbols (e.g., "AAPL", "MSFT", "GOOGL"). For international stocks, use the exchange prefix: "LSE:BP" (London), "TSE:7203" (Tokyo), "XTRA:VOW3" (Germany). You can also use CIQ Company IDs.
23
+
24
+ **2. Advanced CIQ Formula Format**
25
+ Use when you need more control (as-of date, reporting type, currency, filing mode, etc.).
26
+
27
+ Format:
28
+ =CIQ("TICKER","DATA_POINT",PERIOD,"AS_OF_DATE","REPORTING_TYPE","PERIOD/FILING_MODE","CURRENCY","CONVERSION_MODE")
29
+
30
+ Example: =CIQ("GOOGL","IQ_TOTAL_REV",IQ_FY,"8/1/2004","LFR","P","EUR","C")
31
+ (Meaning: pull Alphabet's fiscal-year total revenue as of 8/1/2004, using the latest reported numbers, anchored to period date, converted into EUR at the current FX rate.)
32
+
33
+ **3. Period Reference Numbers (numeric codes for different periods)**
34
+
35
+ | Period Type | Base Code | Example: Current | Example: Prior |
36
+ |-------------|-----------|------------------|----------------|
37
+ | Fiscal Year | 1000 | 1000 = current FY | 999 = prior FY, 998 = FY-2 |
38
+ | Fiscal Quarter | 500 | 500 = current FQ | 499 = prior FQ, 498 = FQ-2 |
39
+ | Fiscal Half | 100000 | 100000 = current FH | 99999 = prior FH |
40
+ | Last Twelve Months | 2000 | 2000 = current LTM | 1999 = prior LTM |
41
+ | Year-to-Date | 3000 | 3000 = current YTD | 2999 = prior YTD |
42
+ | Calendar Year | 10000 | 10000 = current CY | 9999 = prior CY |
43
+ | Calendar Quarter | 5000 | 5000 = current CQ | 4999 = prior CQ |
44
+ | Calendar Half | 110000 | 110000 = current CH | 109999 = prior CH |
45
+ | Next Twelve Months | 6000 | 6000 = NTM | — |
46
+
47
+ **IMPORTANT:** Prior periods = subtract 1 from the base code. Future periods = add 1. So: 1001 = FY+1 (next fiscal year estimate), 1002 = FY+2, 501 = FQ+1 (next fiscal quarter estimate), etc.
48
+
49
+ **Named Period Constants (alternative to numeric codes):**
50
+
51
+ | Constant | Meaning |
52
+ |----------|---------|
53
+ | IQ_FY | Current fiscal year |
54
+ | IQ_FQ | Current fiscal quarter |
55
+ | IQ_LTM | Last twelve months |
56
+ | IQ_YTD | Year to date |
57
+ | IQ_NTM | Next twelve months |
58
+ | IQ_CY | Current calendar year |
59
+ | IQ_CQ | Current calendar quarter |
60
+
61
+ **4. Period Modifiers (Reporting Type field)**
62
+ "L" = Latest
63
+ "LFR" = Reported
64
+ "O" = Original
65
+ "P" = Preliminary
66
+ "LRI" = Latest Reported Instance
67
+ "LRP" = Latest Reported Period
68
+
69
+ **5. Period / Filing Mode**
70
+ "P" = Period date
71
+ "F" = Filing date
72
+
73
+ **6. Currency**
74
+ "USD", "EUR", "GBP", etc.
75
+
76
+ **7. Conversion Mode**
77
+ "C" = Current
78
+ "H" = Historical
79
+
80
+ ---
81
+
82
+ **8. Forward Estimate Periods**
83
+
84
+ Use forward period codes to pull consensus estimates for specific future periods.
85
+
86
+ **Fiscal Year Estimates:**
87
+ =CIQ("AAPL","IQ_EPS_EST",1001)
88
+ → FY+1 (next fiscal year) consensus EPS estimate.
89
+
90
+ =CIQ("AAPL","IQ_EPS_EST",1002)
91
+ → FY+2 consensus EPS estimate.
92
+
93
+ =CIQ("AAPL","IQ_EPS_EST",1003)
94
+ → FY+3 consensus EPS estimate.
95
+
96
+ **Quarterly Estimates:**
97
+ =CIQ("AAPL","IQ_EPS_EST",501)
98
+ → FQ+1 (next fiscal quarter) consensus EPS estimate.
99
+
100
+ =CIQ("AAPL","IQ_EPS_EST",502)
101
+ → FQ+2 consensus EPS estimate.
102
+
103
+ **NTM (Next Twelve Months):**
104
+ =CIQ("AAPL","IQ_EPS_EST",6000)
105
+ → NTM blended consensus EPS.
106
+
107
+ **Pre-Computed Forward Multiples:**
108
+ These fields use NTM estimates automatically — no period code needed:
109
+ =CIQ("AAPL","IQ_PE_EXCL_FWD")
110
+ → Forward P/E (NTM).
111
+
112
+ =CIQ("AAPL","IQ_TEV_EBITDA_FWD")
113
+ → Forward EV/EBITDA (NTM).
114
+
115
+ =CIQ("AAPL","IQ_TEV_TOTAL_REV_FWD")
116
+ → Forward EV/Revenue (NTM).
117
+
118
+ **Available Estimate Fields:**
119
+ | Field | Description |
120
+ |-------|-------------|
121
+ | IQ_EPS_EST | Primary EPS estimate |
122
+ | IQ_REVENUE_EST | Revenue estimate |
123
+ | IQ_EBITDA_EST | EBITDA estimate |
124
+ | IQ_EBIT_EST | EBIT estimate |
125
+ | IQ_NI_EST | Net income estimate |
126
+ | IQ_CFPS_EST | Cash flow per share estimate |
127
+
128
+ **Note:** Without a forward period code, estimate fields default to the next unreported period. Always specify the period explicitly for clarity (e.g., 1001 for FY+1, 501 for FQ+1).
129
+
130
+ ---
131
+
132
+ **9. FX & Currency Conversion**
133
+
134
+ **Currency Conversion Modes:**
135
+
136
+ | Mode | When to Use | Example |
137
+ |------|-------------|---------|
138
+ | "C" (Current) | Convert at today's FX rate — use for current comparisons | `=CIQ("LSE:BP","IQ_TOTAL_REV",IQ_FY,,,,"USD","C")` |
139
+ | "H" (Historical) | Convert at the FX rate as of the period end date — use for historical accuracy | `=CIQ("LSE:BP","IQ_TOTAL_REV",IQ_FY,,,,"USD","H")` |
140
+
141
+ **Key Difference:** "C" mode converts ALL periods using today's rate (good for comps tables). "H" mode converts each period at the rate that was in effect at that time (good for historical trend analysis).
142
+
143
+ **Example — Revenue in USD (current rate):**
144
+ =CIQ("LSE:BP","IQ_TOTAL_REV",IQ_FY,,"L","P","USD","C")
145
+ → BP's latest fiscal year revenue converted to USD at today's FX rate.
146
+
147
+ **Example — Historical revenue series in EUR:**
148
+ =CIQ("AAPL","IQ_TOTAL_REV",999,,"L","P","EUR","H")
149
+ → Apple's prior fiscal year revenue converted to EUR at the period-end FX rate.
150
+
151
+ **IMPORTANT:** If you omit the currency parameter, data returns in the company's reporting currency. For comps tables with multi-currency companies, always specify a common currency.
152
+
153
+ ---
154
+
155
+ **10. CIQRANGE — Time Series & Arrays**
156
+
157
+ CIQRANGE returns arrays of data that spill down a column (or across a row with CIQRANGEA).
158
+
159
+ **Pricing Time Series:**
160
+ =CIQRANGE("AAPL","IQ_CLOSEPRICE","01/01/2023","12/31/2023")
161
+ → Daily closing prices for Apple in 2023. Spills down from the formula cell.
162
+
163
+ **Historical Fundamentals:**
164
+ =CIQRANGE("AAPL","IQ_TOTAL_REV",IQ_FY,"12/31/2023")
165
+ → Annual revenue series up to 12/31/2023.
166
+
167
+ **Multiples Time Series:**
168
+ =CIQRANGE("AAPL","IQ_TEV_EBITDA",IQ_FY,"01/01/2019","12/31/2023")
169
+ → TEV/EBITDA for each fiscal year from 2019 to 2023.
170
+
171
+ **Horizontal Output:**
172
+ =CIQRANGEA("AAPL","IQ_CLOSEPRICE","01/01/2023","12/31/2023")
173
+ → Same data but spills across a row instead of down a column.
174
+
175
+ **Hardcoded Values:**
176
+ =CIQRANGEV("AAPL","IQ_CLOSEPRICE","01/01/2023","12/31/2023")
177
+ → Returns hardcoded values (not formulas). Useful for large datasets that don't need refreshing.
178
+
179
+ **Key Behaviors:**
180
+ - CIQRANGE spills down/right from the cell — always leave empty space below.
181
+ - Data refreshes when the workbook is refreshed via the CIQ add-in.
182
+ - For very large date ranges, use CIQRANGEV to avoid performance issues.
183
+
184
+ ---
185
+
186
+ **11. Helper Functions**
187
+
188
+ | Function | Description | Example |
189
+ |----------|-------------|---------|
190
+ | CIQAVG(T, Item, D1, D2) | Average value over date range | `=CIQAVG("AAPL","IQ_CLOSEPRICE","01/01/2023","12/31/2023")` |
191
+ | CIQHI(T, Item, D1, D2) | Highest value over date range | `=CIQHI("AAPL","IQ_CLOSEPRICE","01/01/2023","12/31/2023")` |
192
+ | CIQLO(T, Item, D1, D2) | Lowest value over date range | `=CIQLO("AAPL","IQ_CLOSEPRICE","01/01/2023","12/31/2023")` |
193
+ | CIQPC(T, Item, D1, D2) | Percent change over date range | `=CIQPC("AAPL","IQ_CLOSEPRICE","01/01/2023","12/31/2023")` |
194
+ | CIQGETDATE(IQ_TODAY) | Today's date | `=CIQGETDATE(IQ_TODAY)` |
195
+
196
+ **Period-Based Variants:**
197
+ =CIQAVG("AAPL","IQ_CLOSEPRICE",IQ_FY)
198
+ → Average closing price over the current fiscal year.
199
+
200
+ =CIQHI("AAPL","IQ_CLOSEPRICE",IQ_FY)
201
+ → Highest closing price in the current fiscal year.
202
+
203
+ ---
204
+
205
+ **12. Segment & Geographic Data**
206
+
207
+ **Business Segment Lists:**
208
+ =CIQ("AAPL","IQ_BUS_SEG_NAME")
209
+ → Returns list of reported business segments.
210
+
211
+ **Segment Revenue:**
212
+ =CIQ("AAPL","IQ_BUS_SEG_REV")
213
+ → Returns revenue by business segment.
214
+
215
+ **Segment Assets:**
216
+ =CIQ("AAPL","IQ_BUS_SEG_ASSETS")
217
+ → Returns assets by business segment.
218
+
219
+ **Geographic Segments:**
220
+ =CIQ("AAPL","IQ_GEO_SEG_NAME")
221
+ → Returns list of geographic segments.
222
+
223
+ =CIQ("AAPL","IQ_GEO_SEG_REV")
224
+ → Returns revenue by geography.
225
+
226
+ **Limitations:**
227
+ - Segment data availability depends on company filings — not all companies report detailed segments.
228
+ - For pharma/individual drug revenue, CIQ generally does NOT have product-level data. Use Visible Alpha or company filings.
229
+
230
+ ---
231
+
232
+ **13. Index Constituents & Screening**
233
+
234
+ **Index Members:**
235
+ =CIQ("SPX","IQ_CONSTITUENTS")
236
+ → Returns list of S&P 500 constituent tickers.
237
+
238
+ **Quick Comps:**
239
+ =CIQRANGE("AAPL","IQ_QUICK_COMP",1,10)
240
+ → Returns Apple's top 10 comparable companies as determined by CIQ.
241
+
242
+ **Building a Comp Table:**
243
+ 1. Pull index members or use IQ_QUICK_COMP into column A
244
+ 2. For each ticker: =CIQ(A2,"IQ_TOTAL_REV",IQ_FY) in column B
245
+ 3. Drag down for all tickers
246
+
247
+ **Note:** CIQ does not have a built-in screening language like Bloomberg BQL. Use the Capital IQ Screening tool in the Excel add-in sidebar, or build comp tables manually using the formula approach above.
248
+
249
+ ---
250
+
251
+ **14. Field Return Types & Formatting**
252
+
253
+ CIQ returns financial data in the company's reporting units. Understanding the units is critical.
254
+
255
+ **Currency Amount Fields** (return raw values in reporting currency):
256
+ - IQ_TOTAL_REV, IQ_EBITDA, IQ_EBIT, IQ_NI, IQ_CASH_OPER, IQ_CAPEX, IQ_MARKETCAP, IQ_TEV
257
+ - IQ_LEVERED_FCF, IQ_UNLEVERED_FCF, IQ_TOTAL_DEBT, IQ_NET_DEBT
258
+ - **IMPORTANT:** CIQ returns financials in actual reported units (usually millions for US companies, but varies). Check the company's filing to confirm. A revenue of 394,328 for Apple means $394,328 million = $394.3 billion.
259
+
260
+ **Percentage Fields** (return whole numbers, e.g., 25.0 means 25%):
261
+ - IQ_GROSS_MARGIN, IQ_EBITDA_MARGIN, IQ_NI_MARGIN, IQ_LFCF_MARGIN
262
+ - IQ_RETURN_ASSETS, IQ_RETURN_EQUITY
263
+ - IQ_TOTAL_REV_1YR_ANN_GROWTH and all growth fields
264
+ - IQ_DIVIDEND_YIELD, IQ_EFFECT_TAX_RATE
265
+ - **Rule:** Do NOT apply Excel `0.00%` format (would show 2500% instead of 25%). Display as-is or use custom format `0.0"%"`.
266
+
267
+ **Ratio Fields** (return dimensionless multiples):
268
+ - IQ_TEV_EBITDA, IQ_TEV_TOTAL_REV, IQ_PE_EXCL, IQ_PBV, IQ_PTBV
269
+ - IQ_TEV_EBITDA_FWD, IQ_PE_EXCL_FWD, IQ_PEG_FWD
270
+ - IQ_CURRENT_RATIO, IQ_QUICK_RATIO, IQ_EBIT_INT
271
+ - Never apply percentage formatting to these.
272
+
273
+ **Per-Share Fields** (small currency values):
274
+ - IQ_BASIC_EPS_INCL, IQ_DILUT_EPS_INCL, IQ_EPS_NORM, IQ_BV_SHARE, IQ_TBV_SHARE
275
+ - IQ_EPS_EST, IQ_CFPS_EST, IQ_ANNUALIZED_DIVIDEND, IQ_CLOSEPRICE, IQ_LASTSALEPRICE
276
+
277
+ **Turnover/Days Fields** (return counts):
278
+ - IQ_AR_TURNS, IQ_INVENTORY_TURNS (times per year)
279
+ - IQ_DAYS_SALES_OUT, IQ_DAYS_PAYABLE_OUT (number of days)
280
+
281
+ ---
282
+
283
+ **15. Common Pitfalls**
284
+
285
+ | Pitfall | What Happens | Fix |
286
+ |---------|-------------|-----|
287
+ | Period code off by one | 999 = prior FY, but some users think 999 = current FY | Remember: 1000 = current FY, subtract 1 for each prior period |
288
+ | Forward estimate wrong period | Using 1000 for FY+1 estimates instead of 1001 | For estimates: 1001 = FY+1, 1002 = FY+2, 501 = FQ+1 |
289
+ | Missing currency conversion | Comparing US company (USD) with UK company (GBP) without conversion | Always specify "USD","C" or "USD","H" for cross-currency comps |
290
+ | "C" vs "H" conversion confusion | "C" converts ALL periods at today's rate; "H" uses period-end rate | Use "H" for historical trends, "C" for point-in-time comparisons |
291
+ | Wrong reporting type | "L" returns latest (restated) data, "O" returns originally filed data | Use "L" for most analysis; use "O" for point-in-time studies |
292
+ | Excel % format on CIQ % fields | Shows 2500% instead of 25% (CIQ returns 25.0, not 0.25) | Display as-is or use `0.0"%"` custom format |
293
+ | Financial units mismatch | Apple revenue shows 394,328 — is that thousands, millions, or billions? | CIQ returns in company's reporting units. Apple reports in millions, so 394,328 = $394.3B |
294
+ | CIQRANGE overwrites adjacent cells | Array spills down and overwrites whatever is below | Always leave empty space below CIQRANGE formulas |
295
+ | IQ_NI vs IQ_NI_CF confusion | IQ_NI = net income (income statement), IQ_NI_CF = net income (cash flow statement starting point) | Use IQ_NI for income statement analysis, IQ_NI_CF for cash flow reconciliation |
296
+ | Estimate fields without forward period | IQ_EPS_EST with period 1000 returns current-period estimate, not FY+1 | Use 1001 for FY+1, 1002 for FY+2 explicitly |
297
+ | Stale data after add-in disconnect | Formulas show old values or #VALUE! | Refresh via CIQ add-in: Capital IQ > Refresh Data |
298
+ | #VALUE! error | Formula syntax is wrong, or the ticker/field combination is invalid | Check ticker format, field name spelling, and period code |
299
+ | Fiscal year misalignment in comps | Apple (Sept FY) vs Microsoft (June FY) — "current year" means different calendar periods | Use calendar year (10000) or LTM (2000) for apples-to-apples comparison |
300
+ | _FWD multiples undefined period | IQ_TEV_EBITDA_FWD uses NTM, not a specific forward fiscal year | If you need FY+1 specifically, compute it: =CIQ("AAPL","IQ_TEV")/CIQ("AAPL","IQ_EBITDA_EST",1001) |
301
+
302
+ ---
303
+
304
+ **16. Example Formulas (Natural Language Interpretations)**
305
+ =CIQ("AAPL","IQ_TOTAL_REV",IQ_FY)
306
+ → Retrieves Apple's latest full fiscal-year total revenue.
307
+
308
+ =CIQ("GOOGL","IQ_TOTAL_REV",IQ_FY,"8/1/2004","LFR","P","EUR","C")
309
+ → Retrieves Alphabet's fiscal-year total revenue as it was reported as of August 1, 2004, based on period date, converted into EUR using current FX.
310
+
311
+ =CIQ("AMZN","IQ_EBITDA",IQ_LTM)
312
+ → Retrieves Amazon's trailing twelve-month EBITDA.
313
+
314
+ =CIQ(B1,"IQ_TOTAL_REV",IQ_FY)
315
+ → Retrieves latest fiscal-year revenue for whichever ticker is stored in cell B1.
316
+
317
+ =CIQ("NVDA","IQ_GP",C2)
318
+ → Retrieves Nvidia's gross profit for the period code stored in C2 (e.g., 1000 for current FY, 999 for prior FY).
319
+
320
+ =CIQ("AAPL","IQ_EPS_EST",1001,,"L","P","USD","C")
321
+ → FY+1 EPS estimate for Apple in USD at current FX rate.
322
+
323
+ ---
324
+
325
+ **17. Top 50 One-Shot CapIQ Pulls**
326
+
327
+ Quick-reference formulas for the most common analyst requests.
328
+
329
+ **Pricing (1–5):**
330
+
331
+ 1. Last sale price:
332
+ =CIQ("AAPL","IQ_LASTSALEPRICE")
333
+
334
+ 2. Close price:
335
+ =CIQ("AAPL","IQ_CLOSEPRICE")
336
+
337
+ 3. 52-week high / low:
338
+ =CIQ("AAPL","IQ_YEARHIGH")
339
+ =CIQ("AAPL","IQ_YEARLOW")
340
+
341
+ 4. Daily volume:
342
+ =CIQ("AAPL","IQ_VOLUME")
343
+
344
+ 5. VWAP:
345
+ =CIQ("AAPL","IQ_VWAP")
346
+
347
+ **Market Data (6–10):**
348
+
349
+ 6. Market cap:
350
+ =CIQ("AAPL","IQ_MARKETCAP")
351
+
352
+ 7. Enterprise value:
353
+ =CIQ("AAPL","IQ_TEV")
354
+
355
+ 8. Shares outstanding:
356
+ =CIQ("AAPL","IQ_SHARESOUTSTANDING")
357
+
358
+ 9. 5-year beta:
359
+ =CIQ("AAPL","IQ_BETA_5YR")
360
+
361
+ 10. Dividend yield:
362
+ =CIQ("AAPL","IQ_DIVIDEND_YIELD")
363
+
364
+ **Income Statement (11–17):**
365
+
366
+ 11. Annual revenue:
367
+ =CIQ("AAPL","IQ_TOTAL_REV",IQ_FY)
368
+
369
+ 12. LTM revenue:
370
+ =CIQ("AAPL","IQ_TOTAL_REV",IQ_LTM)
371
+
372
+ 13. EBITDA:
373
+ =CIQ("AAPL","IQ_EBITDA",IQ_FY)
374
+
375
+ 14. LTM EBITDA:
376
+ =CIQ("AAPL","IQ_EBITDA",IQ_LTM)
377
+
378
+ 15. Operating income:
379
+ =CIQ("AAPL","IQ_OPER_INC",IQ_FY)
380
+
381
+ 16. Net income:
382
+ =CIQ("AAPL","IQ_NI",IQ_FY)
383
+
384
+ 17. Diluted EPS:
385
+ =CIQ("AAPL","IQ_DILUT_EPS_INCL",IQ_FY)
386
+
387
+ **Balance Sheet (18–22):**
388
+
389
+ 18. Cash & equivalents:
390
+ =CIQ("AAPL","IQ_CASH_EQUIV",IQ_FY)
391
+
392
+ 19. Total debt:
393
+ =CIQ("AAPL","IQ_TOTAL_DEBT",IQ_FY)
394
+
395
+ 20. Net debt:
396
+ =CIQ("AAPL","IQ_NET_DEBT",IQ_FY)
397
+
398
+ 21. Total assets:
399
+ =CIQ("AAPL","IQ_TOTAL_ASSETS",IQ_FY)
400
+
401
+ 22. Total equity:
402
+ =CIQ("AAPL","IQ_TOTAL_EQUITY",IQ_FY)
403
+
404
+ **Cash Flow (23–26):**
405
+
406
+ 23. Cash from operations:
407
+ =CIQ("AAPL","IQ_CASH_OPER",IQ_FY)
408
+
409
+ 24. Capital expenditures:
410
+ =CIQ("AAPL","IQ_CAPEX",IQ_FY)
411
+
412
+ 25. Levered free cash flow:
413
+ =CIQ("AAPL","IQ_LEVERED_FCF",IQ_FY)
414
+
415
+ 26. Unlevered free cash flow:
416
+ =CIQ("AAPL","IQ_UNLEVERED_FCF",IQ_FY)
417
+
418
+ **Valuation Ratios (27–32):**
419
+
420
+ 27. P/E ratio (trailing):
421
+ =CIQ("AAPL","IQ_PE_EXCL")
422
+
423
+ 28. Forward P/E (NTM):
424
+ =CIQ("AAPL","IQ_PE_EXCL_FWD")
425
+
426
+ 29. EV/EBITDA (trailing):
427
+ =CIQ("AAPL","IQ_TEV_EBITDA")
428
+
429
+ 30. Forward EV/EBITDA (NTM):
430
+ =CIQ("AAPL","IQ_TEV_EBITDA_FWD")
431
+
432
+ 31. Price/Book:
433
+ =CIQ("AAPL","IQ_PBV")
434
+
435
+ 32. EV/Revenue:
436
+ =CIQ("AAPL","IQ_TEV_TOTAL_REV")
437
+
438
+ **Profitability (33–37):**
439
+
440
+ 33. Gross margin:
441
+ =CIQ("AAPL","IQ_GROSS_MARGIN",IQ_FY)
442
+
443
+ 34. EBITDA margin:
444
+ =CIQ("AAPL","IQ_EBITDA_MARGIN",IQ_FY)
445
+
446
+ 35. Net income margin:
447
+ =CIQ("AAPL","IQ_NI_MARGIN",IQ_FY)
448
+
449
+ 36. Return on equity:
450
+ =CIQ("AAPL","IQ_RETURN_EQUITY",IQ_FY)
451
+
452
+ 37. Return on assets:
453
+ =CIQ("AAPL","IQ_RETURN_ASSETS",IQ_FY)
454
+
455
+ **Consensus Estimates (38–45):**
456
+
457
+ 38. FY+1 EPS estimate:
458
+ =CIQ("AAPL","IQ_EPS_EST",1001)
459
+
460
+ 39. FY+2 EPS estimate:
461
+ =CIQ("AAPL","IQ_EPS_EST",1002)
462
+
463
+ 40. FY+1 revenue estimate:
464
+ =CIQ("AAPL","IQ_REVENUE_EST",1001)
465
+
466
+ 41. FY+2 revenue estimate:
467
+ =CIQ("AAPL","IQ_REVENUE_EST",1002)
468
+
469
+ 42. FY+1 EBITDA estimate:
470
+ =CIQ("AAPL","IQ_EBITDA_EST",1001)
471
+
472
+ 43. NTM EPS estimate:
473
+ =CIQ("AAPL","IQ_EPS_EST",6000)
474
+
475
+ 44. Consensus target price:
476
+ =CIQ("AAPL","IQ_PRICE_TARGET")
477
+
478
+ 45. Analyst counts (buy / hold / sell):
479
+ =CIQ("AAPL","IQ_EST_NUM_BUY")
480
+ =CIQ("AAPL","IQ_EST_NUM_HOLD")
481
+ =CIQ("AAPL","IQ_EST_NUM_SELL")
482
+
483
+ **Leverage & Credit (46–48):**
484
+
485
+ 46. Total debt / EBITDA:
486
+ =CIQ("AAPL","IQ_TOTAL_DEBT_EBITDA",IQ_FY)
487
+
488
+ 47. Interest coverage (EBIT / Interest):
489
+ =CIQ("AAPL","IQ_EBIT_INT",IQ_FY)
490
+
491
+ 48. S&P long-term rating:
492
+ =CIQ("AAPL","IQ_SP_LC_LT")
493
+
494
+ **Historical & Growth (49–50):**
495
+
496
+ 49. Revenue 1-year growth:
497
+ =CIQ("AAPL","IQ_TOTAL_REV_1YR_ANN_GROWTH",IQ_FY)
498
+
499
+ 50. EPS 1-year growth:
500
+ =CIQ("AAPL","IQ_EPS_1YR_ANN_GROWTH",IQ_FY)
501
+
502
+ ---
503
+
504
+ **18. Refreshing Data**
505
+
506
+ If formulas show stale data or errors:
507
+ 1. Go to Capital IQ tab in Excel Ribbon
508
+ 2. Click "Refresh Data" or "Refresh All"
509
+ 3. If individual formulas fail, try re-entering the formula
510
+
511
+ To check connection status: Capital IQ > Connection Status
512
+
513
+ ---
514
+
515
+ **19. Data Limits**
516
+
517
+ **IMPORTANT:** Capital IQ has limits on concurrent formula requests.
518
+ - General rule: No more than ~5,000 formulas per workbook refresh
519
+ - Large CIQRANGE queries can hit timeout limits — use CIQRANGEV for large historical pulls
520
+ - If formulas return #VALUE!, reduce the number of concurrent requests and refresh again
521
+
522
+ ---
523
+
524
+ **Final Checklist:**
525
+ - What exact metric is needed? (Revenue? EBITDA? EPS? Free cash flow? Reported vs adjusted?)
526
+ - What time frame is required? (Fiscal year? LTM? Next 12 months? A specific historical period?)
527
+ - For estimates: did I specify the forward period code? (1001 = FY+1, 1002 = FY+2, 501 = FQ+1, 6000 = NTM)
528
+ - What units are the numbers being returned in? (thousands? millions? billions? percentages? etc.) Make sure you make the correct multiplications or divisions based on the units Cap IQ returns so it is consistent with the rest of the spreadsheet you're building.
529
+ - Is the field a percentage type? (Don't apply Excel % format — CIQ returns whole numbers for margins/returns)
530
+ - Did I use cell references for the ticker (as opposed to hardcoding into the formula)?
531
+ - Do I want the latest period or the latest reported period?
532
+ - Should the number be in reported currency or converted currency?
533
+ - Am I using the correct reporting modifier (L, LFR, LRP, etc.)?
534
+ - Am I using the correct period mode (P vs F)?
535
+ - If using numeric period codes, does the number in the cell match the intended period?
536
+ - If using an as-of date, is that date correct?
537
+ - Is there enough empty space below for CIQRANGE output?
538
+
539
+ ---
540
+
541
+ **20. Data Items Reference**
542
+
543
+ **Note:** This is a curated list of the most commonly used fields. Capital IQ supports additional data items not listed here (e.g., macro/economic data, PE fund data, identifier lists). Refer to the Capital IQ help documentation for the full catalog.
544
+
545
+ **Income Statement:**
546
+ | Field | Variable |
547
+ |-------|----------|
548
+ | Total Revenues | IQ_TOTAL_REV |
549
+ | Cost Of Revenues | IQ_COST_REV |
550
+ | Cost Of Goods Sold | IQ_COGS |
551
+ | Gross Profit | IQ_GP |
552
+ | Selling General & Admin Exp. | IQ_SGA_SUPPL |
553
+ | R & D Exp. | IQ_RD_EXP |
554
+ | Depreciation & Amort. | IQ_DA_SUPPL |
555
+ | Operating Income | IQ_OPER_INC |
556
+ | Net Interest Exp. | IQ_NET_INTEREST_EXP |
557
+ | EBT Excl Unusual Items | IQ_EBT_EXCL |
558
+ | Total Unusual Items | IQ_TOTAL_UNUSUAL |
559
+ | EBT Incl Unusual Items | IQ_EBT |
560
+ | Income Tax Expense | IQ_INC_TAX |
561
+ | Earnings from Cont. Ops. | IQ_EARNING_CO |
562
+ | Earnings of Discontinued Ops. | IQ_DO |
563
+ | Net Income | IQ_NI |
564
+ | NI to Common Excl Extra Items | IQ_NI_AVAIL_EXCL |
565
+ | NI to Common Incl Extra Items | IQ_NI_AVAIL_INCL |
566
+ | Basic EPS | IQ_BASIC_EPS_INCL |
567
+ | Basic EPS Excl. Extra Items | IQ_BASIC_EPS_EXCL |
568
+ | Diluted EPS | IQ_DILUT_EPS_INCL |
569
+ | Diluted EPS Excl Extra Items | IQ_DILUT_EPS_EXCL |
570
+ | Normalized Basic EPS | IQ_EPS_NORM |
571
+ | Normalized Diluted EPS | IQ_DILUT_EPS_NORM |
572
+ | Weighted Avg. Basic Shares Out. | IQ_BASIC_WEIGHT |
573
+ | Weighted Avg. Diluted Shares Out. | IQ_DILUT_WEIGHT |
574
+ | EBITDA | IQ_EBITDA |
575
+ | EBITA | IQ_EBITA |
576
+ | EBIT | IQ_EBIT |
577
+ | EBITDAR | IQ_EBITDAR |
578
+ | Normalized Net Income | IQ_NI_NORM |
579
+ | Effective Tax Rate | IQ_EFFECT_TAX_RATE |
580
+
581
+ **Balance Sheet:**
582
+ | Field | Variable |
583
+ |-------|----------|
584
+ | Cash And Equivalents | IQ_CASH_EQUIV |
585
+ | Short Term Investments | IQ_ST_INVEST |
586
+ | Total Cash & ST Investments | IQ_CASH_ST_INVEST |
587
+ | Accounts Receivable | IQ_AR |
588
+ | Total Receivables | IQ_TOTAL_RECEIV |
589
+ | Inventory | IQ_INVENTORY |
590
+ | Total Current Assets | IQ_TOTAL_CA |
591
+ | Gross Property, Plant & Equipment | IQ_GPPE |
592
+ | Net Property, Plant & Equipment | IQ_NPPE |
593
+ | Long-term Investments | IQ_LT_INVEST |
594
+ | Total Intangibles | IQ_GW_INTAN |
595
+ | Total Assets | IQ_TOTAL_ASSETS |
596
+ | Accounts Payable | IQ_AP |
597
+ | Short-term Borrowings | IQ_ST_DEBT |
598
+ | Current Portion of Long Term Debt | IQ_CURRENT_PORT_DEBT |
599
+ | Total Current Liabilities | IQ_TOTAL_CL |
600
+ | Long-Term Debt | IQ_LT_DEBT |
601
+ | Capital Leases | IQ_CAPITAL_LEASES |
602
+ | Minority Interest | IQ_MINORITY_INTEREST |
603
+ | Total Liabilities | IQ_TOTAL_LIAB |
604
+ | Common Stock | IQ_COMMON |
605
+ | Retained Earnings | IQ_RE |
606
+ | Treasury Stock | IQ_TREASURY |
607
+ | Total Pref. Equity | IQ_PREF_EQUITY |
608
+ | Total Common Equity | IQ_TOTAL_COMMON_EQUITY |
609
+ | Total Equity | IQ_TOTAL_EQUITY |
610
+ | Total Liabilities And Equity | IQ_TOTAL_LIAB_EQUITY |
611
+ | Book Value/Share | IQ_BV_SHARE |
612
+ | Tangible Book Value | IQ_TBV |
613
+ | Tangible Book Value/Share | IQ_TBV_SHARE |
614
+ | Total Debt | IQ_TOTAL_DEBT |
615
+ | Net Debt | IQ_NET_DEBT |
616
+ | Total Current Debt | IQ_TOTAL_DEBT_CURRENT |
617
+ | Total Non-Current Debt | IQ_TOTAL_DEBT_NON_CURRENT |
618
+ | Total Capitalization | IQ_TOTAL_CAP |
619
+
620
+ **Cash Flow Statement:**
621
+ | Field | Variable |
622
+ |-------|----------|
623
+ | Net Income (CF) | IQ_NI_CF |
624
+ | Depreciation & Amort., Total | IQ_DA_CF |
625
+ | Stock-Based Compensation | IQ_STOCK_BASED_CF |
626
+ | Asset Writedown & Restructuring | IQ_ASSET_WRITEDOWN_CF |
627
+ | Change In Accounts Receivable | IQ_CHANGE_AR |
628
+ | Change In Inventories | IQ_CHANGE_INVENTORY |
629
+ | Change in Acc. Payable | IQ_CHANGE_AP |
630
+ | Cash from Ops. | IQ_CASH_OPER |
631
+ | Capital Expenditure | IQ_CAPEX |
632
+ | Cash Acquisitions | IQ_CASH_ACQUIRE_CF |
633
+ | Divestitures | IQ_DIVEST_CF |
634
+ | Cash from Investing | IQ_CASH_INVEST |
635
+ | Short Term Debt Issued | IQ_ST_DEBT_ISSUED |
636
+ | Long-Term Debt Issued | IQ_LT_DEBT_ISSUED |
637
+ | Total Debt Issued | IQ_TOTAL_DEBT_ISSUED |
638
+ | Total Debt Repaid | IQ_TOTAL_DEBT_REPAID |
639
+ | Issuance of Common Stock | IQ_COMMON_ISSUED |
640
+ | Repurchase of Common | IQ_COMMON_REP |
641
+ | Common Dividends Paid | IQ_COMMON_DIV_CF |
642
+ | Total Dividends Paid | IQ_TOTAL_DIV_PAID_CF |
643
+ | Cash from Financing | IQ_CASH_FINAN |
644
+ | Net Change in Cash | IQ_NET_CHANGE |
645
+ | Levered Free Cash Flow | IQ_LEVERED_FCF |
646
+ | Unlevered Free Cash Flow | IQ_UNLEVERED_FCF |
647
+ | EBITDA - Capex | IQ_EBITDA_CAPEX |
648
+ | Change in Net Working Capital | IQ_CHANGE_NET_WORKING_CAPITAL |
649
+
650
+ **Profitability Ratios:**
651
+ | Field | Variable |
652
+ |-------|----------|
653
+ | Return on Assets % | IQ_RETURN_ASSETS |
654
+ | Return on Equity % | IQ_RETURN_EQUITY |
655
+ | Gross Margin % | IQ_GROSS_MARGIN |
656
+ | SG&A Margin % | IQ_SGA_MARGIN |
657
+ | EBITDA Margin % | IQ_EBITDA_MARGIN |
658
+ | Net Income Margin % | IQ_NI_MARGIN |
659
+ | Levered FCF Margin % | IQ_LFCF_MARGIN |
660
+ | Payout Ratio | IQ_PAYOUT_RATIO |
661
+
662
+ **Leverage & Efficiency Ratios:**
663
+ | Field | Variable |
664
+ |-------|----------|
665
+ | Current Ratio | IQ_CURRENT_RATIO |
666
+ | Quick Ratio | IQ_QUICK_RATIO |
667
+ | Accounts Receivable Turnover | IQ_AR_TURNS |
668
+ | Inventory Turnover | IQ_INVENTORY_TURNS |
669
+ | Avg Days Sales Outstanding | IQ_DAYS_SALES_OUT |
670
+ | Avg Days Payable Outstanding | IQ_DAYS_PAYABLE_OUT |
671
+ | Total Debt/Equity | IQ_TOTAL_DEBT_EQUITY |
672
+ | Total Debt/Capital | IQ_TOTAL_DEBT_CAPITAL |
673
+ | EBIT / Interest Expense | IQ_EBIT_INT |
674
+ | Capex as % of Revenues | IQ_CAPEX_PCT_REV |
675
+ | Total Debt/EBITDA | IQ_TOTAL_DEBT_EBITDA |
676
+ | Net Debt/EBITDA | IQ_NET_DEBT_EBITDA |
677
+
678
+ **Growth Rates:**
679
+ | Field | Variable |
680
+ |-------|----------|
681
+ | Total Revenues, 1 Yr Growth % | IQ_TOTAL_REV_1YR_ANN_GROWTH |
682
+ | Gross Profit, 1 Yr Growth % | IQ_GP_1YR_ANN_GROWTH |
683
+ | EBITDA, 1 Yr Growth % | IQ_EBITDA_1YR_ANN_GROWTH |
684
+ | EBIT, 1 Yr Growth % | IQ_EBIT_1YR_ANN_GROWTH |
685
+ | Net Income, 1 Yr Growth % | IQ_NI_1YR_ANN_GROWTH |
686
+ | Diluted EPS, 1 Yr Growth % | IQ_EPS_1YR_ANN_GROWTH |
687
+ | Cash from Operations, 1 Yr Growth % | IQ_CFO_1YR_ANN_GROWTH |
688
+ | Capital Expenditures, 1 Yr Growth % | IQ_CAPEX_1YR_ANN_GROWTH |
689
+ | Levered FCF, 1 Yr Growth % | IQ_LFCF_1YR_ANN_GROWTH |
690
+ | Unlevered FCF, 1 Yr Growth % | IQ_UFCF_1YR_ANN_GROWTH |
691
+ | Dividend per Share, 1 Yr Growth % | IQ_DPS_1YR_ANN_GROWTH |
692
+
693
+ **Valuation Multiples (Trailing):**
694
+ | Field | Variable |
695
+ |-------|----------|
696
+ | TEV/Total Revenues | IQ_TEV_TOTAL_REV |
697
+ | TEV/EBITDA | IQ_TEV_EBITDA |
698
+ | TEV/EBIT | IQ_TEV_EBIT |
699
+ | TEV/Unlevered FCF | IQ_TEV_UFCF |
700
+ | Market Cap/Levered FCF | IQ_MARKET_CAP_LFCF |
701
+ | P/Diluted EPS before extra | IQ_PE_EXCL |
702
+ | P/BV | IQ_PBV |
703
+ | P/TangBV | IQ_PTBV |
704
+ | P/Sales | IQ_PRICE_SALES |
705
+
706
+ **Valuation Multiples (Forward NTM):**
707
+ | Field | Variable |
708
+ |-------|----------|
709
+ | TEV/Forward Total Revenue | IQ_TEV_TOTAL_REV_FWD |
710
+ | TEV/Forward EBITDA | IQ_TEV_EBITDA_FWD |
711
+ | TEV/Forward EBIT | IQ_TEV_EBIT_FWD |
712
+ | P/Forward Diluted EPS | IQ_PE_EXCL_FWD |
713
+ | PEG Ratio | IQ_PEG_FWD |
714
+ | P/Forward CFPS | IQ_PRICE_CFPS_FWD |
715
+
716
+ **Consensus Estimates:**
717
+ | Field | Variable |
718
+ |-------|----------|
719
+ | Primary EPS Estimate | IQ_EPS_EST |
720
+ | Revenue Estimate | IQ_REVENUE_EST |
721
+ | EBITDA Estimate | IQ_EBITDA_EST |
722
+ | EBIT Estimate | IQ_EBIT_EST |
723
+ | Net Income Estimate | IQ_NI_EST |
724
+ | Cash Flow Per Share Estimate | IQ_CFPS_EST |
725
+ | Avg Broker Recommendation (Text) | IQ_AVG_BROKER_REC |
726
+ | Avg Broker Recommendation (#) | IQ_AVG_BROKER_REC_NO |
727
+ | Price Target | IQ_PRICE_TARGET |
728
+ | Est. Annual EPS Growth - 5 Yr | IQ_EST_EPS_GROWTH_5YR |
729
+ | # of Analyst Buy Recomm. | IQ_EST_NUM_BUY |
730
+ | # of Analyst Hold Recom. | IQ_EST_NUM_HOLD |
731
+ | # of Analyst Sell Recom. | IQ_EST_NUM_SELL |
732
+ | EPS Surprise % | IQ_EST_EPS_SURPRISE_PERCENT |
733
+ | Revenue Surprise % | IQ_EST_REV_SURPRISE_PERCENT |
734
+ | Estimated Next Earnings Date | IQ_EST_NEXT_EARNINGS_DATE |
735
+
736
+ **Market Data & Pricing:**
737
+ | Field | Variable |
738
+ |-------|----------|
739
+ | Last Sale Price | IQ_LASTSALEPRICE |
740
+ | Close Price | IQ_CLOSEPRICE |
741
+ | Dividend Adjusted Close Price | IQ_CLOSEPRICE_ADJ |
742
+ | 52 Week High Price | IQ_YEARHIGH |
743
+ | 52 Week High Date | IQ_YEARHIGH_DATE |
744
+ | 52 Week Low Price | IQ_YEARLOW |
745
+ | 52 Week Low Date | IQ_YEARLOW_DATE |
746
+ | Daily Volume | IQ_VOLUME |
747
+ | Daily Value Traded | IQ_VALUE_TRADED |
748
+ | Market Capitalization | IQ_MARKETCAP |
749
+ | Enterprise Value | IQ_TEV |
750
+ | Shares Outstanding | IQ_SHARESOUTSTANDING |
751
+ | 5 Year Beta | IQ_BETA_5YR |
752
+ | 5 Year Price Volatility | IQ_PRICE_VOL_HIST_5YR |
753
+ | Dividend Yield | IQ_DIVIDEND_YIELD |
754
+ | Annualized Dividend Per Share | IQ_ANNUALIZED_DIVIDEND |
755
+ | VWAP | IQ_VWAP |
756
+
757
+ **Credit & Ratings:**
758
+ | Field | Variable |
759
+ |-------|----------|
760
+ | S&P Long-Term Company Rating | IQ_SP_LC_LT |
761
+ | S&P Long-Term Company Rating Date | IQ_SP_LC_DATE_LT |
762
+ | S&P Outlook/Credit Watch | IQ_SP_OUTLOOK_WATCH |
763
+ | S&P Long Term Security Rating | IQ_SP_ISSUE_LT |
764
+ | S&P Security Rating Date | IQ_SP_ISSUE_DATE |
765
+ | S&P Security Rating Action | IQ_SP_ISSUE_ACTION |
766
+
767
+ **Debt Detail:**
768
+ | Field | Variable |
769
+ |-------|----------|
770
+ | Total Commercial Paper | IQ_CP |
771
+ | Total Revolving Credit | IQ_RC |
772
+ | Total Term Loans | IQ_TERM_LOANS |
773
+ | Total Sr. Bonds and Notes | IQ_SR_BONDS_NOTES |
774
+ | Total Sub. Bonds and Notes | IQ_SUB_BONDS_NOTES |
775
+ | Total Senior Debt | IQ_SR_DEBT |
776
+ | Total Sub. Debt | IQ_TOTAL_SUB_DEBT |
777
+ | Total Convertible Debt | IQ_CONVERT |
778
+ | Senior Debt/EBITDA | IQ_SR_DEBT_EBITDA |
779
+ | Senior Debt/(EBITDA-CAPEX) | IQ_SR_DEBT_EBITDA_CAPEX |
780
+
781
+ **Fixed Income:**
782
+ | Field | Variable |
783
+ |-------|----------|
784
+ | Issue Name | IQ_ISSUE_NAME |
785
+ | Issuer | IQ_ISSUER |
786
+ | Amount Outstanding | IQ_AMT_OUT |
787
+ | Maturity Date | IQ_MATURITY_DATE |
788
+ | Offering Coupon | IQ_OFFER_COUPON |
789
+ | Current Price | IQ_BOND_PRICE |
790
+ | YTW | IQ_YTW |
791
+ | STW | IQ_STW |
792
+ | Callable Feature | IQ_CALLABLE |
793
+
794
+ **Ownership:**
795
+ | Field | Variable |
796
+ |-------|----------|
797
+ | Institutional Holder | IQ_INSTITUTIONAL_OWNER |
798
+ | Institutional Holder Total Shares | IQ_INSTITUTIONAL_SHARES |
799
+ | Insider Holder | IQ_INSIDER_OWNER |
800
+ | Insider Holder Total Shares | IQ_INSIDER_SHARES |
801
+ | Holder Name | IQ_HOLDER_NAME |
802
+ | Holder CIQ ID | IQ_HOLDER_CIQID |
803
+ | Holder Total Shares | IQ_HOLDER_SHARES |
804
+ | Mutual Fund Name | IQ_HOLDER_FUND_NAME |
805
+ | Mutual Fund Shares Held | IQ_HOLDER_FUND_SHARES |
806
+ | Mutual Fund % of Shares Outstanding | IQ_HOLDER_FUND_PERCENT |
807
+
808
+ **Company Information:**
809
+ | Field | Variable |
810
+ |-------|----------|
811
+ | Company Name | IQ_COMPANY_NAME |
812
+ | Business Description | IQ_BUSINESS_DESCRIPTION |
813
+ | Headquarters | IQ_COMPANY_ADDRESS |
814
+ | Primary Industry | IQ_PRIMARY_INDUSTRY |
815
+ | Stock Exchange | IQ_EXCHANGE |
816
+ | Full Time Employees | IQ_FULL_TIME |
817
+ | Number of Shareholders | IQ_NUMBER_SHAREHOLDERS |
818
+
819
+ **Segment Data:**
820
+ | Field | Variable |
821
+ |-------|----------|
822
+ | Business Segment Name | IQ_BUS_SEG_NAME |
823
+ | Business Segment Description | IQ_BUS_SEG_DESCRIPTION |
824
+ | Business Segment Revenue | IQ_BUS_SEG_REV |
825
+ | Business Segment Assets | IQ_BUS_SEG_ASSETS |
826
+ | Geographic Segment Name | IQ_GEO_SEG_NAME |
827
+ | Geographic Segment Revenue | IQ_GEO_SEG_REV |
828
+ | Geographic Segment Assets | IQ_GEO_SEG_ASSETS |
829
+
830
+ **Index & Screening:**
831
+ | Field | Variable |
832
+ |-------|----------|
833
+ | Index Constituents | IQ_CONSTITUENTS |
834
+ | Quick Comps | IQ_QUICK_COMP |
835
+ | All Transactions | IQ_TRANSACTION_LIST |
836
+ | M&A Transactions | IQ_TRANSACTION_LIST_MA |
837
+
838
+ **Range Functions:**
839
+ | Function | Syntax |
840
+ |----------|--------|
841
+ | Pricing Range | CIQRANGE(T, Market Item, D1, D2) |
842
+ | Financials Range | CIQRANGE(T, Financial Metric, Period, D2) |
843
+ | Multiples Range | CIQRANGE(T, Multiple Metric, Period, D1, D2) |
844
+ | Dividends Range | CIQRANGE(T, Dividend Metric, D1, D2) |
845
+ | News Headlines | CIQRANGE(T, IQ_NEWS, Start Rank, End Rank) |
846
+ | Key Developments | CIQRANGE(T, IQ_KEY_DEV_ID, D1, D2, Categories) |
847
+ | Events | CIQRANGE(T, IQ_EVENT_ID, D1, D2, Categories) |
848
+ | Quick Comps | CIQRANGE(T, IQ_QUICK_COMP, Start Rank, End Rank) |