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,803 @@
|
|
|
1
|
+
**Bloomberg Excel Formula Guide**
|
|
2
|
+
|
|
3
|
+
**Intro**
|
|
4
|
+
You have full access to Bloomberg through the Excel Add-In (Bloomberg API), but you should only pull Bloomberg data **when the user explicitly tells you to**. Bloomberg integrates market data, pricing, fundamentals, estimates, news, and analytics. You can retrieve any data point by writing Bloomberg formulas directly in Excel cells.
|
|
5
|
+
|
|
6
|
+
**IMPORTANT:** Before completing a task involving Bloomberg, you must verify:
|
|
7
|
+
1. Your Bloomberg 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 fields when possible as opposed to hardcoded values into the formula.
|
|
10
|
+
4. Be aware of data download limits—Bloomberg limits monthly downloads per terminal.
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
**Bloomberg Excel Functions Overview**
|
|
17
|
+
|
|
18
|
+
Bloomberg provides three main Excel functions:
|
|
19
|
+
|
|
20
|
+
| Function | Purpose | Use Case |
|
|
21
|
+
|----------|---------|----------|
|
|
22
|
+
| BDP | Bloomberg Data Point | Current/static single-cell data |
|
|
23
|
+
| BDH | Bloomberg Data History | Historical time series data |
|
|
24
|
+
| BDS | Bloomberg Data Set | Multi-cell descriptive/bulk data |
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
**1. BDP - Bloomberg Data Point**
|
|
29
|
+
|
|
30
|
+
Returns data to a single cell. Use for current/real-time data points.
|
|
31
|
+
|
|
32
|
+
**Syntax:** =BDP("SECURITY","FIELD")
|
|
33
|
+
|
|
34
|
+
**Examples:**
|
|
35
|
+
=BDP("AAPL US Equity","PX_LAST")
|
|
36
|
+
→ Apple's last trading price.
|
|
37
|
+
|
|
38
|
+
=BDP("IBM US Equity","CUR_MKT_CAP")
|
|
39
|
+
→ IBM's current market capitalization.
|
|
40
|
+
|
|
41
|
+
=BDP("MSFT US Equity","EBITDA")
|
|
42
|
+
→ Microsoft's EBITDA.
|
|
43
|
+
|
|
44
|
+
**Using Cell References:**
|
|
45
|
+
=BDP(A1,"PX_LAST")
|
|
46
|
+
→ Last price for ticker in cell A1.
|
|
47
|
+
|
|
48
|
+
=BDP("AAPL US Equity",B1)
|
|
49
|
+
→ Field specified in cell B1 for Apple.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
**2. BDH - Bloomberg Data History**
|
|
54
|
+
|
|
55
|
+
Returns historical data for a security over a time range.
|
|
56
|
+
|
|
57
|
+
**Syntax:** =BDH("SECURITY","FIELD","START_DATE","END_DATE","OPTIONAL_ARGS")
|
|
58
|
+
|
|
59
|
+
**Examples:**
|
|
60
|
+
=BDH("AAPL US Equity","PX_LAST","01/01/2023","12/31/2023")
|
|
61
|
+
→ Apple's daily closing prices for 2023.
|
|
62
|
+
|
|
63
|
+
=BDH("5 HK Equity","EBIT","01/01/2009","12/31/2011","PER=CY","CURR=USD")
|
|
64
|
+
→ HSBC's annual EBIT from 2009-2011 in USD.
|
|
65
|
+
|
|
66
|
+
=BDH("SPX Index","PX_LAST","-1Y","")
|
|
67
|
+
→ S&P 500 prices from 1 year ago to today.
|
|
68
|
+
|
|
69
|
+
**Date Formats:**
|
|
70
|
+
- Absolute: "MM/DD/YYYY" or "DD/MM/YYYY"
|
|
71
|
+
- Relative: "-1Y" (1 year ago), "-6M" (6 months ago), "-30D" (30 days ago)
|
|
72
|
+
- Period codes: "-6CQ" (6 calendar quarters ago)
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
**3. BDS - Bloomberg Data Set**
|
|
77
|
+
|
|
78
|
+
Returns multi-cell descriptive data (arrays/tables).
|
|
79
|
+
|
|
80
|
+
**Syntax:** =BDS("SECURITY","FIELD","OPTIONAL_ARGS")
|
|
81
|
+
|
|
82
|
+
**Examples:**
|
|
83
|
+
=BDS("AAPL US Equity","TOP_20_HOLDERS_PUBLIC_FILINGS")
|
|
84
|
+
→ Apple's top 20 institutional holders.
|
|
85
|
+
|
|
86
|
+
=BDS("601398 CH Equity","DES")
|
|
87
|
+
→ Company description for ICBC.
|
|
88
|
+
|
|
89
|
+
=BDS("SPX Index","INDX_MEMBERS")
|
|
90
|
+
→ List of S&P 500 constituents.
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
**4. Security Identifier Format**
|
|
95
|
+
|
|
96
|
+
Securities must be specified as: TICKER MARKET_SECTOR
|
|
97
|
+
|
|
98
|
+
**Market Sectors:**
|
|
99
|
+
| Sector | Description | Example |
|
|
100
|
+
|--------|-------------|---------|
|
|
101
|
+
| Equity | Stocks | AAPL US Equity |
|
|
102
|
+
| Corp | Corporate Bonds | IBM 4.5 2025 Corp |
|
|
103
|
+
| Govt | Government Bonds | T 2.5 2024 Govt |
|
|
104
|
+
| Index | Indices | SPX Index |
|
|
105
|
+
| Curncy | Currencies | EUR Curncy |
|
|
106
|
+
| Comdty | Commodities | CL1 Comdty |
|
|
107
|
+
| Mtge | Mortgages | FN 5.5 Mtge |
|
|
108
|
+
| Muni | Municipal Bonds | NYC 5 2030 Muni |
|
|
109
|
+
| Pfd | Preferred Stock | BAC/PRA US Pfd |
|
|
110
|
+
|
|
111
|
+
**Exchange Codes (for Equity):**
|
|
112
|
+
- US = United States
|
|
113
|
+
- LN = London
|
|
114
|
+
- JP = Japan
|
|
115
|
+
- GR = Germany
|
|
116
|
+
- FP = France
|
|
117
|
+
- CN = Canada
|
|
118
|
+
- HK = Hong Kong
|
|
119
|
+
- AU = Australia
|
|
120
|
+
- IN = India
|
|
121
|
+
|
|
122
|
+
**Alternative Identifiers:**
|
|
123
|
+
- CUSIP: "459200101 US Equity"
|
|
124
|
+
- ISIN: "US4592001014 US Equity"
|
|
125
|
+
- SEDOL: "2046251 US Equity"
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
**5. Common Field Mnemonics**
|
|
130
|
+
|
|
131
|
+
**Pricing Fields:**
|
|
132
|
+
| Field | Description |
|
|
133
|
+
|-------|-------------|
|
|
134
|
+
| PX_LAST | Last trade price |
|
|
135
|
+
| PX_OPEN | Opening price |
|
|
136
|
+
| PX_HIGH | Day's high price |
|
|
137
|
+
| PX_LOW | Day's low price |
|
|
138
|
+
| PX_CLOSE | Previous close price |
|
|
139
|
+
| PX_VOLUME | Trading volume |
|
|
140
|
+
| PX_BID | Bid price |
|
|
141
|
+
| PX_ASK | Ask price |
|
|
142
|
+
| LAST_PRICE | Historical last price (time series) |
|
|
143
|
+
| HIGH_52WEEK | 52-week high |
|
|
144
|
+
| LOW_52WEEK | 52-week low |
|
|
145
|
+
| CRNCY_ADJ_PX_LAST | Last price converted to a specified currency (use with EQY_FUND_CRNCY override) |
|
|
146
|
+
|
|
147
|
+
**Market Data Fields:**
|
|
148
|
+
| Field | Description |
|
|
149
|
+
|-------|-------------|
|
|
150
|
+
| CUR_MKT_CAP | Current market capitalization |
|
|
151
|
+
| HISTORICAL_MARKET_CAP | Historical market cap (RR250) |
|
|
152
|
+
| ENTERPRISE_VALUE | Enterprise value (RR472) |
|
|
153
|
+
| EQY_SH_OUT | Shares outstanding |
|
|
154
|
+
| EQY_FREE_FLOAT_PCT | Free float percentage |
|
|
155
|
+
| VOLUME_AVG_30D | 30-day average volume |
|
|
156
|
+
|
|
157
|
+
**Income Statement Fields:**
|
|
158
|
+
| Field | Description |
|
|
159
|
+
|-------|-------------|
|
|
160
|
+
| SALES_REV_TURN | Total revenue (IS010) |
|
|
161
|
+
| IS_COMP_SALES | Company sales |
|
|
162
|
+
| GROSS_PROFIT | Gross profit (RR861) |
|
|
163
|
+
| IS_OPER_INC | Operating income |
|
|
164
|
+
| EBIT | Earnings before interest & taxes |
|
|
165
|
+
| EBITDA | EBITDA (RR009) |
|
|
166
|
+
| IS_INC_BEF_XO_ITEM | Income before extraordinary items |
|
|
167
|
+
| NET_INCOME | Net income |
|
|
168
|
+
| EARN_FOR_COMMON | Net income to common (RR530) |
|
|
169
|
+
| IS_EPS | Earnings per share |
|
|
170
|
+
| IS_DIL_EPS | Diluted EPS |
|
|
171
|
+
| IS_SH_FOR_DILUTED_EPS | Diluted shares |
|
|
172
|
+
|
|
173
|
+
**Balance Sheet Fields:**
|
|
174
|
+
| Field | Description |
|
|
175
|
+
|-------|-------------|
|
|
176
|
+
| BS_CASH_NEAR_CASH_ITEM | Cash & equivalents |
|
|
177
|
+
| BS_TOT_ASSET | Total assets |
|
|
178
|
+
| BS_CUR_ASSET_REPORT | Current assets |
|
|
179
|
+
| BS_NET_FIX_ASSET | Net fixed assets |
|
|
180
|
+
| BS_ACCT_PAYABLE | Accounts payable |
|
|
181
|
+
| BS_ST_BORROW | Short-term borrowings |
|
|
182
|
+
| BS_CUR_LIAB | Current liabilities |
|
|
183
|
+
| BS_LT_BORROW | Long-term debt |
|
|
184
|
+
| BS_TOT_LIAB2 | Total liabilities |
|
|
185
|
+
| TOT_COMMON_EQY | Total common equity |
|
|
186
|
+
| TOTAL_EQUITY | Total equity |
|
|
187
|
+
| BS_SH_OUT | Balance sheet shares outstanding |
|
|
188
|
+
|
|
189
|
+
**Cash Flow Fields:**
|
|
190
|
+
| Field | Description |
|
|
191
|
+
|-------|-------------|
|
|
192
|
+
| CF_CASH_FROM_OPER | Cash from operations |
|
|
193
|
+
| CF_CAP_EXPEND_PRPTY_ADD | Capital expenditures |
|
|
194
|
+
| CF_CASH_FROM_INV_ACT | Cash from investing |
|
|
195
|
+
| CF_CASH_FROM_FNC_ACT | Cash from financing |
|
|
196
|
+
| CF_FREE_CASH_FLOW | Free cash flow |
|
|
197
|
+
| CF_DVD_PAID | Dividends paid |
|
|
198
|
+
| CF_CHNG_CASH | Change in cash |
|
|
199
|
+
|
|
200
|
+
**Valuation Ratios:**
|
|
201
|
+
| Field | Description |
|
|
202
|
+
|-------|-------------|
|
|
203
|
+
| PE_RATIO | Price/Earnings ratio |
|
|
204
|
+
| PX_TO_BOOK_RATIO | Price/Book ratio |
|
|
205
|
+
| PX_TO_SALES_RATIO | Price/Sales ratio |
|
|
206
|
+
| PX_TO_CASH_FLOW | Price/Cash flow |
|
|
207
|
+
| PX_TO_FREE_CASH_FLOW | Price/Free cash flow |
|
|
208
|
+
| EV_TO_T12M_EBITDA | EV/EBITDA (trailing 12M) |
|
|
209
|
+
| TOTR_EV_TO_SALES | EV/Sales |
|
|
210
|
+
| DVD_YLD_IND | Dividend yield |
|
|
211
|
+
| BEST_PE_RATIO | Forward P/E (NTM consensus) |
|
|
212
|
+
| BEST_PEG_RATIO | Forward PEG ratio |
|
|
213
|
+
| BEST_CUR_EV_TO_EBITDA | Forward EV/EBITDA (NTM consensus) |
|
|
214
|
+
|
|
215
|
+
**Profitability Ratios:**
|
|
216
|
+
| Field | Description |
|
|
217
|
+
|-------|-------------|
|
|
218
|
+
| RETURN_COM_EQY | Return on equity |
|
|
219
|
+
| RETURN_ON_ASSET | Return on assets |
|
|
220
|
+
| RETURN_ON_INV_CAPITAL | Return on invested capital |
|
|
221
|
+
| PROF_MARGIN | Profit margin |
|
|
222
|
+
| GROSS_MARGIN | Gross margin |
|
|
223
|
+
| OPER_MARGIN | Operating margin |
|
|
224
|
+
| EBITDA_TO_REVENUE | EBITDA margin |
|
|
225
|
+
|
|
226
|
+
**Estimates Fields:**
|
|
227
|
+
| Field | Description |
|
|
228
|
+
|-------|-------------|
|
|
229
|
+
| BEST_EPS | Consensus EPS estimate |
|
|
230
|
+
| BEST_EPS_GAAP | Consensus GAAP EPS |
|
|
231
|
+
| BEST_SALES | Consensus revenue estimate |
|
|
232
|
+
| BEST_EBITDA | Consensus EBITDA estimate |
|
|
233
|
+
| BEST_EBIT | Consensus EBIT |
|
|
234
|
+
| BEST_GROSS_PROFIT | Consensus gross profit |
|
|
235
|
+
| BEST_OPER_INC | Consensus operating income |
|
|
236
|
+
| BEST_NET_INCOME | Consensus net income estimate |
|
|
237
|
+
| BEST_ESTIMATE_FCF | Consensus free cash flow |
|
|
238
|
+
| BEST_CAPEX | Consensus capex |
|
|
239
|
+
| BEST_DPS | Consensus dividends per share |
|
|
240
|
+
| BEST_BPS | Consensus book value per share |
|
|
241
|
+
| BEST_ROE | Consensus ROE |
|
|
242
|
+
| BEST_DIV_YLD | Consensus dividend yield |
|
|
243
|
+
| BEST_EPS_NTM | NTM blended EPS (next twelve months) |
|
|
244
|
+
| BEST_EBITDA_NTM | NTM blended EBITDA |
|
|
245
|
+
| BEST_SALES_NTM | NTM blended revenue |
|
|
246
|
+
| BEST_EST_LONG_TERM_GROWTH | Long-term EPS growth rate |
|
|
247
|
+
| BEST_TARGET_PRICE | Consensus target price |
|
|
248
|
+
| BEST_ANALYST_RATING | Analyst rating |
|
|
249
|
+
| EST_NUM_ANALYSTS | Number of analysts |
|
|
250
|
+
| TOT_BUY_REC | Total buy recommendations |
|
|
251
|
+
| TOT_HOLD_REC | Total hold recommendations |
|
|
252
|
+
| TOT_SELL_REC | Total sell recommendations |
|
|
253
|
+
|
|
254
|
+
**Ownership Fields:**
|
|
255
|
+
| Field | Description |
|
|
256
|
+
|-------|-------------|
|
|
257
|
+
| TOP_20_HOLDERS_PUBLIC_FILINGS | Top 20 holders (use with BDS) |
|
|
258
|
+
| INSIDER_SHARES_HELD | Insider shares held |
|
|
259
|
+
| EQY_INST_PCT_SH_OUT | Institutional ownership % |
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
**6. Optional Arguments**
|
|
264
|
+
|
|
265
|
+
**For BDH (Historical Data):**
|
|
266
|
+
|
|
267
|
+
| Argument | Values | Description |
|
|
268
|
+
|----------|--------|-------------|
|
|
269
|
+
| PER | D, W, M, Q, S, Y | Periodicity (daily, weekly, monthly, quarterly, semi-annual, yearly) |
|
|
270
|
+
| DAYS | A, T, W, C | Calendar type (all days, trading days, weekdays, current) |
|
|
271
|
+
| FILL | P, NA | Fill method (previous value, N/A) |
|
|
272
|
+
| CURR | USD, EUR, GBP, etc. | Currency conversion |
|
|
273
|
+
| FX | LAST, AVG, HIGH, LOW | FX conversion rate type |
|
|
274
|
+
| DIR | H, V | Direction (horizontal, vertical) |
|
|
275
|
+
| SORT | A, D | Sort order (ascending, descending) |
|
|
276
|
+
| DTEFMT | DATE, #, YY | Date format |
|
|
277
|
+
| CDR | US, UK, JP, etc. | Calendar for date calculations |
|
|
278
|
+
| HEADER | Y, N | Show/hide column headers |
|
|
279
|
+
| FA_ACT_EST_DATA | A, E, A+E | Actuals only, estimates only, or blended actuals + estimates |
|
|
280
|
+
|
|
281
|
+
**Example with Options:**
|
|
282
|
+
=BDH("AAPL US Equity","PX_LAST","01/01/2020","12/31/2020","PER=M","CURR=EUR","FILL=P")
|
|
283
|
+
→ Apple monthly prices for 2020 in EUR, with previous values for missing data.
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
**7. Period Modifiers**
|
|
288
|
+
|
|
289
|
+
**For Fundamentals:**
|
|
290
|
+
| Modifier | Description |
|
|
291
|
+
|----------|-------------|
|
|
292
|
+
| [LF] | Latest Filing (most recent available period) |
|
|
293
|
+
| [TTM] | Trailing Twelve Months |
|
|
294
|
+
| [FY0] | Current fiscal year |
|
|
295
|
+
| [FY-1] | Prior fiscal year |
|
|
296
|
+
| [FQ0] | Current fiscal quarter |
|
|
297
|
+
| [FQ-1] | Prior fiscal quarter |
|
|
298
|
+
|
|
299
|
+
**Example:**
|
|
300
|
+
=BDP("AAPL US Equity","SALES_REV_TURN[TTM]")
|
|
301
|
+
→ Apple's trailing 12-month revenue.
|
|
302
|
+
|
|
303
|
+
---
|
|
304
|
+
|
|
305
|
+
**8. Forward Estimate Periods**
|
|
306
|
+
|
|
307
|
+
Use `BEST_FPERIOD_OVERRIDE` to pull consensus estimates for specific forward periods.
|
|
308
|
+
|
|
309
|
+
**Fiscal Year Estimates:**
|
|
310
|
+
=BDP("AAPL US Equity","BEST_EPS","BEST_FPERIOD_OVERRIDE=1BF")
|
|
311
|
+
→ FY1 (next fiscal year) consensus EPS.
|
|
312
|
+
|
|
313
|
+
=BDP("AAPL US Equity","BEST_EPS","BEST_FPERIOD_OVERRIDE=2BF")
|
|
314
|
+
→ FY2 consensus EPS.
|
|
315
|
+
|
|
316
|
+
=BDP("AAPL US Equity","BEST_EPS","BEST_FPERIOD_OVERRIDE=3BF")
|
|
317
|
+
→ FY3 consensus EPS.
|
|
318
|
+
|
|
319
|
+
**Quarterly Estimates:**
|
|
320
|
+
=BDP("AAPL US Equity","BEST_EPS","BEST_FPERIOD_OVERRIDE=1BQ")
|
|
321
|
+
→ Next quarter consensus EPS.
|
|
322
|
+
|
|
323
|
+
=BDP("AAPL US Equity","BEST_EPS","BEST_FPERIOD_OVERRIDE=2BQ")
|
|
324
|
+
→ Quarter after next consensus EPS.
|
|
325
|
+
|
|
326
|
+
**NTM (Next Twelve Months) Pre-Computed Fields:**
|
|
327
|
+
These fields return time-weighted blended NTM values without needing BEST_FPERIOD_OVERRIDE:
|
|
328
|
+
=BDP("AAPL US Equity","BEST_CUR_EV_TO_EBITDA")
|
|
329
|
+
→ Forward EV/EBITDA (NTM).
|
|
330
|
+
|
|
331
|
+
=BDP("AAPL US Equity","BEST_PE_RATIO")
|
|
332
|
+
→ Forward P/E (NTM).
|
|
333
|
+
|
|
334
|
+
=BDP("AAPL US Equity","BEST_EPS_NTM")
|
|
335
|
+
→ NTM blended EPS.
|
|
336
|
+
|
|
337
|
+
=BDP("AAPL US Equity","BEST_EBITDA_NTM")
|
|
338
|
+
→ NTM blended EBITDA.
|
|
339
|
+
|
|
340
|
+
=BDP("AAPL US Equity","BEST_SALES_NTM")
|
|
341
|
+
→ NTM blended revenue.
|
|
342
|
+
|
|
343
|
+
**Actuals + Estimates Blended Time Series:**
|
|
344
|
+
=BDH("AAPL US Equity","BEST_EPS","01/01/2018","12/31/2028","PER=Y","FA_ACT_EST_DATA=A+E")
|
|
345
|
+
→ Annual EPS from 2018 to 2028: actuals for past years, estimates for future years.
|
|
346
|
+
|
|
347
|
+
**Note:** Without `BEST_FPERIOD_OVERRIDE`, BEST_* fields default to the next unreported period (1BF). Always specify the period explicitly for clarity.
|
|
348
|
+
|
|
349
|
+
---
|
|
350
|
+
|
|
351
|
+
**9. FX & Currency Conversion**
|
|
352
|
+
|
|
353
|
+
**Cross-Rate Tickers:**
|
|
354
|
+
=BDP("EURUSD Curncy","PX_LAST")
|
|
355
|
+
→ Spot EUR/USD exchange rate.
|
|
356
|
+
|
|
357
|
+
=BDH("EURUSD Curncy","PX_LAST","12/31/2022","12/31/2022")
|
|
358
|
+
→ Historical EUR/USD rate on a specific date.
|
|
359
|
+
|
|
360
|
+
=BDH("EURUSD Curncy","PX_LAST",A2,A2)
|
|
361
|
+
→ Historical rate using cell reference (draggable down a column of dates).
|
|
362
|
+
|
|
363
|
+
**Common FX Pairs:**
|
|
364
|
+
EURUSD, GBPUSD, USDJPY, USDCHF, AUDUSD, USDCAD, USDCNY, USDBRL, USDINR
|
|
365
|
+
→ All use "Curncy" market sector, e.g. `"USDJPY Curncy"`.
|
|
366
|
+
|
|
367
|
+
**Currency Conversion for Fundamentals vs Prices:**
|
|
368
|
+
|
|
369
|
+
| Data Type | Override | Example |
|
|
370
|
+
|-----------|----------|---------|
|
|
371
|
+
| Fundamentals (revenue, EBITDA, etc.) | `EQY_FUND_CRNCY=USD` in BDP | `=BDP("VOW3 GR Equity","SALES_REV_TURN","EQY_FUND_CRNCY=USD")` |
|
|
372
|
+
| Historical data | `CURR=USD` in BDH | `=BDH("VOW3 GR Equity","EBIT","01/01/2020","12/31/2023","PER=Y","CURR=USD")` |
|
|
373
|
+
| Prices | `CRNCY_ADJ_PX_LAST` field | `=BDP("VOW3 GR Equity","CRNCY_ADJ_PX_LAST","EQY_FUND_CRNCY=USD")` |
|
|
374
|
+
|
|
375
|
+
**IMPORTANT:** `PX_LAST` silently ignores `EQY_FUND_CRNCY` — it always returns the local currency price. To get a currency-converted price, use `CRNCY_ADJ_PX_LAST` instead.
|
|
376
|
+
|
|
377
|
+
---
|
|
378
|
+
|
|
379
|
+
**10. Override Parameters**
|
|
380
|
+
|
|
381
|
+
Overrides allow customization of how data is returned.
|
|
382
|
+
|
|
383
|
+
**Common Overrides:**
|
|
384
|
+
| Override | Description | Example |
|
|
385
|
+
|----------|-------------|---------|
|
|
386
|
+
| EQY_FUND_CRNCY | Currency override | "EQY_FUND_CRNCY=EUR" |
|
|
387
|
+
| SCALING_FORMAT | Scale (MLN, BLN) | "SCALING_FORMAT=MLN" |
|
|
388
|
+
| FUND_PER | Fiscal period | "FUND_PER=Q" |
|
|
389
|
+
| FA_PERIOD_OFFSET | Period offset | "FA_PERIOD_OFFSET=-1" |
|
|
390
|
+
| FA_ACT_EST_DATA | Actuals vs Estimates | "FA_ACT_EST_DATA=A" |
|
|
391
|
+
| BEST_FPERIOD_OVERRIDE | Forward estimate period | "BEST_FPERIOD_OVERRIDE=1BF" |
|
|
392
|
+
|
|
393
|
+
**Example:**
|
|
394
|
+
=BDP("AAPL US Equity","CUR_MKT_CAP","SCALING_FORMAT=BLN")
|
|
395
|
+
→ Apple market cap in billions.
|
|
396
|
+
|
|
397
|
+
**Multiple Overrides:**
|
|
398
|
+
=BDP("AAPL US Equity","BEST_EPS","BEST_FPERIOD_OVERRIDE=2BF","EQY_FUND_CRNCY=USD")
|
|
399
|
+
→ FY2 consensus EPS converted to USD. Each override is a separate string argument.
|
|
400
|
+
|
|
401
|
+
---
|
|
402
|
+
|
|
403
|
+
**11. Field Return Types & Formatting**
|
|
404
|
+
|
|
405
|
+
Bloomberg fields return different value types. Applying the wrong Excel format produces misleading numbers.
|
|
406
|
+
|
|
407
|
+
**Percentage Fields** (return whole numbers, e.g. 25.0 means 25%):
|
|
408
|
+
- RETURN_COM_EQY, RETURN_ON_ASSET, RETURN_ON_INV_CAPITAL
|
|
409
|
+
- PROF_MARGIN, GROSS_MARGIN, OPER_MARGIN, EBITDA_TO_REVENUE
|
|
410
|
+
- DVD_YLD_IND, EQY_FREE_FLOAT_PCT, EQY_INST_PCT_SH_OUT
|
|
411
|
+
- BEST_ROE, BEST_DIV_YLD
|
|
412
|
+
- **Rule:** Do NOT apply Excel `0.00%` format (would show 2500% instead of 25%). Display as-is or use custom format `0.0"%"`.
|
|
413
|
+
|
|
414
|
+
**Currency Amount Fields** (return raw values in reporting currency):
|
|
415
|
+
- SALES_REV_TURN, EBITDA, NET_INCOME, CUR_MKT_CAP, ENTERPRISE_VALUE, CF_FREE_CASH_FLOW, GROSS_PROFIT, IS_OPER_INC
|
|
416
|
+
- Use `SCALING_FORMAT=MLN` or `SCALING_FORMAT=BLN` when appropriate for the magnitude.
|
|
417
|
+
|
|
418
|
+
**Ratio Fields** (return dimensionless multiples):
|
|
419
|
+
- PE_RATIO, PX_TO_BOOK_RATIO, EV_TO_T12M_EBITDA, BEST_PE_RATIO, BEST_CUR_EV_TO_EBITDA, BEST_PEG_RATIO
|
|
420
|
+
- Never apply percentage formatting to these.
|
|
421
|
+
|
|
422
|
+
**Per-Share Fields** (small currency values):
|
|
423
|
+
- IS_EPS, IS_DIL_EPS, PX_LAST, BEST_EPS, BEST_DPS, BEST_BPS
|
|
424
|
+
- Never apply `SCALING_FORMAT` to per-share fields.
|
|
425
|
+
|
|
426
|
+
---
|
|
427
|
+
|
|
428
|
+
**12. BDH Output Behavior**
|
|
429
|
+
|
|
430
|
+
BDH is a dynamic array formula — it spills DOWN and to the RIGHT from the cell where it is entered.
|
|
431
|
+
|
|
432
|
+
**Key behaviors:**
|
|
433
|
+
- Default output: date column + value column(s) — will overwrite existing cell contents below and to the right.
|
|
434
|
+
- Always place BDH in an area with sufficient empty space below and to the right.
|
|
435
|
+
- To suppress column headers: add `"HEADER=N"` argument.
|
|
436
|
+
- Direction control: `"DIR=V"` (vertical, default) or `"DIR=H"` (horizontal, spills rightward).
|
|
437
|
+
- For single-date lookups (draggable): use same start and end date:
|
|
438
|
+
|
|
439
|
+
=BDH("AAPL US Equity","PX_LAST",A2,A2)
|
|
440
|
+
→ Returns a single price for the date in A2. Copy the formula down for each date.
|
|
441
|
+
|
|
442
|
+
---
|
|
443
|
+
|
|
444
|
+
**13. Real-Time Data (BLP)**
|
|
445
|
+
|
|
446
|
+
For real-time streaming data, use BLP instead of BDP:
|
|
447
|
+
=BLP("AAPL US Equity","LAST_PRICE")
|
|
448
|
+
→ Real-time streaming price for Apple.
|
|
449
|
+
|
|
450
|
+
---
|
|
451
|
+
|
|
452
|
+
**14. Composite Formulas**
|
|
453
|
+
|
|
454
|
+
**Building Arrays for Multiple Securities:**
|
|
455
|
+
Enter tickers in column A, then:
|
|
456
|
+
=BDP($A2,B$1)
|
|
457
|
+
→ Drag across columns for multiple fields.
|
|
458
|
+
|
|
459
|
+
**Multiple Securities, Multiple Fields:**
|
|
460
|
+
=BDP(A2:A10,"PX_LAST")
|
|
461
|
+
→ Array formula for prices of multiple tickers.
|
|
462
|
+
|
|
463
|
+
**Index Member Screening (BDS → BDP workflow):**
|
|
464
|
+
1. Pull members: =BDS("SPX Index","INDX_MEMBERS") in cell A2 → spills tickers into A2:A501
|
|
465
|
+
2. Pull data for each: =BDP(A2,"PX_LAST") in B2, =BDP(A2,"PE_RATIO") in C2, drag down
|
|
466
|
+
3. Filter in Excel or use BQL for a single-formula approach (see Section 16)
|
|
467
|
+
|
|
468
|
+
**Note:** BDS member lists return tickers without the yellow key suffix. You may need to append " Equity" to use them in BDP:
|
|
469
|
+
=BDP(A2&" Equity","PX_LAST")
|
|
470
|
+
|
|
471
|
+
---
|
|
472
|
+
|
|
473
|
+
**15. Segment & Product Data**
|
|
474
|
+
|
|
475
|
+
BDP/BDH return company-level aggregates only — they cannot pull product-level or segment-level breakdowns.
|
|
476
|
+
|
|
477
|
+
**Segment Lists:**
|
|
478
|
+
=BDS("DHR US Equity","SEGMENT_LIST")
|
|
479
|
+
→ Returns list of reported business segments.
|
|
480
|
+
|
|
481
|
+
**Segment Revenue:**
|
|
482
|
+
=BDS("DHR US Equity","SEGMENT_REVENUE")
|
|
483
|
+
→ Returns revenue by segment.
|
|
484
|
+
|
|
485
|
+
**Limitations:**
|
|
486
|
+
- For pharma/individual drug revenue, Bloomberg generally does NOT have product-level data. Use Visible Alpha or company filings instead.
|
|
487
|
+
- If segment data is unavailable for a given company, recommend Visible Alpha as a fallback.
|
|
488
|
+
- For more flexible segment queries, use BQL (see Section 17).
|
|
489
|
+
|
|
490
|
+
---
|
|
491
|
+
|
|
492
|
+
**16. BQL Basics**
|
|
493
|
+
|
|
494
|
+
BQL (Bloomberg Query Language) is a formula-based language for more complex queries than BDP/BDH/BDS can handle.
|
|
495
|
+
|
|
496
|
+
**Single Security:**
|
|
497
|
+
=BQL("AAPL US Equity","get(BEST_EPS) for(FY1)")
|
|
498
|
+
→ FY1 consensus EPS for Apple.
|
|
499
|
+
|
|
500
|
+
**Multi-Security Screening:**
|
|
501
|
+
=BQL("members('SPX Index')","get(PX_LAST, CUR_MKT_CAP)")
|
|
502
|
+
→ Last price and market cap for all S&P 500 members.
|
|
503
|
+
|
|
504
|
+
**Segment-Level Data:**
|
|
505
|
+
=BQL("AAPL US Equity","get(SEGMENT_REVENUE) for(segments())")
|
|
506
|
+
→ Revenue by segment for Apple.
|
|
507
|
+
|
|
508
|
+
**Filtering with where():**
|
|
509
|
+
=BQL("members('SPX Index')","get(PX_LAST, PE_RATIO) where(PE_RATIO < 15 and RETURN_COM_EQY > 20) sort(PE_RATIO, asc)")
|
|
510
|
+
→ S&P 500 stocks with P/E below 15 and ROE above 20%, sorted by P/E ascending.
|
|
511
|
+
|
|
512
|
+
=BQL("members('SPX Index')","get(CUR_MKT_CAP, DVD_YLD_IND) where(CUR_MKT_CAP > 100e9 and DVD_YLD_IND > 3)")
|
|
513
|
+
→ Large-cap S&P 500 names yielding above 3%.
|
|
514
|
+
|
|
515
|
+
**Date Ranges with range():**
|
|
516
|
+
=BQL("AAPL US Equity","get(SALES_REV_TURN) for(range(-4Y,0Y))")
|
|
517
|
+
→ Apple's annual revenue for the last 5 fiscal years.
|
|
518
|
+
|
|
519
|
+
=BQL("AAPL US Equity","get(BEST_EPS) for(range(1BF,3BF))")
|
|
520
|
+
→ FY1 through FY3 consensus EPS estimates.
|
|
521
|
+
|
|
522
|
+
**Grouping with group():**
|
|
523
|
+
=BQL("members('SPX Index')","get(avg(PE_RATIO)) group(GICS_SECTOR_NAME)")
|
|
524
|
+
→ Average P/E ratio by sector for S&P 500.
|
|
525
|
+
|
|
526
|
+
=BQL("members('SPX Index')","get(count(ID), avg(DVD_YLD_IND)) group(GICS_SECTOR_NAME) sort(avg(DVD_YLD_IND), desc)")
|
|
527
|
+
→ Count and average dividend yield by sector, sorted by yield.
|
|
528
|
+
|
|
529
|
+
**BQL Syntax Reference:**
|
|
530
|
+
| Clause | Purpose | Example |
|
|
531
|
+
|--------|---------|---------|
|
|
532
|
+
| get() | Fields to retrieve | `get(PX_LAST, PE_RATIO)` |
|
|
533
|
+
| for() | Time periods or dimensions | `for(FY1)`, `for(range(-4Y,0Y))`, `for(segments())` |
|
|
534
|
+
| where() | Filter conditions | `where(PE_RATIO < 20 and CUR_MKT_CAP > 10e9)` |
|
|
535
|
+
| sort() | Order results | `sort(PE_RATIO, asc)` |
|
|
536
|
+
| group() | Aggregate by category | `group(GICS_SECTOR_NAME)` |
|
|
537
|
+
| members() | Universe of securities | `members('SPX Index')`, `members('RAY Index')` |
|
|
538
|
+
|
|
539
|
+
**When to use BQL vs BDP/BDH:**
|
|
540
|
+
- Use BDP/BDH for single-security, single-field pulls (simpler, faster).
|
|
541
|
+
- Use BQL when you need: multi-security screening, segment-level data, custom filtering/sorting, or complex conditional logic.
|
|
542
|
+
|
|
543
|
+
---
|
|
544
|
+
|
|
545
|
+
**17. Finding Field Mnemonics**
|
|
546
|
+
|
|
547
|
+
**In Excel:**
|
|
548
|
+
1. Click the Bloomberg tab
|
|
549
|
+
2. Click "Find Fields" or "Field Search"
|
|
550
|
+
3. Search by category or keyword
|
|
551
|
+
4. Select field to see mnemonic
|
|
552
|
+
|
|
553
|
+
**On Terminal:**
|
|
554
|
+
- Type FLDS <GO> to search for fields
|
|
555
|
+
- Type API <GO> for Excel API help
|
|
556
|
+
- Type HELP DAPI <GO> for documentation
|
|
557
|
+
|
|
558
|
+
---
|
|
559
|
+
|
|
560
|
+
**18. Refreshing Data**
|
|
561
|
+
|
|
562
|
+
If formulas show stale data or errors:
|
|
563
|
+
1. Go to Bloomberg tab in Excel
|
|
564
|
+
2. Click "Refresh Workbook" or "Refresh All"
|
|
565
|
+
|
|
566
|
+
To set auto-refresh:
|
|
567
|
+
Bloomberg > Settings > Real-time Data > Enable
|
|
568
|
+
|
|
569
|
+
---
|
|
570
|
+
|
|
571
|
+
**19. Data Limits**
|
|
572
|
+
|
|
573
|
+
**IMPORTANT:** Bloomberg has monthly download limits per terminal.
|
|
574
|
+
- General rule: No more than 5,000 rows and 40 columns per query
|
|
575
|
+
- Once limit is reached, data shows as N/A until next month
|
|
576
|
+
- Save formulas with hard data (Paste Values) to preserve data
|
|
577
|
+
|
|
578
|
+
---
|
|
579
|
+
|
|
580
|
+
**20. Common Pitfalls**
|
|
581
|
+
|
|
582
|
+
| Pitfall | What Happens | Fix |
|
|
583
|
+
|---------|-------------|-----|
|
|
584
|
+
| `PX_LAST` + `EQY_FUND_CRNCY` | Override is silently ignored — price returns in local currency | Use `CRNCY_ADJ_PX_LAST` field instead |
|
|
585
|
+
| `SCALING_FORMAT=BLN` on small values | Displays "0.0" because the value is below 1 billion | Use `SCALING_FORMAT=MLN` or no scaling |
|
|
586
|
+
| Excel `0.00%` format on Bloomberg % fields | Shows 2500% instead of 25% (Bloomberg returns 25.0, not 0.25) | Display as-is or use `0.0"%"` custom format |
|
|
587
|
+
| BDH overwrites adjacent cells | Data spills down/right and overwrites whatever is there | Always leave empty space below and right of BDH formulas |
|
|
588
|
+
| `BEST_*` without `BEST_FPERIOD_OVERRIDE` | Defaults to next unreported period (1BF) which may not be what you want | Specify `BEST_FPERIOD_OVERRIDE=1BF` (or 2BF, 1BQ, etc.) explicitly |
|
|
589
|
+
| Wrong ticker format for FX | Using "EUR Curncy" instead of "EURUSD Curncy" for cross rates | Use the pair format: `"EURUSD Curncy"`, `"USDJPY Curncy"` |
|
|
590
|
+
| `#N/A Field Not Found` | Field mnemonic doesn't exist or isn't valid for this security type | Check spelling via FLDS, verify field applies to the security's asset class |
|
|
591
|
+
| `#N/A Security Not Found` | Ticker/identifier not recognized | Verify TICKER EXCHANGE SECTOR format, check for delistings or ticker changes |
|
|
592
|
+
| `#N/A N/A` (data pending) | Bloomberg is still loading or the field has no data for this security | Wait and refresh; if persistent, the field genuinely has no data for this security |
|
|
593
|
+
| `#NAME?` | Bloomberg add-in not loaded in Excel | Enable add-in via File > Options > Add-ins > Bloomberg |
|
|
594
|
+
| `#GETTING DATA...` never resolves | Bloomberg connection issue or rate limit hit | Check Bloomberg connection status, reduce concurrent formula count |
|
|
595
|
+
| Ticker changed (FB → META) | Old ticker returns `#N/A Security Not Found` for current data | Use current ticker; for historical BDH, old ticker may still work for pre-change dates |
|
|
596
|
+
| BDH prices across stock splits | Prices are split-adjusted by default, which is usually correct | For unadjusted prices use `"DPDF=N"` override; old news/filings reference unadjusted numbers |
|
|
597
|
+
| Bond tickers oversimplified | `IBM 4.5 2025 Corp` may not resolve; Bloomberg needs exact coupon/maturity | Use CUSIP or ISIN: `"459200101 Corp"` or look up exact identifier via SRCH on terminal |
|
|
598
|
+
| ADR vs local shares | `BABA US Equity` and `9988 HK Equity` return different EPS/share counts due to ADR ratio | Use `ADR_SH_PER_ADR` field to get the conversion ratio; pick one share class consistently |
|
|
599
|
+
| Fiscal year misalignment in comps | Apple (Sept FY) vs Microsoft (June FY) — "current year" means different calendar periods | Use `FUND_PER=CQ` for calendar quarters or `FA_PERIOD_OFFSET` to align periods manually |
|
|
600
|
+
|
|
601
|
+
---
|
|
602
|
+
|
|
603
|
+
**21. Top 50 One-Shot Bloomberg Pulls**
|
|
604
|
+
|
|
605
|
+
Quick-reference formulas for the most common analyst requests.
|
|
606
|
+
|
|
607
|
+
**Pricing (1–5):**
|
|
608
|
+
|
|
609
|
+
1. Current stock price:
|
|
610
|
+
=BDP("AAPL US Equity","PX_LAST")
|
|
611
|
+
|
|
612
|
+
2. Historical daily prices (1 year):
|
|
613
|
+
=BDH("AAPL US Equity","PX_LAST","-1Y","")
|
|
614
|
+
|
|
615
|
+
3. 52-week high / low:
|
|
616
|
+
=BDP("AAPL US Equity","HIGH_52WEEK")
|
|
617
|
+
=BDP("AAPL US Equity","LOW_52WEEK")
|
|
618
|
+
|
|
619
|
+
4. 30-day average volume:
|
|
620
|
+
=BDP("AAPL US Equity","VOLUME_AVG_30D")
|
|
621
|
+
|
|
622
|
+
5. Historical price at a specific date (draggable):
|
|
623
|
+
=BDH("AAPL US Equity","PX_LAST",A2,A2)
|
|
624
|
+
|
|
625
|
+
**Market Data (6–10):**
|
|
626
|
+
|
|
627
|
+
6. Market cap:
|
|
628
|
+
=BDP("AAPL US Equity","CUR_MKT_CAP")
|
|
629
|
+
|
|
630
|
+
7. Market cap in billions:
|
|
631
|
+
=BDP("AAPL US Equity","CUR_MKT_CAP","SCALING_FORMAT=BLN")
|
|
632
|
+
|
|
633
|
+
8. Enterprise value:
|
|
634
|
+
=BDP("AAPL US Equity","ENTERPRISE_VALUE")
|
|
635
|
+
|
|
636
|
+
9. Shares outstanding:
|
|
637
|
+
=BDP("AAPL US Equity","EQY_SH_OUT")
|
|
638
|
+
|
|
639
|
+
10. Free float %:
|
|
640
|
+
=BDP("AAPL US Equity","EQY_FREE_FLOAT_PCT")
|
|
641
|
+
|
|
642
|
+
**Income Statement (11–17):**
|
|
643
|
+
|
|
644
|
+
11. Annual revenue:
|
|
645
|
+
=BDP("AAPL US Equity","SALES_REV_TURN")
|
|
646
|
+
|
|
647
|
+
12. TTM revenue:
|
|
648
|
+
=BDP("AAPL US Equity","SALES_REV_TURN[TTM]")
|
|
649
|
+
|
|
650
|
+
13. EBITDA:
|
|
651
|
+
=BDP("AAPL US Equity","EBITDA")
|
|
652
|
+
|
|
653
|
+
14. TTM EBITDA:
|
|
654
|
+
=BDP("AAPL US Equity","EBITDA[TTM]")
|
|
655
|
+
|
|
656
|
+
15. Operating income:
|
|
657
|
+
=BDP("AAPL US Equity","IS_OPER_INC")
|
|
658
|
+
|
|
659
|
+
16. Net income:
|
|
660
|
+
=BDP("AAPL US Equity","NET_INCOME")
|
|
661
|
+
|
|
662
|
+
17. Diluted EPS:
|
|
663
|
+
=BDP("AAPL US Equity","IS_DIL_EPS")
|
|
664
|
+
|
|
665
|
+
**Balance Sheet (18–22):**
|
|
666
|
+
|
|
667
|
+
18. Cash & equivalents:
|
|
668
|
+
=BDP("AAPL US Equity","BS_CASH_NEAR_CASH_ITEM")
|
|
669
|
+
|
|
670
|
+
19. Total debt (short-term + long-term):
|
|
671
|
+
=BDP("AAPL US Equity","BS_ST_BORROW")
|
|
672
|
+
=BDP("AAPL US Equity","BS_LT_BORROW")
|
|
673
|
+
|
|
674
|
+
20. Total assets:
|
|
675
|
+
=BDP("AAPL US Equity","BS_TOT_ASSET")
|
|
676
|
+
|
|
677
|
+
21. Total equity:
|
|
678
|
+
=BDP("AAPL US Equity","TOTAL_EQUITY")
|
|
679
|
+
|
|
680
|
+
22. Book value per share:
|
|
681
|
+
=BDP("AAPL US Equity","BEST_BPS")
|
|
682
|
+
|
|
683
|
+
**Cash Flow (23–26):**
|
|
684
|
+
|
|
685
|
+
23. Cash from operations:
|
|
686
|
+
=BDP("AAPL US Equity","CF_CASH_FROM_OPER")
|
|
687
|
+
|
|
688
|
+
24. Capital expenditures:
|
|
689
|
+
=BDP("AAPL US Equity","CF_CAP_EXPEND_PRPTY_ADD")
|
|
690
|
+
|
|
691
|
+
25. Free cash flow:
|
|
692
|
+
=BDP("AAPL US Equity","CF_FREE_CASH_FLOW")
|
|
693
|
+
|
|
694
|
+
26. Dividends paid:
|
|
695
|
+
=BDP("AAPL US Equity","CF_DVD_PAID")
|
|
696
|
+
|
|
697
|
+
**Valuation Ratios (27–32):**
|
|
698
|
+
|
|
699
|
+
27. P/E ratio (trailing):
|
|
700
|
+
=BDP("AAPL US Equity","PE_RATIO")
|
|
701
|
+
|
|
702
|
+
28. Forward P/E (NTM):
|
|
703
|
+
=BDP("AAPL US Equity","BEST_PE_RATIO")
|
|
704
|
+
|
|
705
|
+
29. EV/EBITDA (trailing 12M):
|
|
706
|
+
=BDP("AAPL US Equity","EV_TO_T12M_EBITDA")
|
|
707
|
+
|
|
708
|
+
30. Forward EV/EBITDA (NTM):
|
|
709
|
+
=BDP("AAPL US Equity","BEST_CUR_EV_TO_EBITDA")
|
|
710
|
+
|
|
711
|
+
31. Price/Book:
|
|
712
|
+
=BDP("AAPL US Equity","PX_TO_BOOK_RATIO")
|
|
713
|
+
|
|
714
|
+
32. Dividend yield:
|
|
715
|
+
=BDP("AAPL US Equity","DVD_YLD_IND")
|
|
716
|
+
|
|
717
|
+
**Profitability (33–37):**
|
|
718
|
+
|
|
719
|
+
33. Gross margin:
|
|
720
|
+
=BDP("AAPL US Equity","GROSS_MARGIN")
|
|
721
|
+
|
|
722
|
+
34. Operating margin:
|
|
723
|
+
=BDP("AAPL US Equity","OPER_MARGIN")
|
|
724
|
+
|
|
725
|
+
35. EBITDA margin:
|
|
726
|
+
=BDP("AAPL US Equity","EBITDA_TO_REVENUE")
|
|
727
|
+
|
|
728
|
+
36. Return on equity:
|
|
729
|
+
=BDP("AAPL US Equity","RETURN_COM_EQY")
|
|
730
|
+
|
|
731
|
+
37. Return on invested capital:
|
|
732
|
+
=BDP("AAPL US Equity","RETURN_ON_INV_CAPITAL")
|
|
733
|
+
|
|
734
|
+
**Consensus Estimates (38–45):**
|
|
735
|
+
|
|
736
|
+
38. FY1 EPS estimate:
|
|
737
|
+
=BDP("AAPL US Equity","BEST_EPS","BEST_FPERIOD_OVERRIDE=1BF")
|
|
738
|
+
|
|
739
|
+
39. FY2 EPS estimate:
|
|
740
|
+
=BDP("AAPL US Equity","BEST_EPS","BEST_FPERIOD_OVERRIDE=2BF")
|
|
741
|
+
|
|
742
|
+
40. FY1 revenue estimate:
|
|
743
|
+
=BDP("AAPL US Equity","BEST_SALES","BEST_FPERIOD_OVERRIDE=1BF")
|
|
744
|
+
|
|
745
|
+
41. FY2 revenue estimate:
|
|
746
|
+
=BDP("AAPL US Equity","BEST_SALES","BEST_FPERIOD_OVERRIDE=2BF")
|
|
747
|
+
|
|
748
|
+
42. FY1 EBITDA estimate:
|
|
749
|
+
=BDP("AAPL US Equity","BEST_EBITDA","BEST_FPERIOD_OVERRIDE=1BF")
|
|
750
|
+
|
|
751
|
+
43. Consensus free cash flow:
|
|
752
|
+
=BDP("AAPL US Equity","BEST_ESTIMATE_FCF")
|
|
753
|
+
|
|
754
|
+
44. Consensus target price:
|
|
755
|
+
=BDP("AAPL US Equity","BEST_TARGET_PRICE")
|
|
756
|
+
|
|
757
|
+
45. Analyst counts (buy / hold / sell):
|
|
758
|
+
=BDP("AAPL US Equity","TOT_BUY_REC")
|
|
759
|
+
=BDP("AAPL US Equity","TOT_HOLD_REC")
|
|
760
|
+
=BDP("AAPL US Equity","TOT_SELL_REC")
|
|
761
|
+
|
|
762
|
+
**FX & Currency (46–48):**
|
|
763
|
+
|
|
764
|
+
46. Spot FX rate (EUR/USD):
|
|
765
|
+
=BDP("EURUSD Curncy","PX_LAST")
|
|
766
|
+
|
|
767
|
+
47. Historical FX rate at date (draggable):
|
|
768
|
+
=BDH("EURUSD Curncy","PX_LAST",A2,A2)
|
|
769
|
+
|
|
770
|
+
48. Foreign equity price converted to USD:
|
|
771
|
+
=BDP("VOW3 GR Equity","CRNCY_ADJ_PX_LAST","EQY_FUND_CRNCY=USD")
|
|
772
|
+
|
|
773
|
+
**Historical Fundamentals (49–50):**
|
|
774
|
+
|
|
775
|
+
49. Annual revenue series (5 years, in USD):
|
|
776
|
+
=BDH("VOW3 GR Equity","SALES_REV_TURN","01/01/2019","12/31/2023","PER=Y","CURR=USD")
|
|
777
|
+
|
|
778
|
+
50. Actuals + estimates blended EPS time series:
|
|
779
|
+
=BDH("AAPL US Equity","BEST_EPS","01/01/2018","12/31/2028","PER=Y","FA_ACT_EST_DATA=A+E")
|
|
780
|
+
|
|
781
|
+
---
|
|
782
|
+
|
|
783
|
+
**Final Checklist:**
|
|
784
|
+
- What exact data point is needed? (Price? Revenue? EBITDA? EPS? Estimate?)
|
|
785
|
+
- What time frame is required? (Current? Historical? TTM? Fiscal year? Forward NTM?)
|
|
786
|
+
- Is this a single value (BDP), time series (BDH), or dataset (BDS)?
|
|
787
|
+
- Is the security identifier correct? (TICKER MARKET_SECTOR)
|
|
788
|
+
- What currency should the data be in? (Use `EQY_FUND_CRNCY` for fundamentals, `CURR` for BDH, `CRNCY_ADJ_PX_LAST` for prices)
|
|
789
|
+
- Do I need to specify periodicity (daily, monthly, quarterly, annual)?
|
|
790
|
+
- For estimates: did I specify `BEST_FPERIOD_OVERRIDE` (1BF, 2BF, 1BQ, 2BQ)?
|
|
791
|
+
- Is the field a percentage type? (Don't apply Excel % format — Bloomberg returns whole numbers)
|
|
792
|
+
- Is there enough empty space below/right for BDH output?
|
|
793
|
+
- Have I checked the field mnemonic using Field Search?
|
|
794
|
+
- Am I within data download limits?
|
|
795
|
+
|
|
796
|
+
---
|
|
797
|
+
|
|
798
|
+
**Additional Resources:**
|
|
799
|
+
- Bloomberg Terminal: API <GO> - Excel Add-in tutorials
|
|
800
|
+
- Bloomberg Terminal: FLDS <GO> - Field search
|
|
801
|
+
- Bloomberg Terminal: HELP DAPI <GO> - API documentation
|
|
802
|
+
- Bloomberg Terminal: XATP XAPI <GO> - Interactive Excel tutorial
|
|
803
|
+
- Field Search in Excel: Bloomberg tab > Find Fields
|