An OpenBB Workspace app that connects to the Polymarket API, enabling the integration of prediction market data. It defines widgets for visualizing Polymarket events, markets, price history, and analytics within the OpenBB Workspace interface.
Follow these steps to connect this backend as a data source in OpenBB Pro:
- Log in to your OpenBB Pro account at pro.openbb.co
- Navigate to the Apps page
- Click the Connect backend button
- Fill in the following details:
- Name: Polymarket Backend
- URL:
https://openbb-polymarket.jose-donato.workers.dev/
- Click the Test button to verify the connection
- If the test is successful, click the Add button
Once added, you'll find Polymarket app available in the Apps section of OpenBB Workspace.
This backend provides the following widgets for analyzing Polymarket data:
- Search Events - Search for events on Polymarket
- Search Tags - Search for tags on Polymarket
- Top Events - Get the top events by volume
- Top Markets - Get the top markets by volume
- Market Details - Get detailed information about a specific market
- Event Details - Get detailed information about a specific event
- Event Markets - Get all markets for a specific event
- Price History - Get price history charts for markets
- Event Price History - Get price history for all markets in an event
- Trending Tags - Get trending tags on Polymarket
- Home Cards - Get featured events from the home page
- Event Comments - Get user comments for events
To run this project locally, follow these steps:
-
Prerequisites:
-
Clone the Repository:
git clone https://github.com/jose-donato/openbb-polymarket cd openbb-polymarket -
Install Dependencies:
bun install # or npm install, yarn, pnpm -
Start the Development Server:
bun run dev # or npm run dev, yarn dev, pnpm devThis command will start a local server at
http://localhost:5173, where you can test the endpoints and view the setup instructions.
Created by @josedonato__