AI4Finance-Foundation / AI4Finance-Foundation/FinRL
Add pre-trade market state verification to StockTradingEnv
- Lingua principale
- Jupyter Notebook
- Stelle
- 16.3k
- Fork
- 3.5k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi,
I saw FinRL and noticed StockTradingEnv uses datetime for scheduling but doesn't verify whether the exchange is actually open at execution time. That's the gap that causes silent failures when agents trade into closed markets or hit DST transitions.
I've been building Headless Oracle — a signed market oracle for AI agents. Before your agent executes, it fetches an Ed25519-signed attestation that the market is open. 60-second TTL, 28 exchanges.
import requests
r = requests.get('https://headlessoracle.com/v5/demo?mic=XNYS')
receipt = r.json()
if receipt['status'] != 'OPEN':
raise Exception(f"Market not open: {receipt['status']}")
Free to try (no key needed for /v5/demo). pypi.org/project/headless-oracle has LangChain and CrewAI tools built in.
Would you be open to adding a pre-trade market gate to the RL environment? Happy to write it.
— Mike (headlessoracle.com)
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.