-
Notifications
You must be signed in to change notification settings - Fork 21
Updates URLS #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updates URLS #174
Conversation
Reviewer's GuideSwitches Stake NYSE and ASX API base URLs to the new api2 host and consistently prefixes endpoints with the /api path segment, while also normalizing watchlist URLs to be built from the common base URL and adding a dedicated update_watchlist URL. Class diagram for updated NYSEUrl and ASXUrl API endpointsclassDiagram
class NYSEUrl {
<<BaseModel>>
STAKE_URL : str = https://api2.prd.hellostake.com/
account_balance : str
account_transactions : str
brokerage : str
cancel_order : str
cash_available : str
create_session : str
equity_positions : str
fund_details : str
market_status : str
orders : str
products_suggestions : str
quick_buy : str
quotes : str
rate : str
ratings : str
sell_orders : str
symbol : str
transaction_history : str
transaction_details : str
transactions : str
users : str
watchlists : str
create_watchlist : str
read_watchlist : str
update_watchlist : str
statement : str
}
class ASXUrl {
<<BaseModel>>
ASX_STAKE_URL : str = https://api2.prd.hellostake.com/api/asx/
brokerage : str
}
NYSEUrl <|-- ASXUrl : shares BaseModel
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey - I've left some high level feedback:
- The watchlist endpoints were previously using the separate
api.prd.stakeover.iohost and are now derived fromSTAKE_URL; if those services are still hosted separately, consider keeping a dedicated base URL constant for watchlists instead of reusingSTAKE_URL. - For consistency and easier future changes, consider aligning the ASX base URL pattern with the NYSE one (e.g., moving
/api/out ofASX_STAKE_URLand into the individual paths, or vice versa) so both markets follow the same structure.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The watchlist endpoints were previously using the separate `api.prd.stakeover.io` host and are now derived from `STAKE_URL`; if those services are still hosted separately, consider keeping a dedicated base URL constant for watchlists instead of reusing `STAKE_URL`.
- For consistency and easier future changes, consider aligning the ASX base URL pattern with the NYSE one (e.g., moving `/api/` out of `ASX_STAKE_URL` and into the individual paths, or vice versa) so both markets follow the same structure.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
updates urls to
api2endpointsSummary by Sourcery
Update Stake API base URLs to use the new api2 host and align endpoint paths across NYSE and ASX services.
Enhancements: