Files
nofx/prompts
0xYYBB | ZYY | Bobo 47357dfdbf fix(prompts): reduce margin usage from 95% to 88% for Hyperliquid liquidation buffer (#666)
## Problem
Users with small accounts (<$200) encounter Hyperliquid error:
"Insufficient margin to place order. asset=1"

Real case: $98.89 account failed to open position

## Root Cause
5% reserve insufficient for:
- Trading fees (~0.04%)
- Slippage (0.01-0.1%)
- Liquidation margin buffer (Hyperliquid requirement)

Additionally, undefined "Allocation %" parameter caused confusion.

## Solution
1. Reduce margin usage rate from 95% to 88% (reserve 12%)
2. Remove undefined "Allocation %" parameter
3. Add small account example ($98.89) for clarity

## Example ($98.89 account)
Before: $93.95 margin → $4.75 remaining 
After:  $87.02 margin → $11.87 remaining 

## Modified Files
- prompts/adaptive.txt
- prompts/default.txt
- prompts/nof1.txt

## Testing
Verified with $98.89 account on z-dev branch - successful order placement

Fixes #549
2025-11-07 09:19:20 +08:00
..
2025-11-03 00:16:28 +08:00