Skip to content

Implement Individual ‘Liquidate’ Buttons (Symbol Cards) #2

@rawveg

Description

@rawveg
### Overall Objective:
Enhance the trader-magic system by adding liquidation controls and symbol-specific trading state management to improve trading safety and usability.

### Phase Objective:
Implement a “Liquidate” button within each symbol’s card allowing users to liquidate holdings of that specific symbol and stop trading on confirmation.

### Tasks for This Phase:
	•	Add a clearly identifiable “Liquidate” button within each symbol’s UI card.
	•	Implement a confirmation prompt that clearly communicates the impact of liquidating that specific symbol.
	•	Develop backend logic (via Alpaca API’s DELETE /v2/positions/{symbol} endpoint) to liquidate holdings of the targeted symbol.
	•	Upon successful liquidation, ensure trading activity is immediately halted for only that specific symbol.
	•	Include appropriate error handling and feedback messages in the UI and backend processes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions