fix(kalshi): remove synthetically constructed outputs#2677
Merged
icecrasher321 merged 2 commits intostagingfrom Jan 4, 2026
Merged
fix(kalshi): remove synthetically constructed outputs#2677icecrasher321 merged 2 commits intostagingfrom
icecrasher321 merged 2 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
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)
|
waleedlatif1
pushed a commit
that referenced
this pull request
Jan 4, 2026
* fix(kalshi): remove synthetically constructed outputs * fix api interface
waleedlatif1
pushed a commit
that referenced
this pull request
Jan 8, 2026
* fix(kalshi): remove synthetically constructed outputs * fix api interface
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
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