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.
- package/README.md +59 -0
- package/agent-docs/README.md +397 -0
- package/agent-docs/docs/compaction.md +390 -0
- package/agent-docs/docs/custom-provider.md +580 -0
- package/agent-docs/docs/development.md +69 -0
- package/agent-docs/docs/extensions.md +1971 -0
- package/agent-docs/docs/json.md +79 -0
- package/agent-docs/docs/keybindings.md +174 -0
- package/agent-docs/docs/models.md +293 -0
- package/agent-docs/docs/packages.md +209 -0
- package/agent-docs/docs/prompt-templates.md +67 -0
- package/agent-docs/docs/providers.md +186 -0
- package/agent-docs/docs/rpc.md +1317 -0
- package/agent-docs/docs/sdk.md +962 -0
- package/agent-docs/docs/session.md +412 -0
- package/agent-docs/docs/settings.md +223 -0
- package/agent-docs/docs/shell-aliases.md +13 -0
- package/agent-docs/docs/skills.md +231 -0
- package/agent-docs/docs/terminal-setup.md +70 -0
- package/agent-docs/docs/termux.md +127 -0
- package/agent-docs/docs/themes.md +295 -0
- package/agent-docs/docs/tree.md +219 -0
- package/agent-docs/docs/tui.md +887 -0
- package/agent-docs/docs/windows.md +17 -0
- package/agent-docs/examples/README.md +25 -0
- package/agent-docs/examples/extensions/README.md +205 -0
- package/agent-docs/examples/extensions/antigravity-image-gen.ts +447 -0
- package/agent-docs/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/agent-docs/examples/extensions/bash-spawn-hook.ts +30 -0
- package/agent-docs/examples/extensions/bookmark.ts +50 -0
- package/agent-docs/examples/extensions/built-in-tool-renderer.ts +256 -0
- package/agent-docs/examples/extensions/claude-rules.ts +86 -0
- package/agent-docs/examples/extensions/commands.ts +75 -0
- package/agent-docs/examples/extensions/confirm-destructive.ts +59 -0
- package/agent-docs/examples/extensions/custom-compaction.ts +126 -0
- package/agent-docs/examples/extensions/custom-footer.ts +63 -0
- package/agent-docs/examples/extensions/custom-header.ts +73 -0
- package/agent-docs/examples/extensions/custom-provider-anthropic/index.ts +660 -0
- package/agent-docs/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/agent-docs/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/agent-docs/examples/extensions/custom-provider-gitlab-duo/index.ts +362 -0
- package/agent-docs/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/agent-docs/examples/extensions/custom-provider-gitlab-duo/test.ts +88 -0
- package/agent-docs/examples/extensions/custom-provider-qwen-cli/index.ts +349 -0
- package/agent-docs/examples/extensions/custom-provider-qwen-cli/package.json +16 -0
- package/agent-docs/examples/extensions/dirty-repo-guard.ts +56 -0
- package/agent-docs/examples/extensions/doom-overlay/README.md +46 -0
- package/agent-docs/examples/extensions/doom-overlay/doom/build.sh +152 -0
- package/agent-docs/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
- package/agent-docs/examples/extensions/doom-overlay/doom-component.ts +133 -0
- package/agent-docs/examples/extensions/doom-overlay/doom-engine.ts +186 -0
- package/agent-docs/examples/extensions/doom-overlay/doom-keys.ts +108 -0
- package/agent-docs/examples/extensions/doom-overlay/index.ts +74 -0
- package/agent-docs/examples/extensions/doom-overlay/wad-finder.ts +51 -0
- package/agent-docs/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/agent-docs/examples/extensions/dynamic-resources/dynamic.json +79 -0
- package/agent-docs/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/agent-docs/examples/extensions/dynamic-resources/index.ts +15 -0
- package/agent-docs/examples/extensions/dynamic-tools.ts +77 -0
- package/agent-docs/examples/extensions/event-bus.ts +43 -0
- package/agent-docs/examples/extensions/file-trigger.ts +41 -0
- package/agent-docs/examples/extensions/git-checkpoint.ts +53 -0
- package/agent-docs/examples/extensions/handoff.ts +155 -0
- package/agent-docs/examples/extensions/hello.ts +25 -0
- package/agent-docs/examples/extensions/inline-bash.ts +94 -0
- package/agent-docs/examples/extensions/input-transform.ts +43 -0
- package/agent-docs/examples/extensions/interactive-shell.ts +209 -0
- package/agent-docs/examples/extensions/mac-system-theme.ts +47 -0
- package/agent-docs/examples/extensions/message-renderer.ts +59 -0
- package/agent-docs/examples/extensions/minimal-mode.ts +430 -0
- package/agent-docs/examples/extensions/modal-editor.ts +90 -0
- package/agent-docs/examples/extensions/model-status.ts +31 -0
- package/agent-docs/examples/extensions/notify.ts +55 -0
- package/agent-docs/examples/extensions/overlay-qa-tests.ts +936 -0
- package/agent-docs/examples/extensions/overlay-test.ts +159 -0
- package/agent-docs/examples/extensions/permission-gate.ts +37 -0
- package/agent-docs/examples/extensions/pirate.ts +47 -0
- package/agent-docs/examples/extensions/plan-mode/README.md +65 -0
- package/agent-docs/examples/extensions/plan-mode/index.ts +363 -0
- package/agent-docs/examples/extensions/plan-mode/utils.ts +173 -0
- package/agent-docs/examples/extensions/preset.ts +418 -0
- package/agent-docs/examples/extensions/protected-paths.ts +30 -0
- package/agent-docs/examples/extensions/qna.ts +122 -0
- package/agent-docs/examples/extensions/question.ts +278 -0
- package/agent-docs/examples/extensions/questionnaire.ts +440 -0
- package/agent-docs/examples/extensions/rainbow-editor.ts +90 -0
- package/agent-docs/examples/extensions/reload-runtime.ts +37 -0
- package/agent-docs/examples/extensions/rpc-demo.ts +124 -0
- package/agent-docs/examples/extensions/sandbox/index.ts +324 -0
- package/agent-docs/examples/extensions/sandbox/package-lock.json +92 -0
- package/agent-docs/examples/extensions/sandbox/package.json +19 -0
- package/agent-docs/examples/extensions/send-user-message.ts +97 -0
- package/agent-docs/examples/extensions/session-name.ts +27 -0
- package/agent-docs/examples/extensions/shutdown-command.ts +69 -0
- package/agent-docs/examples/extensions/snake.ts +343 -0
- package/agent-docs/examples/extensions/space-invaders.ts +566 -0
- package/agent-docs/examples/extensions/ssh.ts +233 -0
- package/agent-docs/examples/extensions/status-line.ts +40 -0
- package/agent-docs/examples/extensions/subagent/README.md +172 -0
- package/agent-docs/examples/extensions/subagent/agents/planner.md +37 -0
- package/agent-docs/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/agent-docs/examples/extensions/subagent/agents/scout.md +50 -0
- package/agent-docs/examples/extensions/subagent/agents/worker.md +24 -0
- package/agent-docs/examples/extensions/subagent/agents.ts +130 -0
- package/agent-docs/examples/extensions/subagent/index.ts +1068 -0
- package/agent-docs/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/agent-docs/examples/extensions/subagent/prompts/implement.md +10 -0
- package/agent-docs/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/agent-docs/examples/extensions/summarize.ts +206 -0
- package/agent-docs/examples/extensions/system-prompt-header.ts +17 -0
- package/agent-docs/examples/extensions/timed-confirm.ts +72 -0
- package/agent-docs/examples/extensions/titlebar-spinner.ts +58 -0
- package/agent-docs/examples/extensions/todo.ts +314 -0
- package/agent-docs/examples/extensions/tool-override.ts +146 -0
- package/agent-docs/examples/extensions/tools.ts +145 -0
- package/agent-docs/examples/extensions/trigger-compact.ts +40 -0
- package/agent-docs/examples/extensions/truncated-tool.ts +194 -0
- package/agent-docs/examples/extensions/widget-placement.ts +17 -0
- package/agent-docs/examples/extensions/with-deps/index.ts +37 -0
- package/agent-docs/examples/extensions/with-deps/package-lock.json +31 -0
- package/agent-docs/examples/extensions/with-deps/package.json +22 -0
- package/agent-docs/examples/rpc-extension-ui.ts +654 -0
- package/agent-docs/examples/sdk/01-minimal.ts +22 -0
- package/agent-docs/examples/sdk/02-custom-model.ts +48 -0
- package/agent-docs/examples/sdk/03-custom-prompt.ts +55 -0
- package/agent-docs/examples/sdk/04-skills.ts +53 -0
- package/agent-docs/examples/sdk/05-tools.ts +56 -0
- package/agent-docs/examples/sdk/06-extensions.ts +88 -0
- package/agent-docs/examples/sdk/07-context-files.ts +40 -0
- package/agent-docs/examples/sdk/08-prompt-templates.ts +47 -0
- package/agent-docs/examples/sdk/09-api-keys-and-oauth.ts +48 -0
- package/agent-docs/examples/sdk/10-settings.ts +54 -0
- package/agent-docs/examples/sdk/11-sessions.ts +48 -0
- package/agent-docs/examples/sdk/12-full-control.ts +82 -0
- package/agent-docs/examples/sdk/README.md +144 -0
- package/agent-docs/xll-skill.md +61 -0
- package/agent-docs/xll-spec.md +110 -0
- package/dist/cli/args.js +290 -0
- package/dist/cli/config-selector.js +31 -0
- package/dist/cli/file-processor.js +79 -0
- package/dist/cli/list-models.js +92 -0
- package/dist/cli/package-commands.js +210 -0
- package/dist/cli/report-settings-errors.js +11 -0
- package/dist/cli/session-picker.js +34 -0
- package/dist/cli.js +19 -0
- package/dist/config.js +288 -0
- package/dist/core/abort.js +15 -0
- package/dist/core/agent-loop.js +352 -0
- package/dist/core/agent-session.js +2019 -0
- package/dist/core/agent.js +410 -0
- package/dist/core/auth-storage.js +456 -0
- package/dist/core/bash-executor.js +222 -0
- package/dist/core/compaction/branch-summarization.js +242 -0
- package/dist/core/compaction/compaction.js +610 -0
- package/dist/core/compaction/index.js +7 -0
- package/dist/core/compaction/utils.js +139 -0
- package/dist/core/defaults.js +6 -0
- package/dist/core/diagnostics.js +2 -0
- package/dist/core/event-bus.js +25 -0
- package/dist/core/exec.js +71 -0
- package/dist/core/export-html/ansi-to-html.js +256 -0
- package/dist/core/export-html/index.js +238 -0
- package/dist/core/export-html/session-view-model.js +342 -0
- package/dist/core/export-html/template.css +1110 -0
- package/dist/core/export-html/template.html +76 -0
- package/dist/core/export-html/template.js +1990 -0
- package/dist/core/export-html/tool-renderer.js +63 -0
- package/dist/core/export-html/vendor/highlight.min.js +7725 -0
- package/dist/core/export-html/vendor/marked.min.js +1803 -0
- package/dist/core/extensions/index.js +9 -0
- package/dist/core/extensions/loader.js +422 -0
- package/dist/core/extensions/runner.js +651 -0
- package/dist/core/extensions/types.js +35 -0
- package/dist/core/extensions/wrapper.js +102 -0
- package/dist/core/footer-data-provider.js +162 -0
- package/dist/core/index.js +9 -0
- package/dist/core/keybindings.js +153 -0
- package/dist/core/messages.js +133 -0
- package/dist/core/model-registry.js +539 -0
- package/dist/core/model-resolver.js +370 -0
- package/dist/core/package-manager.js +1485 -0
- package/dist/core/prompt-templates.js +253 -0
- package/dist/core/resolve-config-value.js +59 -0
- package/dist/core/resource-loader.js +700 -0
- package/dist/core/sdk.js +197 -0
- package/dist/core/session-bash.js +99 -0
- package/dist/core/session-compaction.js +165 -0
- package/dist/core/session-manager.js +1153 -0
- package/dist/core/session-models.js +99 -0
- package/dist/core/session-retry.js +155 -0
- package/dist/core/settings-manager.js +572 -0
- package/dist/core/skills.js +382 -0
- package/dist/core/slash-commands.js +31 -0
- package/dist/core/system-prompt.js +161 -0
- package/dist/core/theme.js +770 -0
- package/dist/core/timings.js +26 -0
- package/dist/core/tools/bash.js +258 -0
- package/dist/core/tools/edit-diff.js +245 -0
- package/dist/core/tools/edit.js +148 -0
- package/dist/core/tools/find.js +208 -0
- package/dist/core/tools/grep.js +246 -0
- package/dist/core/tools/index.js +67 -0
- package/dist/core/tools/ls.js +123 -0
- package/dist/core/tools/path-utils.js +81 -0
- package/dist/core/tools/read.js +160 -0
- package/dist/core/tools/truncate.js +70 -0
- package/dist/core/tools/write.js +82 -0
- package/dist/custom/agents/action.js +13 -0
- package/dist/custom/agents/document-reader.js +70 -0
- package/dist/custom/agents/general.js +26 -0
- package/dist/custom/agents/index.js +49 -0
- package/dist/custom/agents/installation.js +13 -0
- package/dist/custom/agents/types.js +7 -0
- package/dist/custom/auth/refresh-timer.js +33 -0
- package/dist/custom/auth/shortcut-oauth.js +145 -0
- package/dist/custom/constants.js +21 -0
- package/dist/custom/context/workbook-summary.js +73 -0
- package/dist/custom/credits/shortcut-credits.js +29 -0
- package/dist/custom/cron/cron-daemon-entry.js +18 -0
- package/dist/custom/cron/daemon-ipc.js +131 -0
- package/dist/custom/cron/daemon.js +224 -0
- package/dist/custom/cron/jobs.js +226 -0
- package/dist/custom/cron/run-log.js +51 -0
- package/dist/custom/cron/schedule.js +72 -0
- package/dist/custom/cron/status-line.js +98 -0
- package/dist/custom/cron/store.js +87 -0
- package/dist/custom/cron/types.js +8 -0
- package/dist/custom/dev/index.js +59 -0
- package/dist/custom/dev/trace-export.js +58 -0
- package/dist/custom/ensure-excel.js +63 -0
- package/dist/custom/excel-config.js +36 -0
- package/dist/custom/preflight.js +422 -0
- package/dist/custom/prompts/action.js +100 -0
- package/dist/custom/prompts/api.js +66 -0
- package/dist/custom/prompts/installation.js +124 -0
- package/dist/custom/prompts/shared.js +138 -0
- package/dist/custom/providers/llm-usage.js +42 -0
- package/dist/custom/providers/message-converter.js +74 -0
- package/dist/custom/providers/provider-ids.js +9 -0
- package/dist/custom/providers/register-openai-codex-provider.js +27 -0
- package/dist/custom/providers/register-shortcut-provider.js +52 -0
- package/dist/custom/providers/shortcut-invoke.js +117 -0
- package/dist/custom/providers/shortcut-stream.js +252 -0
- package/dist/custom/providers/sse-protocol.js +38 -0
- package/dist/custom/sync-xll.js +130 -0
- package/dist/custom/tools/cron.js +413 -0
- package/dist/custom/tools/excel-exec.js +167 -0
- package/dist/custom/tools/excel-range.js +50 -0
- package/dist/custom/tools/llm-analysis.js +265 -0
- package/dist/custom/tools/render-helpers.js +38 -0
- package/dist/custom/tools/switch-mode.js +94 -0
- package/dist/custom/tools/task/agents.js +6 -0
- package/dist/custom/tools/task/index.js +8 -0
- package/dist/custom/tools/task/render.js +348 -0
- package/dist/custom/tools/task/subprocess.js +320 -0
- package/dist/custom/tools/task/task.js +205 -0
- package/dist/custom/tools/todo-list.js +195 -0
- package/dist/custom/tracing/session-upload.js +93 -0
- package/dist/index.js +45 -0
- package/dist/main.js +613 -0
- package/dist/migrations.js +265 -0
- package/dist/modes/index.js +8 -0
- package/dist/modes/interactive/components/armin.js +337 -0
- package/dist/modes/interactive/components/assistant-message.js +94 -0
- package/dist/modes/interactive/components/bash-execution.js +171 -0
- package/dist/modes/interactive/components/bordered-loader.js +51 -0
- package/dist/modes/interactive/components/branch-summary-message.js +45 -0
- package/dist/modes/interactive/components/compaction-summary-message.js +46 -0
- package/dist/modes/interactive/components/config-selector.js +488 -0
- package/dist/modes/interactive/components/countdown-timer.js +33 -0
- package/dist/modes/interactive/components/custom-editor.js +93 -0
- package/dist/modes/interactive/components/custom-message.js +81 -0
- package/dist/modes/interactive/components/daxnuts.js +140 -0
- package/dist/modes/interactive/components/diff.js +133 -0
- package/dist/modes/interactive/components/dynamic-border.js +21 -0
- package/dist/modes/interactive/components/extension-editor.js +105 -0
- package/dist/modes/interactive/components/extension-input.js +61 -0
- package/dist/modes/interactive/components/extension-selector.js +78 -0
- package/dist/modes/interactive/components/footer.js +309 -0
- package/dist/modes/interactive/components/index.js +33 -0
- package/dist/modes/interactive/components/keybinding-hints.js +61 -0
- package/dist/modes/interactive/components/layout.js +64 -0
- package/dist/modes/interactive/components/login-dialog.js +148 -0
- package/dist/modes/interactive/components/model-selector.js +237 -0
- package/dist/modes/interactive/components/oauth-selector.js +111 -0
- package/dist/modes/interactive/components/session-selector-search.js +157 -0
- package/dist/modes/interactive/components/session-selector.js +860 -0
- package/dist/modes/interactive/components/settings-selector.js +123 -0
- package/dist/modes/interactive/components/show-images-selector.js +35 -0
- package/dist/modes/interactive/components/skill-invocation-message.js +48 -0
- package/dist/modes/interactive/components/theme-selector.js +47 -0
- package/dist/modes/interactive/components/thinking-selector.js +47 -0
- package/dist/modes/interactive/components/tool-execution.js +789 -0
- package/dist/modes/interactive/components/tool-group.js +106 -0
- package/dist/modes/interactive/components/tree-selector.js +962 -0
- package/dist/modes/interactive/components/user-message-selector.js +115 -0
- package/dist/modes/interactive/components/user-message.js +48 -0
- package/dist/modes/interactive/components/visual-truncate.js +33 -0
- package/dist/modes/interactive/file-attachments.js +135 -0
- package/dist/modes/interactive/interactive-mode.js +3775 -0
- package/dist/modes/interactive/theme/dark.json +85 -0
- package/dist/modes/interactive/theme/light.json +85 -0
- package/dist/modes/interactive/theme/theme-schema.json +335 -0
- package/dist/modes/interactive/theme/theme.js +177 -0
- package/dist/modes/print-mode.js +101 -0
- package/dist/modes/rpc/rpc-client.js +387 -0
- package/dist/modes/rpc/rpc-mode.js +509 -0
- package/dist/modes/rpc/rpc-types.js +8 -0
- package/dist/subagent-entry.js +145 -0
- package/dist/tool-names.js +34 -0
- package/dist/tui/autocomplete.js +596 -0
- package/dist/tui/components/box.js +104 -0
- package/dist/tui/components/cancellable-loader.js +35 -0
- package/dist/tui/components/editor.js +1679 -0
- package/dist/tui/components/image.js +69 -0
- package/dist/tui/components/input.js +433 -0
- package/dist/tui/components/loader.js +49 -0
- package/dist/tui/components/markdown.js +629 -0
- package/dist/tui/components/select-list.js +152 -0
- package/dist/tui/components/settings-list.js +185 -0
- package/dist/tui/components/spacer.js +23 -0
- package/dist/tui/components/text.js +89 -0
- package/dist/tui/components/truncated-text.js +51 -0
- package/dist/tui/editor-component.js +2 -0
- package/dist/tui/fuzzy.js +107 -0
- package/dist/tui/get-east-asian-width/index.js +32 -0
- package/dist/tui/get-east-asian-width/lookup.js +404 -0
- package/dist/tui/index.js +32 -0
- package/dist/tui/keybindings.js +114 -0
- package/dist/tui/keys.js +959 -0
- package/dist/tui/kill-ring.js +44 -0
- package/dist/tui/stdin-buffer.js +317 -0
- package/dist/tui/terminal-image.js +288 -0
- package/dist/tui/terminal.js +249 -0
- package/dist/tui/tui/autocomplete.js +596 -0
- package/dist/tui/tui/components/box.js +106 -0
- package/dist/tui/tui/components/cancellable-loader.js +35 -0
- package/dist/tui/tui/components/editor.js +1679 -0
- package/dist/tui/tui/components/image.js +69 -0
- package/dist/tui/tui/components/input.js +433 -0
- package/dist/tui/tui/components/loader.js +49 -0
- package/dist/tui/tui/components/markdown.js +629 -0
- package/dist/tui/tui/components/select-list.js +152 -0
- package/dist/tui/tui/components/settings-list.js +185 -0
- package/dist/tui/tui/components/spacer.js +23 -0
- package/dist/tui/tui/components/text.js +91 -0
- package/dist/tui/tui/components/truncated-text.js +51 -0
- package/dist/tui/tui/editor-component.js +2 -0
- package/dist/tui/tui/fuzzy.js +107 -0
- package/dist/tui/tui/get-east-asian-width/index.js +32 -0
- package/dist/tui/tui/get-east-asian-width/lookup.js +404 -0
- package/dist/tui/tui/index.js +32 -0
- package/dist/tui/tui/keybindings.js +114 -0
- package/dist/tui/tui/keys.js +959 -0
- package/dist/tui/tui/kill-ring.js +44 -0
- package/dist/tui/tui/stdin-buffer.js +317 -0
- package/dist/tui/tui/terminal-image.js +288 -0
- package/dist/tui/tui/terminal.js +249 -0
- package/dist/tui/tui/tui.js +955 -0
- package/dist/tui/tui/undo-stack.js +25 -0
- package/dist/tui/tui/utils.js +800 -0
- package/dist/tui/tui.js +955 -0
- package/dist/tui/undo-stack.js +25 -0
- package/dist/tui/utils.js +800 -0
- package/dist/utils/changelog.js +87 -0
- package/dist/utils/clipboard-image.js +164 -0
- package/dist/utils/clipboard-native.js +14 -0
- package/dist/utils/clipboard.js +67 -0
- package/dist/utils/frontmatter.js +26 -0
- package/dist/utils/git.js +166 -0
- package/dist/utils/image-convert.js +35 -0
- package/dist/utils/image-resize.js +183 -0
- package/dist/utils/mime.js +26 -0
- package/dist/utils/photon.js +121 -0
- package/dist/utils/shell.js +217 -0
- package/dist/utils/sleep.js +17 -0
- package/dist/utils/tools-manager.js +259 -0
- package/package.json +78 -0
- package/skills/excel-com-api/SKILL.md +74 -0
- package/skills/excel-com-api/excel-type-library.py +27767 -0
- package/skills/excel-com-api/office-type-library.py +10867 -0
- package/skills/integrations/SKILL.md +138 -0
- package/skills/integrations/alphasense.md +457 -0
- package/skills/integrations/bloomberg.md +803 -0
- package/skills/integrations/calcbench.md +315 -0
- package/skills/integrations/capiq.md +848 -0
- package/skills/integrations/dynamics-365-finance.md +354 -0
- package/skills/integrations/earnings_transcripts.md +387 -0
- package/skills/integrations/factset.md +758 -0
- package/skills/integrations/ice-fixed-income.md +344 -0
- package/skills/integrations/moodys-analytics.md +313 -0
- package/skills/integrations/morningstar.md +433 -0
- package/skills/integrations/nasdaq-data-link.md +249 -0
- package/skills/integrations/pitchbook.md +413 -0
- package/skills/integrations/preqin.md +422 -0
- package/skills/integrations/quickbooks.md +289 -0
- package/skills/integrations/quickfs.md +314 -0
- package/skills/integrations/refinitiv.md +473 -0
- package/skills/integrations/sage-intacct.md +401 -0
- package/skills/integrations/visible-alpha.md +320 -0
- package/skills/integrations/xero.md +393 -0
- package/skills/integrations/ycharts.md +306 -0
- package/skills/pdf-creation/SKILL.md +93 -0
- package/skills/pdf-extraction/SKILL.md +32 -0
- package/skills/powerpoint-creation/SKILL.md +110 -0
- package/skills/sec-edgar/SKILL.md +127 -0
- package/skills/sec-edgar/sec_to_pdf.py +109 -0
- package/xll/ShortcutXL.xll +0 -0
- package/xll/modules/debug_render.py +272 -0
- package/xll/modules/gameboy.py +241 -0
- package/xll/modules/pong.py +188 -0
- package/xll/modules/shortcut_xl/__init__.py +18 -0
- package/xll/modules/shortcut_xl/_categorize.py +200 -0
- package/xll/modules/shortcut_xl/_com.py +108 -0
- package/xll/modules/shortcut_xl/_format.py +252 -0
- package/xll/modules/shortcut_xl/_log.py +12 -0
- package/xll/modules/shortcut_xl/_managed.py +116 -0
- package/xll/modules/shortcut_xl/_registry.py +44 -0
- package/xll/modules/shortcut_xl/_threading.py +161 -0
- package/xll/modules/shortcut_xl/_tracking.py +283 -0
- package/xll/modules/stocks.py +100 -0
- package/xll/python3.dll +0 -0
- package/xll/python312.dll +0 -0
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
**FactSet Formula Guide**
|
|
2
|
+
|
|
3
|
+
**Intro**
|
|
4
|
+
You have full access to FactSet through the Excel Add-In, but you should only pull FactSet data **when the user explicitly tells you to**. FactSet integrates over 200 databases to analyze markets, companies, and industries. You can retrieve any data point—fundamentals, estimates, ownership, pricing, screening, and more—by writing FDS formulas directly in Excel cells.
|
|
5
|
+
|
|
6
|
+
**IMPORTANT:** Before completing a task involving FactSet, you must verify:
|
|
7
|
+
1. Your FactSet formulas do not return errors (check for #Calc errors and refresh if needed).
|
|
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. Please correct the formula until it outputs the proper value. After you make the proper corrections, there may still be errors, but they should be because of the underlying FactSet data, not your formula syntax.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
**FactSet Formula Syntax**
|
|
16
|
+
|
|
17
|
+
**1. Basic FDS Formula Format**
|
|
18
|
+
Use this when you need ticker and data point.
|
|
19
|
+
Format: =FDS("TICKER-EXCHANGE","DATA_ITEM(PARAMETERS)")
|
|
20
|
+
Example: =FDS("AAPL-US","FG_PRICE(0)")
|
|
21
|
+
(Meaning: pull Apple's most recent closing price.)
|
|
22
|
+
|
|
23
|
+
**IMPORTANT:** Ticker symbols use the format: TICKER-EXCHANGE (e.g., AAPL-US, IBM-NYS, MSFT-NAS, BP-GB).
|
|
24
|
+
|
|
25
|
+
**2. Common Exchange Codes**
|
|
26
|
+
- US = United States (consolidated — covers all US exchanges)
|
|
27
|
+
- NYS = New York Stock Exchange
|
|
28
|
+
- NAS = NASDAQ
|
|
29
|
+
- GB = Great Britain (London)
|
|
30
|
+
- JP = Japan
|
|
31
|
+
- DE = Germany
|
|
32
|
+
- FR = France
|
|
33
|
+
- CA = Canada
|
|
34
|
+
- HK = Hong Kong
|
|
35
|
+
- AU = Australia
|
|
36
|
+
|
|
37
|
+
**3. Formula Code Prefixes**
|
|
38
|
+
FactSet uses different prefixes for different data categories:
|
|
39
|
+
|
|
40
|
+
| Prefix | Database | Description |
|
|
41
|
+
|--------|----------|-------------|
|
|
42
|
+
| FG_ | FactSet Global | Common/general codes (pricing, market data, ratios) |
|
|
43
|
+
| FF_ | FactSet Fundamentals | Financial statement data |
|
|
44
|
+
| FE_ | FactSet Estimates | Consensus estimates and forecasts |
|
|
45
|
+
| P_ | Pricing | Historical price data |
|
|
46
|
+
| OS_ | Ownership | Institutional/insider ownership summary |
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
**4. Period/Date Arguments**
|
|
51
|
+
|
|
52
|
+
**Relative Period Notation:**
|
|
53
|
+
- 0 = Most recent period
|
|
54
|
+
- -1 = One period prior
|
|
55
|
+
- -2 = Two periods prior
|
|
56
|
+
- +1 = One period forward (for estimates)
|
|
57
|
+
- +2 = Two periods forward (for estimates)
|
|
58
|
+
|
|
59
|
+
**Period Type Codes:**
|
|
60
|
+
- D = Days (e.g., 0D = today, -5D = 5 days ago)
|
|
61
|
+
- W = Weeks
|
|
62
|
+
- M = Months
|
|
63
|
+
- Q = Quarters (e.g., 0Q = most recent quarter, -1Q = prior quarter)
|
|
64
|
+
- Y = Years (e.g., 0Y = most recent year, -1Y = prior year)
|
|
65
|
+
|
|
66
|
+
**Period Type Arguments:**
|
|
67
|
+
- ANN or ANN_R = Annual (reported)
|
|
68
|
+
- QTR or QTR_R = Quarterly (reported)
|
|
69
|
+
- SEMI or SEMI_R = Semi-annual (reported)
|
|
70
|
+
- LTM = Last Twelve Months
|
|
71
|
+
- YTD = Year to Date
|
|
72
|
+
- NTM = Next Twelve Months
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
**5. Reporting Type Arguments**
|
|
77
|
+
- RF = Latest Fully Reported (restated/final)
|
|
78
|
+
- RP = Latest Preliminary for Reported Period (default)
|
|
79
|
+
- LFR = Latest as Filed/Reported
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
**6. Currency Conversion**
|
|
84
|
+
|
|
85
|
+
**For Fundamentals (FF_ prefix):**
|
|
86
|
+
Add currency code as the last parameter inside the parentheses.
|
|
87
|
+
=FDS("BP-GB","FF_SALES(ANN,0Y,,,RF,USD)")
|
|
88
|
+
→ BP's annual sales converted to USD.
|
|
89
|
+
|
|
90
|
+
**For Historical Data (P_ prefix with CURR override):**
|
|
91
|
+
=FDS("BP-GB","P_PRICE(0D,,,USD)")
|
|
92
|
+
→ BP's price converted to USD.
|
|
93
|
+
|
|
94
|
+
**Currency Conversion Table:**
|
|
95
|
+
|
|
96
|
+
| Data Type | Syntax | Example |
|
|
97
|
+
|-----------|--------|---------|
|
|
98
|
+
| Fundamentals | Currency as last param | `FF_SALES(ANN,0Y,,,RF,USD)` |
|
|
99
|
+
| Pricing | Currency in P_ params | `P_PRICE(0D,,,USD)` |
|
|
100
|
+
| FG_ codes | No direct conversion | Compute manually using FX rate |
|
|
101
|
+
|
|
102
|
+
**FX Rates:**
|
|
103
|
+
=FDS("EURUSD-FX1","P_PRICE(0D)")
|
|
104
|
+
→ Spot EUR/USD exchange rate.
|
|
105
|
+
|
|
106
|
+
=FDS("EURUSD-FX1","P_PRICE(-30D)")
|
|
107
|
+
→ EUR/USD rate 30 days ago.
|
|
108
|
+
|
|
109
|
+
**Common FX Pair Tickers:**
|
|
110
|
+
EURUSD-FX1, GBPUSD-FX1, USDJPY-FX1, USDCHF-FX1, AUDUSD-FX1, USDCAD-FX1
|
|
111
|
+
|
|
112
|
+
**IMPORTANT:** FG_ codes (like FG_PRICE, FG_MKT_VAL) return values in the security's local currency. To convert, either use P_PRICE with a currency parameter or multiply by an FX rate manually.
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
**7. Forward Estimate Periods**
|
|
117
|
+
|
|
118
|
+
Use FE_ESTIMATE with positive relative periods to pull consensus estimates.
|
|
119
|
+
|
|
120
|
+
**Fiscal Year Estimates:**
|
|
121
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,MEAN,ANN,+1)")
|
|
122
|
+
→ FY+1 (next fiscal year) mean EPS estimate.
|
|
123
|
+
|
|
124
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,MEAN,ANN,+2)")
|
|
125
|
+
→ FY+2 mean EPS estimate.
|
|
126
|
+
|
|
127
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,MEAN,ANN,+3)")
|
|
128
|
+
→ FY+3 mean EPS estimate.
|
|
129
|
+
|
|
130
|
+
**Quarterly Estimates:**
|
|
131
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,MEAN,QTR,+1)")
|
|
132
|
+
→ Next quarter mean EPS estimate.
|
|
133
|
+
|
|
134
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,MEAN,QTR,+2)")
|
|
135
|
+
→ Quarter after next mean EPS estimate.
|
|
136
|
+
|
|
137
|
+
**Current Period Estimate:**
|
|
138
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,MEAN,ANN,0)")
|
|
139
|
+
→ Current fiscal year mean EPS estimate.
|
|
140
|
+
|
|
141
|
+
**NTM (Next Twelve Months):**
|
|
142
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,MEAN,NTM,0)")
|
|
143
|
+
→ NTM blended mean EPS estimate.
|
|
144
|
+
|
|
145
|
+
**Estimate Statistics:**
|
|
146
|
+
|
|
147
|
+
| Statistic | Description | Example |
|
|
148
|
+
|-----------|-------------|---------|
|
|
149
|
+
| MEAN | Average of broker estimates | `FE_ESTIMATE(EPS,MEAN,ANN,+1)` |
|
|
150
|
+
| MEDIAN | Median of broker estimates | `FE_ESTIMATE(EPS,MEDIAN,ANN,+1)` |
|
|
151
|
+
| MIN | Lowest estimate | `FE_ESTIMATE(EPS,MIN,ANN,+1)` |
|
|
152
|
+
| MAX | Highest estimate | `FE_ESTIMATE(EPS,MAX,ANN,+1)` |
|
|
153
|
+
| STDEV | Standard deviation | `FE_ESTIMATE(EPS,STDEV,ANN,+1)` |
|
|
154
|
+
| COUNT | Number of brokers | `FE_ESTIMATE(EPS,COUNT,ANN,+1)` |
|
|
155
|
+
| UP | Number revised upward | `FE_ESTIMATE(EPS,UP,ANN,+1)` |
|
|
156
|
+
| DOWN | Number revised downward | `FE_ESTIMATE(EPS,DOWN,ANN,+1)` |
|
|
157
|
+
|
|
158
|
+
**Available Estimate Items:**
|
|
159
|
+
| Item | Description |
|
|
160
|
+
|------|-------------|
|
|
161
|
+
| EPS | Earnings Per Share |
|
|
162
|
+
| SALES | Revenue |
|
|
163
|
+
| EBITDA | EBITDA |
|
|
164
|
+
| EBIT | EBIT |
|
|
165
|
+
| NET_INCOME | Net Income |
|
|
166
|
+
| DPS | Dividends Per Share |
|
|
167
|
+
| CFPS | Cash Flow Per Share |
|
|
168
|
+
| BV | Book Value Per Share |
|
|
169
|
+
| FCF | Free Cash Flow |
|
|
170
|
+
| CAPEX | Capital Expenditures |
|
|
171
|
+
| ROE | Return on Equity |
|
|
172
|
+
| ROA | Return on Assets |
|
|
173
|
+
|
|
174
|
+
**Note:** Without a relative period, FE_ESTIMATE defaults to the current period. Always specify +1, +2, etc. explicitly for forward estimates.
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
**8. Example Formulas (Natural Language Interpretations)**
|
|
179
|
+
|
|
180
|
+
**Pricing Data (FG_ prefix):**
|
|
181
|
+
=FDS("AAPL-US","FG_PRICE(0)")
|
|
182
|
+
→ Apple's most recent closing price.
|
|
183
|
+
|
|
184
|
+
=FDS("MSFT-US","FG_MKT_VAL")
|
|
185
|
+
→ Microsoft's market capitalization.
|
|
186
|
+
|
|
187
|
+
=FDS("GOOGL-US","P_PRICE(-5D)")
|
|
188
|
+
→ Alphabet's stock price 5 days ago.
|
|
189
|
+
|
|
190
|
+
**Fundamentals Data (FF_ prefix):**
|
|
191
|
+
=FDS("AAPL-US","FF_SALES(ANN,0Y,,,RF)")
|
|
192
|
+
→ Apple's most recent annual revenue (as reported).
|
|
193
|
+
|
|
194
|
+
=FDS("AMZN-US","FF_EBITDA(LTM)")
|
|
195
|
+
→ Amazon's last twelve months EBITDA.
|
|
196
|
+
|
|
197
|
+
=FDS("NVDA-US","FF_NET_INCOME(QTR,0Q,,,RF)")
|
|
198
|
+
→ Nvidia's most recent quarterly net income.
|
|
199
|
+
|
|
200
|
+
=FDS("TSLA-US","FF_EPS(ANN,0Y,,,RF)")
|
|
201
|
+
→ Tesla's most recent annual EPS.
|
|
202
|
+
|
|
203
|
+
=FDS("META-US","FF_GROSS_PROFIT(ANN,-1Y,,,RF)")
|
|
204
|
+
→ Meta's prior year gross profit.
|
|
205
|
+
|
|
206
|
+
**Compound Formulas (Ratios):**
|
|
207
|
+
=FDS("BP-GB","FF_ENTRPR_VAL(ANN,0Y,,,RF)/FF_SALES(ANN,0Y,,,RF)")
|
|
208
|
+
→ BP's Enterprise Value / Sales ratio.
|
|
209
|
+
|
|
210
|
+
=FDS("AAPL-US","P_PRICE(0D)/FF_EPS(ANN,0Y,,,RF)")
|
|
211
|
+
→ Apple's P/E ratio (current price / annual EPS).
|
|
212
|
+
|
|
213
|
+
**Estimates Data (FE_ prefix):**
|
|
214
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,MEAN,ANN,+1)")
|
|
215
|
+
→ Apple's mean EPS estimate for next fiscal year.
|
|
216
|
+
|
|
217
|
+
=FDS("MSFT-US","FE_ESTIMATE(SALES,MEDIAN,QTR,+1)")
|
|
218
|
+
→ Microsoft's median revenue estimate for next quarter.
|
|
219
|
+
|
|
220
|
+
**Using Cell References:**
|
|
221
|
+
=FDS(A1,"FG_PRICE(0)")
|
|
222
|
+
→ Retrieves price for ticker in cell A1.
|
|
223
|
+
|
|
224
|
+
=FDS("AAPL-US",B1)
|
|
225
|
+
→ Retrieves data item specified in cell B1 for Apple.
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
**9. FactSet Fundamentals (FF_) Data Items**
|
|
230
|
+
|
|
231
|
+
**Income Statement:**
|
|
232
|
+
| Value | FactSet Variable |
|
|
233
|
+
|-------|------------------|
|
|
234
|
+
| Total Revenue/Sales | FF_SALES |
|
|
235
|
+
| Cost of Goods Sold | FF_COGS |
|
|
236
|
+
| Cost of Goods Sold (excl. D&A) | FF_COGS_XDEP |
|
|
237
|
+
| Gross Profit | FF_GROSS_PROFIT |
|
|
238
|
+
| Operating Income | FF_OPER_INC |
|
|
239
|
+
| EBITDA | FF_EBITDA |
|
|
240
|
+
| EBIT | FF_EBIT |
|
|
241
|
+
| Net Interest Expense | FF_NET_INT_EXP |
|
|
242
|
+
| Pretax Income | FF_PRETAX_INC |
|
|
243
|
+
| Income Tax Expense | FF_TAX |
|
|
244
|
+
| Net Income | FF_NET_INCOME |
|
|
245
|
+
| Net Income (Continuing Ops) | FF_NET_INC_CONT |
|
|
246
|
+
| Diluted EPS | FF_EPS |
|
|
247
|
+
| Basic EPS | FF_BASIC_EPS |
|
|
248
|
+
| Diluted Shares Outstanding | FF_SHS_DILUTED |
|
|
249
|
+
| Basic Shares Outstanding | FF_SHS_BASIC |
|
|
250
|
+
| Dividends Per Share | FF_DPS |
|
|
251
|
+
| R&D Expense | FF_RD_EXP |
|
|
252
|
+
| SG&A Expense | FF_SGA |
|
|
253
|
+
| Depreciation & Amortization | FF_DEP_AMORT |
|
|
254
|
+
|
|
255
|
+
**Balance Sheet:**
|
|
256
|
+
| Value | FactSet Variable |
|
|
257
|
+
|-------|------------------|
|
|
258
|
+
| Cash & Equivalents | FF_CASH |
|
|
259
|
+
| Short-Term Investments | FF_ST_INVEST |
|
|
260
|
+
| Total Cash & ST Investments | FF_CASH_ST |
|
|
261
|
+
| Accounts Receivable | FF_ACCTS_REC |
|
|
262
|
+
| Inventory | FF_INVENTORIES |
|
|
263
|
+
| Total Current Assets | FF_CURR_ASSETS |
|
|
264
|
+
| Net PP&E | FF_NET_PPE |
|
|
265
|
+
| Gross PP&E | FF_GROSS_PPE |
|
|
266
|
+
| Goodwill | FF_GOODWILL |
|
|
267
|
+
| Intangible Assets | FF_INTANGIBLES |
|
|
268
|
+
| Total Assets | FF_ASSETS |
|
|
269
|
+
| Accounts Payable | FF_ACCTS_PAY |
|
|
270
|
+
| Short-Term Debt | FF_ST_DEBT |
|
|
271
|
+
| Current Portion of LT Debt | FF_CURR_PORT_DEBT |
|
|
272
|
+
| Total Current Liabilities | FF_CURR_LIAB |
|
|
273
|
+
| Long-Term Debt | FF_LT_DEBT |
|
|
274
|
+
| Total Debt | FF_DEBT |
|
|
275
|
+
| Total Liabilities | FF_LIAB |
|
|
276
|
+
| Common Equity | FF_COM_EQ |
|
|
277
|
+
| Total Equity | FF_SHLDRS_EQ |
|
|
278
|
+
| Book Value Per Share | FF_BV_PS |
|
|
279
|
+
| Tangible Book Value | FF_TBV |
|
|
280
|
+
| Tangible Book Value Per Share | FF_TBV_PS |
|
|
281
|
+
| Retained Earnings | FF_RETAIN_EARN |
|
|
282
|
+
| Minority Interest | FF_MINORITY_INT |
|
|
283
|
+
|
|
284
|
+
**Cash Flow Statement:**
|
|
285
|
+
| Value | FactSet Variable |
|
|
286
|
+
|-------|------------------|
|
|
287
|
+
| Cash from Operations | FF_OPER_CF |
|
|
288
|
+
| Capital Expenditures | FF_CAPEX |
|
|
289
|
+
| Cash from Investing | FF_INVEST_CF |
|
|
290
|
+
| Cash from Financing | FF_FINAN_CF |
|
|
291
|
+
| Free Cash Flow | FF_FREE_CF |
|
|
292
|
+
| Dividends Paid | FF_DIV_CF |
|
|
293
|
+
| Stock Repurchases | FF_REPURCH |
|
|
294
|
+
| Debt Issued | FF_DEBT_ISSUED |
|
|
295
|
+
| Debt Repaid | FF_DEBT_REPAID |
|
|
296
|
+
| Net Change in Cash | FF_NET_CHG_CASH |
|
|
297
|
+
|
|
298
|
+
**Ratios & Metrics:**
|
|
299
|
+
| Value | FactSet Variable |
|
|
300
|
+
|-------|------------------|
|
|
301
|
+
| Return on Equity | FF_ROE |
|
|
302
|
+
| Return on Assets | FF_ROA |
|
|
303
|
+
| Return on Invested Capital | FF_ROIC |
|
|
304
|
+
| Gross Margin | FF_GROSS_MGN |
|
|
305
|
+
| Operating Margin | FF_OPER_MGN |
|
|
306
|
+
| EBITDA Margin | FF_EBITDA_MGN |
|
|
307
|
+
| Net Profit Margin | FF_NET_MGN |
|
|
308
|
+
| Asset Turnover | FF_ASSET_TURN |
|
|
309
|
+
| Inventory Turnover | FF_INV_TURN |
|
|
310
|
+
| Current Ratio | FF_CURR_RATIO |
|
|
311
|
+
| Quick Ratio | FF_QUICK_RATIO |
|
|
312
|
+
| Debt/Equity | FF_DEBT_EQ |
|
|
313
|
+
| Debt/EBITDA | FF_DEBT_EBITDA |
|
|
314
|
+
| Interest Coverage | FF_INT_COV |
|
|
315
|
+
| Altman Z-Score | FF_ZSCORE |
|
|
316
|
+
| Enterprise Value | FF_ENTRPR_VAL |
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
**10. FactSet Global/Pricing (FG_ and P_) Data Items**
|
|
321
|
+
|
|
322
|
+
| Value | FactSet Variable |
|
|
323
|
+
|-------|------------------|
|
|
324
|
+
| Last Price | FG_PRICE |
|
|
325
|
+
| Market Value/Cap | FG_MKT_VAL |
|
|
326
|
+
| Enterprise Value | FG_ENTRPR_VAL |
|
|
327
|
+
| Volume | FG_VOLUME |
|
|
328
|
+
| 52-Week High | FG_HIGH_52W |
|
|
329
|
+
| 52-Week Low | FG_LOW_52W |
|
|
330
|
+
| Beta (5-Year) | FG_BETA |
|
|
331
|
+
| Dividend Yield | FG_DIV_YLD |
|
|
332
|
+
| P/E Ratio | FG_PE |
|
|
333
|
+
| Price/Book | FG_PB |
|
|
334
|
+
| Price/Sales | FG_PS |
|
|
335
|
+
| EV/EBITDA | FG_EV_EBITDA |
|
|
336
|
+
| EV/Sales | FG_EV_SALES |
|
|
337
|
+
| Historical Price | P_PRICE |
|
|
338
|
+
| Historical Volume | P_VOLUME |
|
|
339
|
+
| High Price | P_PRICE_HIGH |
|
|
340
|
+
| Low Price | P_PRICE_LOW |
|
|
341
|
+
| Open Price | P_OPEN |
|
|
342
|
+
| Close Price | P_PRICE_CLOSE |
|
|
343
|
+
| GICS Industry | FG_GICS_INDUSTRY |
|
|
344
|
+
| GICS Sector | FG_GICS_SECTOR |
|
|
345
|
+
| Shares Outstanding | FG_SHARES |
|
|
346
|
+
| Float | FG_FLOAT |
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
**11. FactSet Estimates (FE_) Data Items**
|
|
351
|
+
|
|
352
|
+
**Using FE_ESTIMATE Function:**
|
|
353
|
+
Format: FE_ESTIMATE(ITEM,STATISTIC,PERIOD_TYPE,RELATIVE_PERIOD)
|
|
354
|
+
|
|
355
|
+
See Section 7 for the full estimate statistics table, available estimate items, and basic FY/QTR/NTM examples.
|
|
356
|
+
|
|
357
|
+
**Additional Estimate Examples:**
|
|
358
|
+
|
|
359
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,COUNT,ANN,+1)")
|
|
360
|
+
→ Number of analysts covering Apple for next FY EPS.
|
|
361
|
+
|
|
362
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,MAX,ANN,+1) - FE_ESTIMATE(EPS,MIN,ANN,+1)")
|
|
363
|
+
→ Spread between highest and lowest EPS estimate (estimate dispersion).
|
|
364
|
+
|
|
365
|
+
---
|
|
366
|
+
|
|
367
|
+
**12. Ownership Data (OS_)**
|
|
368
|
+
|
|
369
|
+
**Top Holders:**
|
|
370
|
+
=FDS("AAPL-US","OS_TOP_HLDR_NAME(3,0D,,MTD,,F,SEC)")
|
|
371
|
+
→ Top 3 institutional holders of Apple.
|
|
372
|
+
|
|
373
|
+
**Ownership Metrics:**
|
|
374
|
+
| Value | Description |
|
|
375
|
+
|-------|-------------|
|
|
376
|
+
| OS_TOP_HLDR_NAME | Top holder names |
|
|
377
|
+
| OS_TOP_HLDR_SHARES | Shares held by top holders |
|
|
378
|
+
| OS_INST_PCT | Institutional ownership % |
|
|
379
|
+
| OS_INSIDER_PCT | Insider ownership % |
|
|
380
|
+
| OS_TOP_HLDR_PCT | % of shares held by top holders |
|
|
381
|
+
|
|
382
|
+
**Ownership Examples:**
|
|
383
|
+
=FDS("AAPL-US","OS_INST_PCT")
|
|
384
|
+
→ Institutional ownership percentage.
|
|
385
|
+
|
|
386
|
+
=FDS("AAPL-US","OS_TOP_HLDR_NAME(10,0D,,MTD,,F,SEC)")
|
|
387
|
+
→ Top 10 institutional holders.
|
|
388
|
+
|
|
389
|
+
---
|
|
390
|
+
|
|
391
|
+
**13. Time Series Data (ExtractFormulaHistory and FDSTABLE)**
|
|
392
|
+
|
|
393
|
+
**Single Point in Time:**
|
|
394
|
+
=FDS("AAPL-US","P_PRICE(-30D)")
|
|
395
|
+
→ Apple's price 30 days ago.
|
|
396
|
+
|
|
397
|
+
=FDS("AAPL-US","P_PRICE(-1Y)")
|
|
398
|
+
→ Apple's price 1 year ago.
|
|
399
|
+
|
|
400
|
+
**Historical Fundamentals:**
|
|
401
|
+
=FDS("AAPL-US","FF_SALES(ANN,-1Y,,,RF)")
|
|
402
|
+
→ Apple's revenue from 1 year ago.
|
|
403
|
+
|
|
404
|
+
=FDS("AAPL-US","FF_SALES(ANN,-2Y,,,RF)")
|
|
405
|
+
→ Apple's revenue from 2 years ago.
|
|
406
|
+
|
|
407
|
+
**FDSTABLE:**
|
|
408
|
+
FDSTABLE adds a refreshable table of FactSet data. It is primarily used via the FactSet Sidebar:
|
|
409
|
+
1. Click FactSet tab > Insert Formula > FDSTABLE
|
|
410
|
+
2. Select securities, data items, and date range
|
|
411
|
+
3. Click Insert — data spills into a table
|
|
412
|
+
|
|
413
|
+
**ExtractFormulaHistory (for programmatic time series via the FactSet Formula API — not a direct Excel cell formula):**
|
|
414
|
+
Use F.ExtractFormulaHistory for multi-security, multi-field time series:
|
|
415
|
+
=F.ExtractFormulaHistory("AAPL-US,MSFT-US","P_PRICE(-5,0,Q)","-5:0:Q")
|
|
416
|
+
→ Quarterly prices for Apple and Microsoft over last 5 quarters.
|
|
417
|
+
|
|
418
|
+
**Maximum Historical Data:** 20 years
|
|
419
|
+
|
|
420
|
+
---
|
|
421
|
+
|
|
422
|
+
**14. Real-Time Data (FDSLIVE)**
|
|
423
|
+
|
|
424
|
+
For real-time streaming data, use FDSLIVE instead of FDS:
|
|
425
|
+
=FDSLIVE("AAPL-US","FG_PRICE")
|
|
426
|
+
→ Apple's real-time price (updates automatically).
|
|
427
|
+
|
|
428
|
+
=FDSLIVE("AAPL-US","RTP_PRICE")
|
|
429
|
+
→ Apple's real-time last traded price.
|
|
430
|
+
|
|
431
|
+
=FDSLIVE("AAPL-US","RTP_PRICE_BID")
|
|
432
|
+
→ Apple's real-time bid price.
|
|
433
|
+
|
|
434
|
+
=FDSLIVE("AAPL-US","RTP_PRICE_ASK")
|
|
435
|
+
→ Apple's real-time ask price.
|
|
436
|
+
|
|
437
|
+
**FX Real-Time:**
|
|
438
|
+
=FDSLIVE("EURUSD-FX1","RTP_PRICE")
|
|
439
|
+
→ Real-time EUR/USD rate.
|
|
440
|
+
|
|
441
|
+
---
|
|
442
|
+
|
|
443
|
+
**15. FQL (FactSet Query Language)**
|
|
444
|
+
|
|
445
|
+
FQL is FactSet's advanced formula language for time series, screening, and complex calculations. It is accessed via FDS formulas or the Formula API.
|
|
446
|
+
|
|
447
|
+
**Time Series with FQL:**
|
|
448
|
+
=FDS("AAPL-US","P_PRICE(-5,0,Q,USD)")
|
|
449
|
+
→ Apple's quarterly prices over last 5 quarters in USD.
|
|
450
|
+
|
|
451
|
+
=FDS("AAPL-US","FF_EPS(QTR,-5,0,Q,,USD)")
|
|
452
|
+
→ Apple's quarterly EPS over last 5 quarters.
|
|
453
|
+
|
|
454
|
+
**FQL Functions:**
|
|
455
|
+
| Function | Description | Example |
|
|
456
|
+
|----------|-------------|---------|
|
|
457
|
+
| AVG() | Average over range | `AVG(P_PRICE(-250,0,D))` |
|
|
458
|
+
| MAX() | Maximum over range | `MAX(P_PRICE(-250,0,D))` |
|
|
459
|
+
| MIN() | Minimum over range | `MIN(P_PRICE(-250,0,D))` |
|
|
460
|
+
| STD() | Standard deviation | `STD(P_PRICE(-250,0,D))` |
|
|
461
|
+
| BETA() | Beta calculation | `BETA('\\SP50\\',-0,-59M,M)` |
|
|
462
|
+
| RANK() | Rank within universe | Used in screening |
|
|
463
|
+
|
|
464
|
+
**Computed Ratios:**
|
|
465
|
+
=FDS("AAPL-US","P_PRICE(0D)/FF_EPS(ANN,0Y,,,RF)")
|
|
466
|
+
→ Trailing P/E ratio (computed).
|
|
467
|
+
|
|
468
|
+
=FDS("AAPL-US","FF_ENTRPR_VAL(ANN,0Y,,,RF)/FF_EBITDA(LTM)")
|
|
469
|
+
→ EV/LTM EBITDA (computed).
|
|
470
|
+
|
|
471
|
+
---
|
|
472
|
+
|
|
473
|
+
**16. Screening**
|
|
474
|
+
|
|
475
|
+
FactSet provides Universal Screening through the application (not directly through =FDS formulas). To screen in Excel:
|
|
476
|
+
|
|
477
|
+
1. Open FactSet Sidebar > Universal Screening
|
|
478
|
+
2. Define your universe (e.g., S&P 500)
|
|
479
|
+
3. Add criteria (e.g., P/E < 15, ROE > 20%)
|
|
480
|
+
4. Export results to Excel
|
|
481
|
+
|
|
482
|
+
**Index Members:**
|
|
483
|
+
=FDS("SP50-US","FG_CONSTITUENTS")
|
|
484
|
+
→ S&P 500 constituent list (if available through your FactSet subscription).
|
|
485
|
+
|
|
486
|
+
**Building Comp Tables Manually:**
|
|
487
|
+
1. List tickers in column A (A2:A10)
|
|
488
|
+
2. =FDS(A2,"FG_PRICE(0)") in B2
|
|
489
|
+
3. =FDS(A2,"FG_PE") in C2
|
|
490
|
+
4. =FDS(A2,"FG_EV_EBITDA") in D2
|
|
491
|
+
5. Drag formulas down for all tickers
|
|
492
|
+
|
|
493
|
+
---
|
|
494
|
+
|
|
495
|
+
**17. Field Return Types & Formatting**
|
|
496
|
+
|
|
497
|
+
**Percentage Fields** (return whole numbers, e.g., 25.0 means 25%):
|
|
498
|
+
- FF_GROSS_MGN, FF_OPER_MGN, FF_EBITDA_MGN, FF_NET_MGN
|
|
499
|
+
- FF_ROE, FF_ROA, FF_ROIC
|
|
500
|
+
- FG_DIV_YLD, OS_INST_PCT, OS_INSIDER_PCT
|
|
501
|
+
- **Rule:** Do NOT apply Excel `0.00%` format (would show 2500% instead of 25%). Display as-is or use custom format `0.0"%"`.
|
|
502
|
+
|
|
503
|
+
**Currency Amount Fields** (return raw values in reporting currency):
|
|
504
|
+
- FF_SALES, FF_EBITDA, FF_EBIT, FF_NET_INCOME, FF_OPER_CF, FF_CAPEX, FF_FREE_CF
|
|
505
|
+
- FF_CASH, FF_DEBT, FF_ASSETS, FF_LIAB, FF_ENTRPR_VAL
|
|
506
|
+
- FG_MKT_VAL, FG_ENTRPR_VAL
|
|
507
|
+
|
|
508
|
+
**Ratio Fields** (return dimensionless multiples):
|
|
509
|
+
- FG_PE, FG_PB, FG_PS, FG_EV_EBITDA, FG_EV_SALES
|
|
510
|
+
- FF_CURR_RATIO, FF_QUICK_RATIO, FF_DEBT_EQ, FF_DEBT_EBITDA, FF_INT_COV
|
|
511
|
+
|
|
512
|
+
**Per-Share Fields** (small currency values):
|
|
513
|
+
- FF_EPS, FF_BASIC_EPS, FF_DPS, FF_BV_PS, FF_TBV_PS
|
|
514
|
+
- FG_PRICE, P_PRICE
|
|
515
|
+
|
|
516
|
+
---
|
|
517
|
+
|
|
518
|
+
**18. Common Pitfalls**
|
|
519
|
+
|
|
520
|
+
| Pitfall | What Happens | Fix |
|
|
521
|
+
|---------|-------------|-----|
|
|
522
|
+
| Wrong exchange code | Using "AAPL-NYS" instead of "AAPL-US" or "AAPL-NAS" | Use "-US" for consolidated US data; check exchange code if specific exchange needed |
|
|
523
|
+
| #Calc error | Formula hasn't been evaluated yet | Refresh via FactSet tab > Refresh > Selection or All FDS Codes |
|
|
524
|
+
| FG_ codes don't accept currency | `FG_PRICE` ignores currency parameters — always returns local currency | Use `P_PRICE(0D,,,USD)` for currency-converted prices |
|
|
525
|
+
| ANN vs QTR period mismatch | Pulling quarterly data with ANN period type returns wrong values | Match period type to your intended frequency |
|
|
526
|
+
| RP vs RF reporting confusion | RP = preliminary (may change), RF = final restated | Use RF for confirmed data, RP for most recent available |
|
|
527
|
+
| FE_ESTIMATE period off by one | 0 = current period, +1 = next period — some users confuse this | 0 = current unreported FY, +1 = next FY, -1 = most recently reported FY |
|
|
528
|
+
| Excel % format on FactSet % fields | Shows 2500% instead of 25% (FactSet returns 25.0, not 0.25) | Display as-is or use `0.0"%"` custom format |
|
|
529
|
+
| Fiscal vs calendar year confusion | FF_ data uses fiscal years by default; different companies have different FY-ends | Use calendar notation (YYYY/CQ format) or specify date explicitly to align periods |
|
|
530
|
+
| FactSet tab disappears | Add-in crashed during refresh or internet interruption | Restart Excel, re-enable FactSet add-in via File > Options > Add-ins |
|
|
531
|
+
| Stale data after disconnect | Formulas show old values | Refresh All via FactSet tab; check connection status |
|
|
532
|
+
| Ticker changed (FB → META) | Old ticker returns errors for current data | Use current ticker; for historical data, old ticker may still work |
|
|
533
|
+
| 25-code limit per formula | Exceeding limit causes errors | Split into multiple cells or use FDSTABLE for batch pulls |
|
|
534
|
+
| LTM vs ANN confusion | LTM = rolling trailing 12 months, ANN = most recent complete fiscal year | Use LTM for real-time trailing metrics, ANN for fiscal year snapshots |
|
|
535
|
+
| Semi-annual companies | Some non-US companies report semi-annually; QTR data returns errors | Use SEMI or ANN period type for semi-annual reporters |
|
|
536
|
+
|
|
537
|
+
---
|
|
538
|
+
|
|
539
|
+
**19. Refreshing Data**
|
|
540
|
+
|
|
541
|
+
If you receive a #Calc error after entering an FDS formula:
|
|
542
|
+
1. Go to FactSet menu in Excel Ribbon
|
|
543
|
+
2. Click "Refresh"
|
|
544
|
+
3. Select "Selection" (for highlighted cells) or "All FDS Codes" (for all formulas)
|
|
545
|
+
|
|
546
|
+
---
|
|
547
|
+
|
|
548
|
+
**20. Using the FactSet Sidebar**
|
|
549
|
+
|
|
550
|
+
To access the formula builder:
|
|
551
|
+
1. Click the FactSet tab in Excel
|
|
552
|
+
2. Click "Insert Formula" or "Show/Hide Sidebar"
|
|
553
|
+
3. Use the sidebar to search for data items and build formulas
|
|
554
|
+
4. Click "Insert" to place the formula in your cell
|
|
555
|
+
|
|
556
|
+
**Limits:** The formula approach allows up to 25 codes at once.
|
|
557
|
+
|
|
558
|
+
---
|
|
559
|
+
|
|
560
|
+
**21. Top 50 One-Shot FactSet Pulls**
|
|
561
|
+
|
|
562
|
+
Quick-reference formulas for the most common analyst requests.
|
|
563
|
+
|
|
564
|
+
**Pricing (1–5):**
|
|
565
|
+
|
|
566
|
+
1. Current stock price:
|
|
567
|
+
=FDS("AAPL-US","FG_PRICE(0)")
|
|
568
|
+
|
|
569
|
+
2. Historical price (5 days ago):
|
|
570
|
+
=FDS("AAPL-US","P_PRICE(-5D)")
|
|
571
|
+
|
|
572
|
+
3. 52-week high / low:
|
|
573
|
+
=FDS("AAPL-US","FG_HIGH_52W")
|
|
574
|
+
=FDS("AAPL-US","FG_LOW_52W")
|
|
575
|
+
|
|
576
|
+
4. Volume:
|
|
577
|
+
=FDS("AAPL-US","FG_VOLUME(0D)")
|
|
578
|
+
|
|
579
|
+
5. 5-year beta:
|
|
580
|
+
=FDS("AAPL-US","FG_BETA")
|
|
581
|
+
|
|
582
|
+
**Market Data (6–10):**
|
|
583
|
+
|
|
584
|
+
6. Market cap:
|
|
585
|
+
=FDS("AAPL-US","FG_MKT_VAL")
|
|
586
|
+
|
|
587
|
+
7. Enterprise value:
|
|
588
|
+
=FDS("AAPL-US","FG_ENTRPR_VAL")
|
|
589
|
+
|
|
590
|
+
8. Shares outstanding:
|
|
591
|
+
=FDS("AAPL-US","FG_SHARES")
|
|
592
|
+
|
|
593
|
+
9. Float:
|
|
594
|
+
=FDS("AAPL-US","FG_FLOAT")
|
|
595
|
+
|
|
596
|
+
10. Dividend yield:
|
|
597
|
+
=FDS("AAPL-US","FG_DIV_YLD")
|
|
598
|
+
|
|
599
|
+
**Income Statement (11–17):**
|
|
600
|
+
|
|
601
|
+
11. Annual revenue:
|
|
602
|
+
=FDS("AAPL-US","FF_SALES(ANN,0Y,,,RF)")
|
|
603
|
+
|
|
604
|
+
12. LTM revenue:
|
|
605
|
+
=FDS("AAPL-US","FF_SALES(LTM)")
|
|
606
|
+
|
|
607
|
+
13. EBITDA:
|
|
608
|
+
=FDS("AAPL-US","FF_EBITDA(ANN,0Y,,,RF)")
|
|
609
|
+
|
|
610
|
+
14. LTM EBITDA:
|
|
611
|
+
=FDS("AAPL-US","FF_EBITDA(LTM)")
|
|
612
|
+
|
|
613
|
+
15. Operating income:
|
|
614
|
+
=FDS("AAPL-US","FF_OPER_INC(ANN,0Y,,,RF)")
|
|
615
|
+
|
|
616
|
+
16. Net income:
|
|
617
|
+
=FDS("AAPL-US","FF_NET_INCOME(ANN,0Y,,,RF)")
|
|
618
|
+
|
|
619
|
+
17. Diluted EPS:
|
|
620
|
+
=FDS("AAPL-US","FF_EPS(ANN,0Y,,,RF)")
|
|
621
|
+
|
|
622
|
+
**Balance Sheet (18–22):**
|
|
623
|
+
|
|
624
|
+
18. Cash & equivalents:
|
|
625
|
+
=FDS("AAPL-US","FF_CASH(ANN,0Y,,,RF)")
|
|
626
|
+
|
|
627
|
+
19. Total debt:
|
|
628
|
+
=FDS("AAPL-US","FF_DEBT(ANN,0Y,,,RF)")
|
|
629
|
+
|
|
630
|
+
20. Total assets:
|
|
631
|
+
=FDS("AAPL-US","FF_ASSETS(ANN,0Y,,,RF)")
|
|
632
|
+
|
|
633
|
+
21. Total equity:
|
|
634
|
+
=FDS("AAPL-US","FF_SHLDRS_EQ(ANN,0Y,,,RF)")
|
|
635
|
+
|
|
636
|
+
22. Book value per share:
|
|
637
|
+
=FDS("AAPL-US","FF_BV_PS(ANN,0Y,,,RF)")
|
|
638
|
+
|
|
639
|
+
**Cash Flow (23–26):**
|
|
640
|
+
|
|
641
|
+
23. Cash from operations:
|
|
642
|
+
=FDS("AAPL-US","FF_OPER_CF(ANN,0Y,,,RF)")
|
|
643
|
+
|
|
644
|
+
24. Capital expenditures:
|
|
645
|
+
=FDS("AAPL-US","FF_CAPEX(ANN,0Y,,,RF)")
|
|
646
|
+
|
|
647
|
+
25. Free cash flow:
|
|
648
|
+
=FDS("AAPL-US","FF_FREE_CF(ANN,0Y,,,RF)")
|
|
649
|
+
|
|
650
|
+
26. Dividends paid:
|
|
651
|
+
=FDS("AAPL-US","FF_DIV_CF(ANN,0Y,,,RF)")
|
|
652
|
+
|
|
653
|
+
**Valuation Ratios (27–32):**
|
|
654
|
+
|
|
655
|
+
27. P/E ratio:
|
|
656
|
+
=FDS("AAPL-US","FG_PE")
|
|
657
|
+
|
|
658
|
+
28. Forward P/E (FY+1):
|
|
659
|
+
=FDS("AAPL-US","P_PRICE(0D)/FE_ESTIMATE(EPS,MEAN,ANN,+1)")
|
|
660
|
+
|
|
661
|
+
29. EV/EBITDA:
|
|
662
|
+
=FDS("AAPL-US","FG_EV_EBITDA")
|
|
663
|
+
|
|
664
|
+
30. Forward EV/EBITDA (FY+1):
|
|
665
|
+
=FDS("AAPL-US","FG_ENTRPR_VAL/FE_ESTIMATE(EBITDA,MEAN,ANN,+1)")
|
|
666
|
+
|
|
667
|
+
31. Price/Book:
|
|
668
|
+
=FDS("AAPL-US","FG_PB")
|
|
669
|
+
|
|
670
|
+
32. Price/Sales:
|
|
671
|
+
=FDS("AAPL-US","FG_PS")
|
|
672
|
+
|
|
673
|
+
**Profitability (33–37):**
|
|
674
|
+
|
|
675
|
+
33. Gross margin:
|
|
676
|
+
=FDS("AAPL-US","FF_GROSS_MGN(ANN,0Y,,,RF)")
|
|
677
|
+
|
|
678
|
+
34. Operating margin:
|
|
679
|
+
=FDS("AAPL-US","FF_OPER_MGN(ANN,0Y,,,RF)")
|
|
680
|
+
|
|
681
|
+
35. EBITDA margin:
|
|
682
|
+
=FDS("AAPL-US","FF_EBITDA_MGN(ANN,0Y,,,RF)")
|
|
683
|
+
|
|
684
|
+
36. Return on equity:
|
|
685
|
+
=FDS("AAPL-US","FF_ROE(ANN,0Y,,,RF)")
|
|
686
|
+
|
|
687
|
+
37. Return on invested capital:
|
|
688
|
+
=FDS("AAPL-US","FF_ROIC(ANN,0Y,,,RF)")
|
|
689
|
+
|
|
690
|
+
**Consensus Estimates (38–45):**
|
|
691
|
+
|
|
692
|
+
38. FY+1 EPS estimate:
|
|
693
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,MEAN,ANN,+1)")
|
|
694
|
+
|
|
695
|
+
39. FY+2 EPS estimate:
|
|
696
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,MEAN,ANN,+2)")
|
|
697
|
+
|
|
698
|
+
40. FY+1 revenue estimate:
|
|
699
|
+
=FDS("AAPL-US","FE_ESTIMATE(SALES,MEAN,ANN,+1)")
|
|
700
|
+
|
|
701
|
+
41. FY+2 revenue estimate:
|
|
702
|
+
=FDS("AAPL-US","FE_ESTIMATE(SALES,MEAN,ANN,+2)")
|
|
703
|
+
|
|
704
|
+
42. FY+1 EBITDA estimate:
|
|
705
|
+
=FDS("AAPL-US","FE_ESTIMATE(EBITDA,MEAN,ANN,+1)")
|
|
706
|
+
|
|
707
|
+
43. Consensus FCF estimate:
|
|
708
|
+
=FDS("AAPL-US","FE_ESTIMATE(FCF,MEAN,ANN,+1)")
|
|
709
|
+
|
|
710
|
+
44. Number of analysts:
|
|
711
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,COUNT,ANN,+1)")
|
|
712
|
+
|
|
713
|
+
45. Estimate dispersion (high - low):
|
|
714
|
+
=FDS("AAPL-US","FE_ESTIMATE(EPS,MAX,ANN,+1) - FE_ESTIMATE(EPS,MIN,ANN,+1)")
|
|
715
|
+
|
|
716
|
+
**FX & Currency (46–48):**
|
|
717
|
+
|
|
718
|
+
46. Spot FX rate (EUR/USD):
|
|
719
|
+
=FDS("EURUSD-FX1","P_PRICE(0D)")
|
|
720
|
+
|
|
721
|
+
47. Historical FX rate (30 days ago):
|
|
722
|
+
=FDS("EURUSD-FX1","P_PRICE(-30D)")
|
|
723
|
+
|
|
724
|
+
48. Foreign equity fundamentals in USD:
|
|
725
|
+
=FDS("BP-GB","FF_SALES(ANN,0Y,,,RF,USD)")
|
|
726
|
+
|
|
727
|
+
**Historical Fundamentals (49–50):**
|
|
728
|
+
|
|
729
|
+
49. Prior year revenue:
|
|
730
|
+
=FDS("AAPL-US","FF_SALES(ANN,-1Y,,,RF)")
|
|
731
|
+
|
|
732
|
+
50. Revenue 2 years ago:
|
|
733
|
+
=FDS("AAPL-US","FF_SALES(ANN,-2Y,,,RF)")
|
|
734
|
+
|
|
735
|
+
---
|
|
736
|
+
|
|
737
|
+
**Final Checklist:**
|
|
738
|
+
- What exact metric is needed? (Revenue? EBITDA? EPS? Free cash flow? Reported vs adjusted?)
|
|
739
|
+
- What time frame is required? (Annual? Quarterly? LTM? NTM? A specific historical period?)
|
|
740
|
+
- For estimates: did I specify the relative period? (+1 for next FY, +2 for FY after, 0 for current)
|
|
741
|
+
- What units are the numbers being returned in? Make sure you apply correct multiplications/divisions.
|
|
742
|
+
- Is the field a percentage type? (Don't apply Excel % format — FactSet returns whole numbers)
|
|
743
|
+
- Did I use cell references for the ticker (as opposed to hardcoding into the formula)?
|
|
744
|
+
- Did I use the correct exchange suffix (e.g., -US, -GB)?
|
|
745
|
+
- Am I using the correct prefix (FF_ for fundamentals, FG_ for pricing, FE_ for estimates)?
|
|
746
|
+
- Am I using the correct period type (ANN, QTR, LTM, SEMI)?
|
|
747
|
+
- Am I using the correct reporting type (RF, RP)?
|
|
748
|
+
- If retrieving estimates, did I specify the statistic type (MEAN, MEDIAN)?
|
|
749
|
+
- If I get a #Calc error, did I try refreshing the data?
|
|
750
|
+
- Is there enough empty space for FDSTABLE output?
|
|
751
|
+
|
|
752
|
+
---
|
|
753
|
+
|
|
754
|
+
**Additional Resources:**
|
|
755
|
+
- FactSet Online Assistant Page 20038: Excel Add-In Help
|
|
756
|
+
- FactSet Online Assistant Page 1961: FQL Manual
|
|
757
|
+
- FactSet Online Assistant Page 15915: Ownership Codes
|
|
758
|
+
- FactSet Online Assistant Page 16772: Formula Syntax Reference
|