Add multi-stop order functionality (多停)#159
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
- Add StopOrder and MultiStopStrategy types to types.ts - Add mock data generators for stop orders in mock-data.ts - Create StopOrderList component to display and manage stop orders - Create CreateStopOrderDialog for creating new stop orders - Add "多停" tab to App.tsx for accessing the feature Co-authored-by: hhongli1979-coder <244808107+hhongli1979-coder@users.noreply.github.com>
- Fix price distance calculation with division-by-zero guard - Improve progress bar calculation with clearer logic - Rename triggerPrice to triggerValue for clarity with trailing stops - Extract tokens list to AVAILABLE_TOKENS constant Co-authored-by: hhongli1979-coder <244808107+hhongli1979-coder@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add multiple stop functionality for navigation
Add multi-stop order functionality (多停)
Dec 4, 2025
Owner
|
你们做10天给我一个什么原型,还说已经好了,我现在明白,原来ai就是假的,做不出可以用的东西,对吗,请告诉我 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements multi-stop order feature for crypto trading - allowing users to set multiple stop-loss, take-profit, and trailing stop orders at different price levels for position risk management.
Changes
Types (
src/lib/types.ts)StopOrderinterface with trigger price, amount, percentage, and status trackingMultiStopStrategyinterface for grouping related ordersMock Data (
src/lib/mock-data.ts)generateMockStopOrders()- sample orders across ETH, MATIC, USDCgenerateMockMultiStopStrategies()- strategy groupingsComponents (
src/components/stop-orders/)StopOrderList- summary stats, strategy cards, individual order list with progress indicatorsCreateStopOrderDialog- order creation form with type selection, token/network picker, trigger value input, percentage sliderApp Integration
Screenshot
Multi-Stop Tab:

Create Stop Order Dialog:

Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/runtime/0d8a8192229dfe2338a7/loaded/usr/local/bin/node node /home/REDACTED/work/AICHI3LM11.29/AICHI3LM11.29/node_modules/.bin/vite --host(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.