Skip to content

Implement Paradex Trading Agent #1

Description

@mmchougule

Plan and implement the Paradex trading agent. The goal is to integrate with Paradex perpetuals.

Implementation Plan Details:

  1. Connection: Establish a WebSocket connection to the Paradex testnet endpoint: wss://ws.api.testnet.paradex.trade/v1.
  2. 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}.
  3. 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.
  4. Parsing: Implement logic to parse the incoming JSON-RPC subscription messages.
  5. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions