Skip to content

feat: display liquidation price on chart#262

Open
Bakomebandias wants to merge 1 commit into
capofficial:mainfrom
Bakomebandias:feat/liquidation-price
Open

feat: display liquidation price on chart#262
Bakomebandias wants to merge 1 commit into
capofficial:mainfrom
Bakomebandias:feat/liquidation-price

Conversation

@Bakomebandias

Copy link
Copy Markdown
file_000000004aa471f4801f2c4155647b16

Added a red dashed line on the trading chart showing the liquidation price for the user's first open position. The line automatically updates when positions change.

Changes:

  • Added updateLiquidationPrice() function in src/lib/chart.js
  • Integrated the liquidation price line into the Chart component
  • The line uses a dashed style with a "Liq" label

Tested with mock position data — the line appears correctly on the chart.

@Bakomebandias

Copy link
Copy Markdown
Author

This PR adds a red dashed liquidation price line on the chart, as requested in bounty #7. The line updates automatically when positions change. I'm available for any adjustments.

@Bakomebandias

Copy link
Copy Markdown
Author

My wallet for the bounty: 153rmHK7KPS5JgitNSeipQbn7gjskjEpkc (BTC network)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant