bitshares / bitshares/bitshares-ui

Auto close margin position

Open
#2,660 3 comments 0 reactions 0 assignees View on GitHub
[0] Awaits Core Imp. [2] Advanced Issue [2] Needs Discussion [3] Feature [4a] Low Priority
Dominant language
JavaScript
Stars
520
Forks
575
Avg merge
12h 7m
Merged PRs (30d)
5

Description

**Is your feature request related to a problem? Please describe.**
Closing margin position does need to remove BTS from the margin position to the market and selling

**Describe the solution you'd like**
Option to close a margin position, when DEBT is bigger than BALANCE
Offer the amount of BTS to the market to cover the difference between DEBT and BALANCE and auto close the margin position afterwards.

*A slider for setting MSSR:
**Selling speed**
2________10%
low______high

**Additional context**
The opposite of the settle function.

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing margin-position closing and settle-function flows in bitshares-ui, then trace how balances, debt, and market orders are submitted. Define the expected behavior for selling the debt-balance difference, MSSR selection, and automatic closure, and add coverage for the completed flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
blockchain, fintech-quant, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.