# Hummingbot connector

Run Hummingbot strategies on PredictAsiaX markets. The connector is not part of the official Hummingbot release; it is distributed here as a patch to Hummingbot v2.18.0.

## What it does

- Exchange name `predictasiax`. Every market is a YES/NO market settled in USDT, and each outcome is a trading pair: market `btc-200000-hit-2026` gives `BTC_200000_HIT_2026_YES-USDT` and `BTC_200000_HIT_2026_NO-USDT`.
- Order types: limit, limit maker (post-only) and market. Prices are probabilities from 0.001 to 0.999 on the tick grid. The minimum order is 1 USDT notional, except when selling a whole position.
- The order book and trades come from the public WebSocket channel `book:<market>`, with REST snapshots to resync.
- Orders and cancels go over the signed-in WebSocket, at the per-second limits reported at sign-in. When that is unavailable, they go over REST. Fills are matched by trade id and carry the fee actually charged.
- Fees: resting orders pay none; takers pay the published fee curve (see [Fee architecture](https://docs.predictasiax.com/fee-architecture)).

## Install

```
git clone --branch v2.18.0 --depth 1 https://github.com/hummingbot/hummingbot.git
cd hummingbot
git switch -c predictasiax
curl -fsSLO https://docs.predictasiax.com/downloads/hummingbot/predictasiax-hummingbot-v2.18.0.patch
shasum -a 256 predictasiax-hummingbot-v2.18.0.patch
git apply predictasiax-hummingbot-v2.18.0.patch
```

Then install Hummingbot from this folder the usual way (from source or a local Docker build; see [Hummingbot's installation docs](https://hummingbot.org/installation/)). The connector is pure Python and adds no dependencies. In Hummingbot, run `connect predictasiax` and paste your API key (`sk_live_...`). For how to get a key, see [Getting started](https://docs.predictasiax.com/getting-started); trading live needs a live key from `POST /v1/apply`.

## Download

[predictasiax-hummingbot-v2.18.0.patch](https://docs.predictasiax.com/downloads/hummingbot/predictasiax-hummingbot-v2.18.0.patch) (171 KB, SHA-256 `11ee15beebdfa1e0eace3b8c7eaf3f9be1bafdfe6a15bdde5fbbc80f9ff514ef`). It applies to Hummingbot v2.18.0.

Resting two-sided quotes also earn the USDT stipend and the PAX quote reward. See [Market makers](https://docs.predictasiax.com/market-makers#quote-rewards).

Source: https://docs.predictasiax.com/hummingbot
