Skip to content

Add multi-stop order functionality (多停)#159

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/improve-navigation-functionality
Draft

Add multi-stop order functionality (多停)#159
Copilot wants to merge 3 commits into
mainfrom
copilot/improve-navigation-functionality

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 4, 2025

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)

  • StopOrder interface with trigger price, amount, percentage, and status tracking
  • MultiStopStrategy interface for grouping related orders

Mock Data (src/lib/mock-data.ts)

  • generateMockStopOrders() - sample orders across ETH, MATIC, USDC
  • generateMockMultiStopStrategies() - strategy groupings

Components (src/components/stop-orders/)

  • StopOrderList - summary stats, strategy cards, individual order list with progress indicators
  • CreateStopOrderDialog - order creation form with type selection, token/network picker, trigger value input, percentage slider

App Integration

  • New "多停" tab in main navigation

Screenshot

Multi-Stop Tab:
Multi-Stop Feature

Create Stop Order Dialog:
Create Stop Order

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
    • Triggering command: /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.

Copilot AI and others added 2 commits December 4, 2025 21:44
- 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
@hhongli1979-coder
Copy link
Copy Markdown
Owner

你们做10天给我一个什么原型,还说已经好了,我现在明白,原来ai就是假的,做不出可以用的东西,对吗,请告诉我

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.

2 participants