/api/trades/latest

Description: Fetch the most recent transactions (trades) from the CabalSpy database, sorted by creation time in descending order (newest first). This endpoint is perfect for real-time monitoring of Solana trading activity, helping you stay updated on the latest market moves. You can limit the number of trades returned for efficiency.

  • Required Parameter: `api_key` – Your unique API Key (e.g., `?api_key=YOUR_API_KEY`).
  • Optional Parameters:
    • ?limit=N – Limits the number of trades returned (e.g., `?limit=3`). Default is 10, but you can adjust it.
  • Usage Cost: Each request deducts 10 usage points, regardless of the `limit` parameter.
  • Response Format: Returns a JSON array of trade objects, each containing `id`, `signature`, `wallet`, `mint`, `token_symbol`, `transaction_type`, `sol_value`, and `created_at`, sorted by `created_at` in descending order.

Example Request:

curl "http://82.29.177.109:8080/api/trades/latest?api_key=YOUR_API_KEY&limit=3"

Example Response:

[ { "id": 11752, "signature": "5mdTvSjGoXCLJnPjHz7swPYtvz6UAdysPh6QeaJrp1QM54CCku19izWZV5BgRpa73AW5WqzdXSfnmsvX8RPvPhsH", "wallet": "5TuiERc4X7EgZTxNmj8PHgzUAfNHZRLYHKp4DuiWevXv", "mint": "DkgbP8aB38JeiTWS8woNhRpYVomhHH2uyudX3GoXpump", "token_symbol": "NOPE", "transaction_type": "verkauf", "sol_value": "4.388323596", "created_at": "2025-02-24 09:01:33" } ]

Test this Endpoint