How to Use CME Group trading hours search in opencode
Finds CME products and their dated Globex trading events, including holiday schedules. Use it to compare opening and closing times across products when planning a trading week.
Prompts to try with CME Group trading hours search in opencode
Copy an example into opencode, or ask in your own words.
Use CME Group trading hours search to retrieve E-mini S&P 500 schedules for November 23–29, 2026, and add a session calendar to this project's existing calendar view.
Use CME Group trading hours search to fetch Gold futures and options schedules for December 21–27, 2026, and build a comparison table in this project.
Use CME Group trading hours search to retrieve Corn schedules for the next seven days and add separate preopen, open, and close labels to our calendar component.
Use CME Group trading hours search to fetch WTI Crude Oil schedules for the next 14 days and update this project's maintenance planner with proposed windows outside the returned trading sessions.
Use CME Group trading hours search to retrieve Three-Month SOFR schedules for next week and generate a dated schedule fixture for our session display tests.
How to set up CME Group trading hours search in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run CME Group trading hours search
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "cmegroup-com/fomc-rate-probabilities/trading_hours_search", "input": { "from": "<from>" } }'
Then paste one of the prompts above: opencode finds CME Group trading hours search on Spiral, shows the price and runs it.
CME Group trading hours search providers and prices
Spiral runs CME Group trading hours search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Page | a number from 1 | 1 | page |
| Sort | most-active or name | most-active | sort |
| Page size | 1 to 100 | 20 | page_size |
| Cleared as | Futures or Options | Restrict to futures or to options; both when omitted. | |
| Sub group ID | a number from 1 | Sub-group id from trading_hours_holidays.asset_classes[].sub_groups (e.g. 35 = Precious). | |
| Asset class ID | a number from 1 | Asset class id from trading_hours_holidays.asset_classes (e.g. 8 = Metals, 1 = Interest Rate). | |
| Sort ascending | on or off | sort_ascending |
Every API field of CME Group FedWatch and market data · Trading hours search is on its tool page: open its card above.
What can you do with CME Group trading hours search in opencode?
Build a CME session calendar that distinguishes preopen from the start of matching. With the required data-use authorization, a coding agent can turn dated product schedules into application logic and calendar views.
Prepare a holiday session brief
Compare dated opening and closing events for E-mini S&P 500, Gold, and WTI Crude Oil. Turn the returned schedules into a product-by-product reference for the week.
Check futures and options schedules together
Search Gold futures and options for the same dates and compare their returned trading events before planning coverage.
Build a session calendar
Convert returned Corn and Soybean trading events into a calendar that distinguishes preopen, open, and close.
Review schedule revisions
Compare successive authorized retrievals for Three-Month SOFR and 30-Day Federal Funds. Highlight changes to the same products and dates.
Plan application maintenance
Use WTI Crude Oil and Gold session schedules to identify possible maintenance windows for a market application, then review the proposed windows before implementation.
Explain session boundaries
Create a worked example from E-mini S&P 500 trading events that shows when preopen ends and matching begins.
More on CME Group trading hours search and opencode
Overview
CME Group trading hours search in other agents
Questions about CME Group trading hours search in opencode
Can opencode use CME Group trading hours search?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run CME Group trading hours search like any built-in tool.
How much does CME Group trading hours search cost in opencode?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.
Do I need an Alexandria account to use CME Group trading hours search in opencode?
No. Spiral runs CME Group trading hours search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up CME Group trading hours search in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while CME Group trading hours search runs?
CME Group trading hours search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.
Does CME's schedule cover options as well as futures?
Yes. CME's Globex schedule documentation covers market states for futures and options products traded on Globex.
What time zone does CME use for trading hours?
CME publishes trading hours in U.S. Central Time unless otherwise stated. Keep that time zone attached when comparing schedules across locations.
How far ahead are holiday hours finalized?
CME says holiday trading hours are usually finalized approximately two weeks before the holiday. A schedule retrieved earlier may still be preliminary.
Does preopen mean trading has started?
Preopen allows order entry, modification, and cancellation, but no order matching. Use the open event when identifying the start of matching.
What does a paused session allow?
CME defines paused as an interruption of continuous trading. Only order cancellation is allowed, and no order matching occurs.
Start using CME Group trading hours search in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


