feat: implement real Drift trading history using SDK methods

- Updated getTradingHistory to fetch actual Drift order records
- Added fallback to local database for trade history
- Enhanced executeTrade to store trades in database for history tracking
- Fixed hydration issues in AutoTradingPanel and TradingHistory components
- Improved error handling and logging for trading history retrieval
This commit is contained in:
mindesbunister
2025-07-13 02:24:12 +02:00
parent 0fa687d1d7
commit 836455d1a4
6 changed files with 286 additions and 427 deletions

View File

@@ -175,14 +175,4 @@ export default function TradingHistory() {
)}
</div>
)
}
<td>{trade.status}</td>
<td>{trade.executedAt}</td>
</tr>
))}
</tbody>
</table>
)}
</div>
)
}