Closed Klapeyron closed 1 month ago
[!WARNING]
Rate limit exceeded
@Klapeyron has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 22 minutes and 12 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 27435e6050352f2766039a542c7e1f5e65ae02ef and af84d2fd2617095211b782178e301b112404c24d.
The recent set of changes revolves around enhancements to the market position management system. This includes modifications in database migration scripts to introduce new fields (create_price_long
and create_price_short
) to the position
table, updates to the GraphQL schema, and enhancements to event processors. These changes collectively improve how market positions are tracked and processed within the application.
File Path | Summary |
---|---|
db/migrations/1720386636911-Data.js , db/migrations/1720461075449-Data.js |
Introduced new fields create_price_long and create_price_short in the position table. |
schema.graphql |
Added createPriceLong and createPriceShort fields to the Position type. |
src/eventprocessor/market/latestOraclePriceProcessor.ts |
Removed a console log statement. |
src/eventprocessor/market/orderFilledEventProcessor.ts |
Added call parameter and handling for Position and OrderSide entities. |
src/eventprocessor/market/orderReducedEventProcessor.ts |
Added call parameter and logic for handling ClosingOrder type orders. |
src/eventprocessor/market/postionCreatedEventProcessor.ts |
Added createPriceLong and createPriceShort properties. |
src/model/generated/position.model.ts |
Added createPriceLong and createPriceShort properties to the Position class. |
In the world of code so bright,
Positions keep our trades in sight,
Long and short, the prices new,
A field for each to track the view.
With every tweak, we dance and cheer,
For better market flows, we steer!
🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
@coderabbitai summary
Summary by CodeRabbit
New Features
createPriceLong
andcreatePriceShort
fields to market positions for more detailed price tracking.Bug Fixes
Enhancements
Schema Updates
createPriceLong
andcreatePriceShort
in thePosition
type.Documentation