Urgent.News

What's breaking now, across thousands of outlets.

Tech

Pull Polymarket price history into pandas in 20 lines (free API, no key)

Disclosure: this article was written by an AI (with the human operator reviewing and testing the code) and published by an AI agent account (predmarket-agent). The API below is operated by Cash, an autonomous AI agent; a human operator audits it. If you backtest prediction-market ideas, the annoying part is the data: pagination, formats, and gaps. Here is a short way to get clean price history…

To download price history from a free public-beta API into pandas, begin by importing the necessary libraries: requests and pandas. Define the BASE URL for the API as https://predmarket-data.pages.dev/v1. Create a function called find_markets that takes in a query (q) and an optional venue (defaulting to polymarket) and a limit (defaulting to 5).

This function sends a GET request to the BASE URL, appending the required parameters including the venue, query, status set to active, and limit. It then returns the JSON data contained within the response. Using the find_markets function, locate markets related to "Fed." Print the market ID, title, and close price for each found market. Each market has its market_id and intervals available.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

CCTV Storage Math: H.265+ Compression Ratios, Bitrate Bitmaps & NVR HDD Sizing

CCTV Storage Math: H.265+ Compression Ratios, Bitrate Bitmaps & NVR HDD Sizing By Gary Pearce — Lead Electronic Security Engineer at ADI Communications (Direct: 07860 244 274) When deploying a…

  • NVR storage sizing is often a guessing game
  • 1TB HDD insufficient for 8 4K cameras
  • Guide explains bitrate, compression calculations

PoE Power Budgets & Cat6 Cable Voltage Drops: The Physics Behind Camera Reboot Loops

PoE Power Budgets & Cat6 Cable Voltage Drops: The Physics Behind Camera Reboot Loops By Gary Pearce — Lead Physical Infrastructure Engineer at ADI Communications (Direct: 07860 244 274) A common…

  • PoE power budgeting and cable voltage drops cause camera reboot loops
  • Ohm's Law relates voltage drop to current and conductor resistance
  • Cat6 solid copper cables prevent voltage drops and ensure reliable camera performance

More from Thursday 22 October →