Closed kacpergumieniuk closed 2 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
market-frontend | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 10, 2024 9:38am |
The recent updates focus on refining the calculations of position closure prices for LONG
and SHORT
positions in the Trading Hub components. These changes ensure consistency and accuracy in reflecting the correct pricing for each position type by introducing createPriceLong
and createPriceShort
fields across various components and queries.
File Path | Change Summary |
---|---|
components/.../ClosePositionModal.tsx |
Adjusted the calculation of position closure prices to use createPriceLong and createPriceShort . |
components/.../TradingHubAggregatedPosition.tsx |
Updated aggregated position calculations to use createPriceLong and createPriceShort . |
components/.../TradingHubPositionsItem.tsx |
Modified calculation and display logic based on position.createPrice to differentiate between LONG and SHORT positions. |
requests/queries.ts |
Added createPriceLong and createPriceShort fields to the USER_OPEN_POSITIONS_QUERY . |
types/positionTypes.ts |
Introduced createPriceLong and createPriceShort properties to the PositionType interface. |
In the hub of trades so bright, Long and short now clear in sight. Prices set with careful thought,
createPriceLong
andShort
are sought. Calculations precise, no more plight, Prosper in this trading light. 🌟
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?
Summary by CodeRabbit