mirror of
https://github.com/GMGNAI/gmgn-skills.git
synced 2026-08-19 11:08:09 +00:00
feat(swap): support profit_stop_trace and loss_stop_trace in condition orders
- Add drawdown_rate optional field to StrategyConditionOrder interface - Make price_scale optional (required only for fixed-price types) - Update --condition-orders help text with trace type example - Document all 4 condition order types in SKILL.md with field requirements, drawdown_rate semantics, and usage examples - Sync order strategy create params: replace --side / auto-inference with explicit --order-type and --sub-order-type required options - Add --group-tag to order strategy list params - Add --order-type to order strategy cancel params - Fix --gas-price description: gwei (not wei); CLI converts internally Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
c525fba661
commit
7445c970bc
@@ -90,10 +90,11 @@ export interface SwapParams {
|
||||
}
|
||||
|
||||
export interface StrategyConditionOrder {
|
||||
order_type: string; // "profit_stop" | "loss_stop"
|
||||
order_type: string; // "profit_stop" | "loss_stop" | "profit_stop_trace" | "loss_stop_trace"
|
||||
side: string; // "sell"
|
||||
price_scale: string;
|
||||
price_scale?: string;
|
||||
sell_ratio: string;
|
||||
drawdown_rate?: string;
|
||||
}
|
||||
|
||||
export interface StrategyCreateParams {
|
||||
@@ -104,6 +105,7 @@ export interface StrategyCreateParams {
|
||||
order_type: string;
|
||||
sub_order_type: string;
|
||||
check_price: string;
|
||||
open_price?: string;
|
||||
amount_in?: string;
|
||||
amount_in_percent?: string;
|
||||
limit_price_mode?: string;
|
||||
|
||||
Reference in New Issue
Block a user