Go to file
Art Cashin 11290d8b46 perf(cftc): build each FX pair's forward curve once per day, shared with the vol surface (#7750)
* perf(cftc): price FX prints from their peers without re-extracting the pair

fx_market prices each FX print from the pair's other prints (leave-one-out)
and re-extracted every peer record, twice, for each print; the swap_trades
forex priceability gate does that for every print of the day, so a forex
swap_trades call was quadratic in a pair's prints: over an hour of CPU on a
day of ~43k FX prints, holding the event loop the whole time. option_vol
likewise re-extracted and re-implied every vanilla option of the pair for
each option print.

fx_market now prepares each pair once per call. The extraction's only
cross-record input is its median anchor, and leaving out one print leaves
one of a few possible anchors, so each anchor's oriented, carry-checked
observations are built once and a print only re-takes the medians its own
observation touches. Markets carry a key (pair, anchor, left-out prints,
min_trades); equal keys mean equal markets, and option_vol prices a family
once per key.

Results are unchanged. A new test checks every print's spot and forward
against extract_fx_observations + ndf_forward_curve over its peers; on a real
2026-10-08 DTCC file, 889 sampled prints (506 forwards, 383 options) gave
field-for-field the same value_fx_trade output, and all 57,536 records valued
in 5.1 s. Tests that stubbed the extraction helpers now stub _peer_curve,
the new seam, with unchanged assertions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(cftc): build each pair's curve once with the shared NDF utility

Address review: drop the leave-one-out reimplementation (_pair_view,
_anchored, _median_without and the inline forward interpolator).
fx_market now calls extract_fx_observations and ndf_forward_curve once per
pair and curve date over all of the pair's prints, package legs included,
so valuation and the vol surface use the same NDF curve. The curve, market
and option-pricing memo keys include the curve date.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SEna2ixXYhEGEAQdJM2D3G

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: dlee-bq <dlee@brightquery.com>
2026-11-11 05:09:39 +00:00
2026-09-29 14:45:53 +00:00
2025-10-22 13:44:50 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2024-07-01 13:05:59 +00:00
2025-10-06 16:16:47 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00
2026-09-29 14:45:53 +00:00


Open Data Platform by OpenBB logo Open Data Platform by OpenBB logo

Twitter Discord Shield Open in Dev Containers Open In Colab PyPI

Open Data Platform by OpenBB (ODP) is the open-source toolset that helps data engineers integrate proprietary, licensed, and public data sources into downstream applications like AI copilots and research dashboards.

ODP operates as the "connect once, consume everywhere" infrastructure layer that consolidates and exposes data to multiple surfaces at once: Python environments for quants, OpenBB Workspace and Excel for analysts, MCP servers for AI agents, and REST APIs for other applications.

Logo

Get started with: pip install openbb

from openbb import obb
output = obb.equity.price.historical("AAPL")
df = output.to_dataframe()

Data integrations available can be found here: https://docs.openbb.co/python/reference


OpenBB Workspace

While the Open Data Platform provides the open-source data integration foundation, OpenBB Workspace offers the enterprise UI for analysts to visualize datasets and leverage AI agents. The platform's "connect once, consume everywhere" architecture enables seamless integration between the two.

You can find OpenBB Workspace at https://pro.openbb.co.

Logo

Data integration:

AI Agents integration:

Integrating Open Data Platform to the OpenBB Workspace

Connect this library to the OpenBB Workspace with a few simple commands, in a Python (3.11 - 3.14) environment.

Run an ODP backend

  • Install the packages.
pip install openbb
  • Start the API server over localhost.
openbb-api

This will launch a FastAPI server, via Uvicorn, at 127.0.0.1:6900.

You can check that it works by going to http://127.0.0.1:6900.

Integrate the ODP Backend to OpenBB Workspace

Sign-in to the OpenBB Workspace, and follow the following steps:

CleanShot 2025-05-17 at 09 51 56@2x

  1. Go to the "Apps" tab
  2. Click on "Connect backend"
  3. Fill in the form with: Name: Open Data Platform URL: http://127.0.0.1:6900
  4. Click on "Test". You should get a "Test successful" with the number of apps found.
  5. Click on "Add".

That's it.


Table of Contents

  1. Installation
  2. Contributing
  3. License
  4. Disclaimer
  5. Contacts
  6. Star History
  7. Contributors

1. Installation

The ODP Python Package can be installed from PyPI package by running pip install openbb

or by cloning the repository directly with git clone https://github.com/OpenBB-finance/OpenBB.git.

Please find more about the installation process, in the OpenBB Documentation.

ODP CLI installation

The ODP CLI is a command-line interface that allows you to access the ODP directly from your command line.

It can be installed by running pip install openbb-cli

or by cloning the repository directly with git clone https://github.com/OpenBB-finance/OpenBB.git.

Please find more about the installation process in the OpenBB Documentation.

2. Contributing

There are three main ways of contributing to this project. (Hopefully you have starred the project by now ⭐️)

Become a Contributor

Create a GitHub ticket

Before creating a ticket make sure the one you are creating doesn't exist already among the existing issues

Provide feedback

We are most active on our Discord, but feel free to reach out to us in any of our social media for feedback.

3. License

Distributed under the Apache License, Version 2.0. See LICENSE for more information.

4. Disclaimer

Trading in financial instruments involves high risks including the risk of losing some, or all, of your investment amount, and may not be suitable for all investors.

Before deciding to trade in a financial instrument you should be fully informed of the risks and costs associated with trading the financial markets, carefully consider your investment objectives, level of experience, and risk appetite, and seek professional advice where needed.

The data contained in the Open Data Platform is not necessarily accurate.

OpenBB and any provider of the data contained in this website will not accept liability for any loss or damage as a result of your trading, or your reliance on the information displayed.

All names, logos, and brands of third parties that may be referenced in our sites, products or documentation are trademarks of their respective owners. Unless otherwise specified, OpenBB and its products and services are not endorsed by, sponsored by, or affiliated with these third parties.

Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.

5. Contacts

If you have any questions about the platform or anything OpenBB, feel free to email us at support@openbb.co

If you want to say hi, or are interested in partnering with us, feel free to reach us at hello@openbb.co

Any of our social media platforms: openbb.co/links

6. Star History

This is a proxy of our growth and that we are just getting started.

But for more metrics important to us check openbb.co/open.

Star History Chart

7. Contributors

OpenBB wouldn't be OpenBB without you. If we are going to disrupt financial industry, every contribution counts. Thank you for being part of this journey.

Description
Mirror of OpenBB-finance/OpenBB (OpenBB Platform + CLI), pulled every 8h
Readme Apache-2.0 3.3 GiB
Languages
Python 100%