feat(kucoin): add order sync and fix price precision

- Add KuCoin order sync with proper API response parsing
- Use openFeePay/closeFeePay to determine open/close trades
- Get contract multiplier from API for accurate qty calculation
- Fix price rounding: 2 decimals -> 8 decimals for low-price coins
- Add comprehensive tests for trades, positions, and P&L
This commit is contained in:
tinkle-community
2026-02-04 02:10:26 +08:00
parent a5c4d35074
commit b32a3566e6
5 changed files with 2274 additions and 3 deletions

1228
trader/kucoin/trader.go Normal file

File diff suppressed because it is too large Load Diff