-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix(kalshi): remove synthetically constructed outputs #2677
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryRemoved synthetically constructed dollar-based outputs ( Key changes:
Issues found:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Tool as kalshi_get_balance
participant API as Kalshi API
participant Transform as transformResponse
User->>Tool: Request balance (keyId, privateKey)
Tool->>API: GET /trade-api/v2/portfolio/balance
Note over Tool,API: Auth headers with RSA signature
API-->>Transform: Response { balance, portfolio_value? }
Note over Transform: balance ?? 0
Note over Transform: portfolio_value ?? 0
Transform-->>User: { balance: number, portfolioValue: number }
Note over User: All values in cents (no dollar conversion)
|
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.
1 file reviewed, 1 comment
* fix(kalshi): remove synthetically constructed outputs * fix api interface
* fix(kalshi): remove synthetically constructed outputs * fix api interface
Summary
Dollars based outputs are synthetically constructed. We shouldn't be doing this and don't do it for any other integration.
portfolioBalanceDollars didn't resolve because of separate issue too.
Type of Change
Testing
Tested manually
Checklist