Regenerate CLI from latest OAS - #13
Open
carlostasada wants to merge 2 commits into
Open
Conversation
Sync OpenAPI specs and regenerate clients, commands, and metadata. Drop removed market-data index and fixed-income commands, and update order submit for the CreateOrderRequest body rename.
Greptile SummaryThe PR synchronizes the OpenAPI specifications and regenerated CLI artifacts, restructures fixed-income market-data commands, removes index commands, and updates trading request models.
Confidence Score: 5/5The PR appears safe to merge based on the eligible follow-up findings. No blocking failure remains in the eligible review scope.
|
| Filename | Overview |
|---|---|
| cmd/generate/main.go | Adds OAS 3.1 nullable-type parsing and applies it across generated type and flag resolution. |
| cmd/generate/commands.go | Reorganizes fixed-income commands, removes index command registrations, and updates generated schema classification. |
| internal/cmd/order.go | Adapts the order submission hook to the newly named generated request body type. |
| internal/cmd/commands.gen.go | Refreshes the generated command tree and exposes the newly imported flags and endpoints. |
| internal/api/trading_types.gen.go | Regenerates trading API models from the updated specification. |
| internal/api/marketdata_types.gen.go | Regenerates market-data models, including corporate-action data-quality support and removal of index models. |
| README.md | Refreshes the documented market-data command areas. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
OAS[Updated OpenAPI specifications] --> Generator[CLI generator]
Generator --> Clients[Generated API clients and types]
Generator --> Commands[Generated command metadata]
Commands --> CLI[Alpaca CLI command tree]
Clients --> Runtime[API request and response handling]
CLI --> Runtime
Reviews (2): Last reviewed commit: "Regenerate CLI from latest OAS" | Re-trigger Greptile
carlostasada
marked this pull request as draft
August 5, 2026 14:27
Add data fixed-income latest-prices/quotes and teach the generator OAS 3.1 nullable type arrays so request bodies keep working.
carlostasada
marked this pull request as ready for review
August 11, 2026 06:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
data index,data fixed-income)CreateOrderRequestbody rename--order-idon account activity,--data-qualityon corporate-actions)Test plan
make checkmake test-integration— suite passes exceptTestPositionCloseAll/TestPositionCloseAll_CancelOrders(paper account returns 403 closing leftover equity positions; unrelated to this regenerate)