create a deriv trading bot interface that will fetch data from deriv using api and display it on this interface, i need to see both real and demo account balances, be able to switch from one account to another and a trading dashboard where i can execute trades. everything that need to be displayed and has been mentioned in this dev package include it
of.tsx
100d ago
Loading...
100d ago
I created these api's demo_account_api=cJryHJykaIXF2GY
real_account_api=4ujuXfWjLTHccRS can you do this? To integrate with the actual Deriv API, you would replace the mock data with real API calls using the DerivAPI SDK structure from your documentation.
100d ago
Loading...
100d ago
The code returns the following error:
WebSocket error: {"isTrusted":true}
at ws.onerror (/lib/deriv-api)