> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openfinance.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Poly Up/Down Assist

> Bring the HIP-4 Up/Down Edge approach to Polymarket's short BTC and ETH windows, with the same alarm and a ticket that trades from your own Polymarket balance.

If you have used [HIP-4 Up/Down Edge](https://docs.openfinance.tech/mainframe/templates/updown-hip4.md), this will feel familiar: it makes one call per "Up or Down" window and holds it. The main difference is how a Polymarket window settles, explained below. It sits under **Prediction Markets** in Mainframe.

![Dark navy page with the Polymarket wordmark, chips for BTC windows, a BTC Up or Down header with Up and Down prices, a chart with a dashed line and a call card reading Pass](https://mintcdn.com/openfinance/-pu5SodoQuhEwuR-/images/mainframe/updown-polymarket.png?fit=max\&auto=format\&n=-pu5SodoQuhEwuR-\&q=85\&s=17bab20c39839fdeda76e568ec5a00c8)

The captured demo: windows across the top, the price against the line, and the held call

## Who it is for

Use it if you trade [Polymarket](https://docs.openfinance.tech/markets/polymarket.md) crypto windows and want one considered call per window, an alarm, and an honest record of how the calls did.

## What it does

* **Windows** for BTC and ETH, in 15 minute and 5 minute series, shown as chips with settle time and countdown.
* **Line and chart.** Polymarket windows resolve on whether the price at the end is at or above the price at the start. The app shows an approximate start price and the live reference price against it.
* **Helper tools**, refreshed every 10 seconds: distance from the line, an edge meter, and live trade flow.
* **One call per window**, 5 minutes before settlement, then frozen: Up, Down or Pass with reasons.
* **Alarm** with sound and browser notifications on every Bet call.
* **Track record** with hit rate and profit and loss on a notional \$100 per bet.
* **Ticket** to buy Up or Down with your key, showing your Polymarket balance.

## What it needs

| Need | Why |
| - | - |
| Your OpenFinance key | Your balance and orders. Also loads markets through OpenFinance if Polymarket's public API does not answer on your network |
| pUSD in your Polymarket deposit wallet | Polymarket trades are paid in pUSD. The app tells you when USDC.e needs wrapping first |
| GitHub and Vercel | To keep the code and deploy a private copy |

The reference price and trade flow come from Hyperliquid's public data for the same coin.

## Deploy it

**1. Deploy**

Click **Deploy** on the card. If a run stops, click **Continue run**.

**2. Watch a window**

Pick a chip, turn on the alarm, and wait for the call.

**3. Trade only when you choose**

Paste your key, check the ticket, and confirm the order.

## Ideas to customize

Ask for changes like these after the build:

```text theme={"system"}
Show only 15 minute windows and hide the 5 minute series.
```

```text theme={"system"}
Add a weekly summary of the track record by coin.
```

## Limits

* The line shown is an approximation of the official start price. Polymarket settles on its own source, and results are marked "by feed, awaiting official" until confirmed.
* 5 minute windows always pass, so calls come on 15 minute windows. Most windows are a pass.
* Orders are fill-or-kill with a 0.01 tick and a 5 share minimum.
* A call is a hint, not a promise. The track record lives in your browser only.

Every trade needs your confirmation, and nothing here is financial advice. See [Keys and safety](https://docs.openfinance.tech/mainframe/safety.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.