chore(config): add GOOGL, INTC, AAPL, MSFT, LLY, and PTY equities - #1097
chore(config): add GOOGL, INTC, AAPL, MSFT, LLY, and PTY equities#1097JuaniRios wants to merge 1 commit into
Conversation
Registers the six tokenised equities from st0x.registry#46 in the prod and staging hedge configs. Prod enables all four per-asset flags, staging keeps them disabled. Claude-Session: https://claude.ai/code/session_01HUDdqDE4eU9GQuzKntKhQ4
How to use the Graphite Merge QueueAdd the label add-to-gt-merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (1)**/*.{rs,sql,toml}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (4)📚 Learning: 2026-03-10T08:20:47.870ZApplied to files:
📚 Learning: 2026-07-09T17:39:52.471ZApplied to files:
📚 Learning: 2026-07-09T17:39:51.844ZApplied to files:
📚 Learning: 2026-07-21T17:27:05.289ZApplied to files:
🪛 Betterleaks (1.6.1)config/staging/st0x-hedge.toml[high] 405-405: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) [high] 414-414: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) [high] 423-423: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) [high] 432-432: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) [high] 441-441: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) [high] 450-450: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) config/prod/st0x-hedge.toml[high] 420-420: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) [high] 429-429: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) [high] 438-438: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) [high] 447-447: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) [high] 456-456: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) [high] 465-465: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key) 🔇 Additional comments (2)
WalkthroughChangesEquity asset configuration
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Graphite Automations"Auto-assign PRs to author" took an action on this PR • (07/27/26)1 assignee was added to this PR based on Juan Ignacio Rios's automation. |
|
@coderabbitai full review |
✅ Action performedFull review finished. Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 46 minutes. |
|
@coderabbitai full review |
Rate Limit Exceeded
|
|
@coderabbitai full review |
✅ Action performedFull review finished. Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 59 minutes. |
|
@coderabbitai full review |
✅ Action performedFull review finished. Your included review limit is currently reached under our Fair Usage Limits Policy. This review may still proceed through usage-based billing if eligible. Your next included review will be available in 1 minute. |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
Merge activity
|
…0x-Technology#1097) ## What - Adds `GOOGL`, `INTC`, `AAPL`, `MSFT`, `LLY`, and `PTY` to `config/prod/st0x-hedge.toml`, all four flags `enabled`. - Adds the same six to `config/staging/st0x-hedge.toml`, all four flags `disabled`. - The tokens come from [st0x.registry#46](ST0x-Technology/st0x.registry#46). ## Why - The tokens are live on Base, but the bot does not know their addresses. So it cannot recognise a fill, account for it, or hedge it. ## How - Config only, no Rust changes. Same shape as ST0x-Technology#1067. - `tokenized_equity` is the `t<SYM>` share token. `tokenized_equity_derivative` is the `wt<SYM>` wrapper. - I checked every pair on Base with `cast`. Each wrapper reports `symbol()` `wt<SYM>`, `decimals()` 18, and `asset()` equal to the `tokenized_equity` address in this diff. So the two fields are not flipped. - `vault_id = "0xfab"` like every other equity. - `pyth_feed_id` is unset on all six. We only pin a feed after we confirm it on-chain. A missing feed skips trade enrichment for analytics. Hedging is unaffected. - staging registers the six but keeps every flag `disabled`. staging only trades RKLB. ## Testing - `cargo nextest run -p st0x-config --all-features` -> 176/176 pass. - `server_config_toml_is_valid` and `all_repo_config_tomls_are_valid` read the real prod and staging TOML files. So the twelve new blocks are parsed and validated. - Not hotfixed on the live prod config. Prod picks these up on the next deploy. ## Anything else - This turns on live prod trading for all six. To hold one back, flip its prod `trading` to `disabled` before the deploy. - `PTY` is a closed-end fund, not a common stock. Worth a check that the broker fills it the same way. - Out of scope: the Raindex orders in `st0x.raindex-deploy`, and the issuance registration. The bot sees no fills until those orders are deployed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for GOOGL, INTC, AAPL, MSFT, LLY, and PTY equity assets. * Configured tokenized equity and derivative contract addresses for each asset. * Enabled relevant trading and recovery capabilities in production. * Added the assets in staging with functionality disabled pending activation. <!-- end of auto-generated comment: release notes by coderabbit.ai -->

What
GOOGL,INTC,AAPL,MSFT,LLY, andPTYtoconfig/prod/st0x-hedge.toml, all four flagsenabled, per RAI-1608.config/staging/st0x-hedge.toml, all four flagsdisabled.Why
How
tokenized_equityis thet<SYM>share token.tokenized_equity_derivativeis thewt<SYM>wrapper.cast. Each wrapper reportssymbol()wt<SYM>,decimals()18, andasset()equal to thetokenized_equityaddress in this diff. So the two fields are not flipped.vault_id = "0xfab"like every other equity.pyth_feed_idis unset on all six. We only pin a feed after we confirm it on-chain. A missing feed skips trade enrichment for analytics. Hedging is unaffected.disabled. staging only trades RKLB.Testing
cargo nextest run -p st0x-config --all-features-> 176/176 pass.server_config_toml_is_validandall_repo_config_tomls_are_validread the real prod and staging TOML files. So the twelve new blocks are parsed and validated.Anything else
tradingtodisabledbefore the deploy.PTYis a closed-end fund, not a common stock. Worth a check that the broker fills it the same way.st0x.raindex-deploy, and the issuance registration. The bot sees no fills until those orders are deployed.Summary by CodeRabbit