mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-13 07:46:54 +08:00
feat: add xyz dex balance calculation, market data providers, and UI improvements
- Fix xyz dex balance calculation (use marginSummary for isolated margin) - Add Alpaca provider for US stocks market data - Add TwelveData provider for forex & metals market data - Add Hyperliquid kline provider - Centralize API keys in config system - Add builder fee for order routing - Improve chart UI with compact design - Fix position history fee display precision - Add comprehensive balance calculation tests
This commit is contained in:
@@ -315,9 +315,11 @@ function PositionRow({ position }: { position: HistoricalPosition }) {
|
||||
</div>
|
||||
</td>
|
||||
|
||||
{/* Fee */}
|
||||
{/* Fee - show more precision for small fees */}
|
||||
<td className="py-3 px-4 text-right font-mono text-xs" style={{ color: '#848E9C' }}>
|
||||
-{(position.fee || 0).toFixed(2)}
|
||||
-{((position.fee || 0) < 0.01 && (position.fee || 0) > 0)
|
||||
? (position.fee || 0).toFixed(4)
|
||||
: (position.fee || 0).toFixed(2)}
|
||||
</td>
|
||||
|
||||
{/* Duration */}
|
||||
|
||||
Reference in New Issue
Block a user