Plan and implement the Paradex trading agent. The goal is to integrate with Paradex perpetuals.
Implementation Plan Details:
- Connection: Establish a WebSocket connection to the Paradex testnet endpoint:
wss://ws.api.testnet.paradex.trade/v1.
- Authentication: Authenticate the connection using your bearer token via the "auth" method in a JSON-RPC message. A Python example shows this is done with
{"jsonrpc": "2.0", "method": "auth", "params": {"bearer": "YOUR_TOKEN"}, "id": 0}.
- Data Streaming: Subscribe to relevant channels, such as
trades.<MARKET>, fills, or orders, to receive real-time data relevant for live stream trading logic. See documentation on Subscription Channels.
- Parsing: Implement logic to parse the incoming JSON-RPC subscription messages.
- Tooling: For Python, you may need to install
websocket-client (based on code examples). Consider checking existing solutions like Paradex CLI or the Python SDK for reference.
Context from Search for mmchougule/flash-scalper:
- The search provided documentation links confirming the WebSocket URL structure and authentication method. The general best practice is to establish the connection, authenticate, and then subscribe.
Please develop a detailed step-by-step plan based on this information.
Plan and implement the Paradex trading agent. The goal is to integrate with Paradex perpetuals.
Implementation Plan Details:
wss://ws.api.testnet.paradex.trade/v1.{"jsonrpc": "2.0", "method": "auth", "params": {"bearer": "YOUR_TOKEN"}, "id": 0}.trades.<MARKET>,fills, ororders, to receive real-time data relevant for live stream trading logic. See documentation on Subscription Channels.websocket-client(based on code examples). Consider checking existing solutions like Paradex CLI or the Python SDK for reference.Context from Search for mmchougule/flash-scalper:
Please develop a detailed step-by-step plan based on this information.