dexorynlabs/HIP-4-trading-botPublic

Hyperliquid HIP-4 Arbitrage bot. Outcome.xyz Trading bot. Including HIP-4 Copytrading mode.

AI summary: A TypeScript-based Polymarket CLOB copy-trading tool with advanced features like take-profit and trailing stops.

Stars
4
+1 today
Forks
0
Watchers
0
Open issues
0
Open PRs
0
Contributors
~2
Commits
35
Branches
1

RustNo licenseCreated Apr 24, 2026Last push 4d ago+1 stars this week+1 this month

Quick answers

What is HIP-4-trading-bot?
A TypeScript-based Polymarket CLOB copy-trading tool with advanced features like take-profit and trailing stops.
What does HIP-4-trading-bot do?
This application is a Central Limit Order Book (CLOB) copy-trading tool for Polymarket. It actively polls public trade activity for a configured list of whitelisted addresses. The bot automatically sizes orders relative to the user's available balance. It also includes advanced exit management features like take-profit and trailing stop logic. The entire system is implemented in TypeScript for robust type safety and extensibility.
Who is HIP-4-trading-bot for?
TypeScript developers who want to build sophisticated automated trading strategies on Polymarket. It is suitable for traders requiring advanced exit logic like trailing stops.
How do I get started with HIP-4-trading-bot?
npm ci
How popular is HIP-4-trading-bot on GitHub?
dexorynlabs/HIP-4-trading-bot has 4 stars and 0 forks on GitHub, and gained 1 stars in the last 7 days.

Star history

since Jul 29, 2026
01234Jul 2026Sep 2026Oct 2026Dec 2026
4 stars as of Dec 1, 2026. Measured daily since Jul 29, 2026; GitHub no longer exposes earlier star timestamps.

Update history

3 recorded
  • Dec 1, 2026Primary language changed from TypeScript to Rust.
  • Nov 14, 2026Description changed from "Hyperliquid HIP-4 Arbitrage bot. Outcome.xyz Trading bot" to "Hyperliquid HIP-4 Arbitrage bot. Outcome.xyz Trading bot. Including HIP-4 Copytrading mode.".
  • Nov 4, 2026Description changed from "polymarket copy tading bot with Typescript + Websocket" to "Hyperliquid HIP-4 Arbitrage bot. Outcome.xyz Trading bot".

Contribution activity

commits per day, last 52 weeks
DecJanFebMarAprMayJunJulAugSepOctNovMonWedFri2025-12-07: 0 commits2025-12-08: 2 commits2025-12-09: 0 commits2025-12-10: 0 commits2025-12-11: 10 commits2025-12-12: 0 commits2025-12-13: 0 commits2025-12-14: 0 commits2025-12-15: 2 commits2025-12-16: 0 commits2025-12-17: 0 commits2025-12-18: 0 commits2025-12-19: 0 commits2025-12-20: 3 commits2025-12-21: 0 commits2025-12-22: 0 commits2025-12-23: 0 commits2025-12-24: 2 commits2025-12-25: 1 commit2025-12-26: 0 commits2025-12-27: 0 commits2025-12-28: 0 commits2025-12-29: 0 commits2025-12-30: 0 commits2025-12-31: 0 commits2026-01-01: 0 commits2026-01-02: 0 commits2026-01-03: 0 commits2026-01-04: 2 commits2026-01-05: 0 commits2026-01-06: 0 commits2026-01-07: 0 commits2026-01-08: 0 commits2026-01-09: 0 commits2026-01-10: 0 commits2026-01-11: 0 commits2026-01-12: 0 commits2026-01-13: 0 commits2026-01-14: 2 commits2026-01-15: 0 commits2026-01-16: 0 commits2026-01-17: 0 commits2026-01-18: 0 commits2026-01-19: 3 commits2026-01-20: 0 commits2026-01-21: 2 commits2026-01-22: 0 commits2026-01-23: 0 commits2026-01-24: 0 commits2026-01-25: 0 commits2026-01-26: 0 commits2026-01-27: 0 commits2026-01-28: 0 commits2026-01-29: 0 commits2026-01-30: 0 commits2026-01-31: 0 commits2026-02-01: 0 commits2026-02-02: 0 commits2026-02-03: 0 commits2026-02-04: 0 commits2026-02-05: 0 commits2026-02-06: 0 commits2026-02-07: 0 commits2026-02-08: 0 commits2026-02-09: 0 commits2026-02-10: 0 commits2026-02-11: 0 commits2026-02-12: 0 commits2026-02-13: 0 commits2026-02-14: 0 commits2026-02-15: 0 commits2026-02-16: 0 commits2026-02-17: 0 commits2026-02-18: 0 commits2026-02-19: 0 commits2026-02-20: 0 commits2026-02-21: 0 commits2026-02-22: 0 commits2026-02-23: 0 commits2026-02-24: 0 commits2026-02-25: 0 commits2026-02-26: 0 commits2026-02-27: 0 commits2026-02-28: 0 commits2026-03-01: 0 commits2026-03-02: 0 commits2026-03-03: 0 commits2026-03-04: 0 commits2026-03-05: 0 commits2026-03-06: 0 commits2026-03-07: 0 commits2026-03-08: 0 commits2026-03-09: 0 commits2026-03-10: 0 commits2026-03-11: 0 commits2026-03-12: 0 commits2026-03-13: 0 commits2026-03-14: 0 commits2026-03-15: 0 commits2026-03-16: 0 commits2026-03-17: 0 commits2026-03-18: 0 commits2026-03-19: 0 commits2026-03-20: 0 commits2026-03-21: 0 commits2026-03-22: 0 commits2026-03-23: 0 commits2026-03-24: 0 commits2026-03-25: 0 commits2026-03-26: 0 commits2026-03-27: 0 commits2026-03-28: 0 commits2026-03-29: 0 commits2026-03-30: 0 commits2026-03-31: 0 commits2026-04-01: 0 commits2026-04-02: 0 commits2026-04-03: 0 commits2026-04-04: 0 commits2026-04-05: 0 commits2026-04-06: 0 commits2026-04-07: 0 commits2026-04-08: 0 commits2026-04-09: 0 commits2026-04-10: 0 commits2026-04-11: 0 commits2026-04-12: 0 commits2026-04-13: 0 commits2026-04-14: 0 commits2026-04-15: 0 commits2026-04-16: 0 commits2026-04-17: 0 commits2026-04-18: 0 commits2026-04-19: 0 commits2026-04-20: 0 commits2026-04-21: 0 commits2026-04-22: 0 commits2026-04-23: 0 commits2026-04-24: 1 commit2026-04-25: 0 commits2026-04-26: 0 commits2026-04-27: 0 commits2026-04-28: 0 commits2026-04-29: 0 commits2026-04-30: 0 commits2026-05-01: 0 commits2026-05-02: 0 commits2026-05-03: 0 commits2026-05-04: 0 commits2026-05-05: 0 commits2026-05-06: 0 commits2026-05-07: 0 commits2026-05-08: 0 commits2026-05-09: 0 commits2026-05-10: 0 commits2026-05-11: 0 commits2026-05-12: 0 commits2026-05-13: 0 commits2026-05-14: 0 commits2026-05-15: 0 commits2026-05-16: 0 commits2026-05-17: 0 commits2026-05-18: 0 commits2026-05-19: 0 commits2026-05-20: 0 commits2026-05-21: 0 commits2026-05-22: 0 commits2026-05-23: 0 commits2026-05-24: 0 commits2026-05-25: 0 commits2026-05-26: 0 commits2026-05-27: 0 commits2026-05-28: 0 commits2026-05-29: 0 commits2026-05-30: 0 commits2026-05-31: 0 commits2026-06-01: 0 commits2026-06-02: 0 commits2026-06-03: 0 commits2026-06-04: 0 commits2026-06-05: 0 commits2026-06-06: 0 commits2026-06-07: 0 commits2026-06-08: 0 commits2026-06-09: 0 commits2026-06-10: 0 commits2026-06-11: 0 commits2026-06-12: 0 commits2026-06-13: 0 commits2026-06-14: 0 commits2026-06-15: 0 commits2026-06-16: 0 commits2026-06-17: 0 commits2026-06-18: 0 commits2026-06-19: 0 commits2026-06-20: 0 commits2026-06-21: 0 commits2026-06-22: 0 commits2026-06-23: 0 commits2026-06-24: 0 commits2026-06-25: 0 commits2026-06-26: 0 commits2026-06-27: 0 commits2026-06-28: 0 commits2026-06-29: 0 commits2026-06-30: 0 commits2026-07-01: 0 commits2026-07-02: 0 commits2026-07-03: 0 commits2026-07-04: 0 commits2026-07-05: 0 commits2026-07-06: 0 commits2026-07-07: 0 commits2026-07-08: 0 commits2026-07-09: 0 commits2026-07-10: 0 commits2026-07-11: 0 commits2026-07-12: 0 commits2026-07-13: 0 commits2026-07-14: 0 commits2026-07-15: 0 commits2026-07-16: 0 commits2026-07-17: 0 commits2026-07-18: 0 commits2026-07-19: 0 commits2026-07-20: 0 commits2026-07-21: 0 commits2026-07-22: 0 commits2026-07-23: 0 commits2026-07-24: 0 commits2026-07-25: 0 commits2026-07-26: 0 commits2026-07-27: 0 commits2026-07-28: 0 commits2026-07-29: 0 commits2026-07-30: 0 commits2026-07-31: 0 commits2026-08-01: 0 commits2026-08-02: 0 commits2026-08-03: 0 commits2026-08-04: 0 commits2026-08-05: 0 commits2026-08-06: 0 commits2026-08-07: 0 commits2026-08-08: 0 commits2026-08-09: 0 commits2026-08-10: 0 commits2026-08-11: 0 commits2026-08-12: 0 commits2026-08-13: 0 commits2026-08-14: 0 commits2026-08-15: 0 commits2026-08-16: 0 commits2026-08-17: 0 commits2026-08-18: 0 commits2026-08-19: 0 commits2026-08-20: 0 commits2026-08-21: 0 commits2026-08-22: 0 commits2026-08-23: 0 commits2026-08-24: 0 commits2026-08-25: 0 commits2026-08-26: 0 commits2026-08-27: 0 commits2026-08-28: 0 commits2026-08-29: 0 commits2026-08-30: 0 commits2026-08-31: 0 commits2026-09-01: 0 commits2026-09-02: 0 commits2026-09-03: 0 commits2026-09-04: 0 commits2026-09-05: 0 commits2026-09-06: 0 commits2026-09-07: 0 commits2026-09-08: 0 commits2026-09-09: 0 commits2026-09-10: 0 commits2026-09-11: 0 commits2026-09-12: 0 commits2026-09-13: 0 commits2026-09-14: 0 commits2026-09-15: 0 commits2026-09-16: 0 commits2026-09-17: 0 commits2026-09-18: 0 commits2026-09-19: 0 commits2026-09-20: 0 commits2026-09-21: 0 commits2026-09-22: 0 commits2026-09-23: 0 commits2026-09-24: 0 commits2026-09-25: 0 commits2026-09-26: 0 commits2026-09-27: 0 commits2026-09-28: 0 commits2026-09-29: 0 commits2026-09-30: 0 commits2026-10-01: 0 commits2026-10-02: 0 commits2026-10-03: 0 commits2026-10-04: 0 commits2026-10-05: 0 commits2026-10-06: 0 commits2026-10-07: 0 commits2026-10-08: 0 commits2026-10-09: 0 commits2026-10-10: 0 commits2026-10-11: 0 commits2026-10-12: 0 commits2026-10-13: 0 commits2026-10-14: 0 commits2026-10-15: 0 commits2026-10-16: 0 commits2026-10-17: 0 commits2026-10-18: 0 commits2026-10-19: 0 commits2026-10-20: 0 commits2026-10-21: 0 commits2026-10-22: 0 commits2026-10-23: 0 commits2026-10-24: 0 commits2026-10-25: 0 commits2026-10-26: 0 commits2026-10-27: 0 commits2026-10-28: 0 commits2026-10-29: 0 commits2026-10-30: 0 commits2026-10-31: 0 commits2026-11-01: 0 commits2026-11-02: 0 commits2026-11-03: 0 commits2026-11-04: 0 commits2026-11-05: 0 commits2026-11-06: 0 commits2026-11-07: 0 commits2026-11-08: 0 commits2026-11-09: 0 commits2026-11-10: 0 commits2026-11-11: 0 commits2026-11-12: 0 commits2026-11-13: 0 commits2026-11-14: 0 commits2026-11-15: 0 commits2026-11-16: 0 commits2026-11-17: 0 commits2026-11-18: 0 commits2026-11-19: 0 commits2026-11-20: 0 commits2026-11-21: 0 commits2026-11-22: 0 commits2026-11-23: 0 commits2026-11-24: 0 commits2026-11-25: 0 commits2026-11-26: 0 commits2026-11-27: 0 commits2026-11-28: 1 commit2026-11-29: 0 commits2026-11-30: 0 commits2026-12-01: 0 commits2026-12-02: 0 commits2026-12-03: 0 commits2026-12-04: 0 commits2026-12-05: 0 commits
31 commits in the last yearLessMore

Signals and awards

derived from tracked data
  • Rising fast

    +1 stars this week

  • Continuous integration

    Automated checks passing

What HIP-4-trading-bot does

This application is a Central Limit Order Book (CLOB) copy-trading tool for Polymarket. It actively polls public trade activity for a configured list of whitelisted addresses. The bot automatically sizes orders relative to the user's available balance. It also includes advanced exit management features like take-profit and trailing stop logic. The entire system is implemented in TypeScript for robust type safety and extensibility.

TypeScript developers who want to build sophisticated automated trading strategies on Polymarket. It is suitable for traders requiring advanced exit logic like trailing stops.

  • CLOB integration: The bot interfaces directly with Polymarket's Central Limit Order Book.
  • Dynamic sizing: Orders are automatically calculated and sized relative to the total available account balance.
  • Exit management: It includes sophisticated logic for implementing take-profit and trailing stop strategies.
  • Activity polling: The system continuously polls public trade data for a list of whitelisted wallet addresses.
  • Type safety: The entire application is built using TypeScript to ensure code reliability and maintainability.

Where teams use it

Automated trading

Execute trades automatically based on the activity of successful market participants.

Risk management

Protect profits automatically using the built-in trailing stop and take-profit functionality.

Portfolio scaling

Manage position sizes dynamically as the total account balance grows or shrinks.

Strategy development

Use the typed codebase as a foundation for building custom trading algorithms.

Getting started: npm ci

README

main branch

HIP-4 Outcome Trading Bot (Rust template)

A latency-first starter bot for HIP-4 outcome markets on Hyperliquid, the prediction markets traded on outcome.xyz. Use it as a base for your own strategies. Venue, execution, risk and strategy code live in separate layers, and every trading parameter is set in .env.

Out of the box it can:

Mode What it does
markets List live outcome markets that match your filters (venue, type, underlying, ...)
watch Stream the selected market's top of book, with exchange-to-local lag
account Show balances (USDC and +<enc> outcome tokens) and open orders
buy / sell Send one order: market (IOC + slippage) or limit (Gtc / Ioc / Alo)
cancel Cancel open orders on the selected market, or on every outcome market
strategy Event-driven threshold strategy (entry, take-profit, stop-loss, pre-expiry exit) that rolls to the next market automatically

⚠️ Trading is risky and this is a template, not financial advice. Start with DRY_RUN=true, then test on HL_NETWORK=testnet, then go live with small sizes.


How HIP-4 maps to the code

The official asset-id encoding is implemented in venue/meta.rs:

encoding = 10 * outcome + side          side 0 = YES, side 1 = NO
coin     = "#<encoding>"                 l2Book / bbo / orders        e.g. #464730
token    = "+<encoding>"                 spot balances                e.g. +464730
asset    = 100_000_000 + encoding        order "a" field              e.g. 100464730
  • Markets come from POST /info {"type":"outcomeMeta"}. outcome.xyz's markets have "venue":"out". Native recurring markets (BTC/ETH/SOL/HYPE daily) have no venue. Recurring markets get a new outcome id every instance, so by default the bot selects by filter at runtime and doesn't hard-code an id.
  • Orders use the standard Hyperliquid order action: L1-signed with EIP-712 Agent, priced as a probability, with whole-share sizes and a $10 minimum value.
  • Selling requires holding the side token. To bet against an outcome, buy its NO side (OUTCOME_SIDE=no).
  • Settlement is automatic. When a market expires, the bot leaves it and, with AUTO_ROLL=true, picks the next match.

How a trade flows

 WS bbo feed ──► watch<Book> (latest only) ──► Engine wakes on every top-of-book change
                                                   │
                         Strategy::on_book(ctx) ───┘──► Intent { side, size, price, reason }
                                                   │
 Executor:  price (ask+slippage / limit) ─► round (5 sig figs) ─► size (floor) ─► RiskManager.check
                                                   │
            msgpack ─► keccak ─► EIP-712 ─► secp256k1      (pure CPU, ~0.1 ms)
                                                   │
            ws "post" on a pre-warmed socket ──(fail)──► HTTP POST with the identical signed body
                                                   │
            statuses ─► Filled / Resting / NoFill / Rejected / Unknown ─► Report + latency breakdown

Project layout

src/
├── main.rs              wiring + modes
├── config.rs            typed .env loading + validation (all parameters)
├── types.rs             Side, OutcomeSide, Tif, Intent, Book, OrderStatus, Report, Timings
├── util.rs              clocks, UTC calendar math (no chrono)
├── signing.rs           L1 action signing (msgpack + keccak + EIP-712 + k256)
├── risk.rs              pre-trade limits + circuit breaker
├── execution.rs         intent -> price/size -> risk -> sign -> send -> parse
├── engine.rs            event-driven strategy loop, position reconcile, expiry/roll
├── strategy/
│   ├── mod.rs           Strategy trait + Ctx
│   └── threshold.rs     reference strategy
└── venue/               everything Hyperliquid-specific
    ├── meta.rs          outcomeMeta, Instrument encoding, market selection
    ├── info.rs          /info: meta, balances, open orders, l2Book
    ├── exchange.rs      /exchange: nonces, signing, transport, status parsing
    ├── wire.rs          action wire structs, float_to_wire, price/size rounding
    ├── ws.rs            ws connect + order-post transport (reconnect, ping)
    └── feed.rs          streaming top of book (bbo / l2Book)

Latency choices

Area What the template does
Market data Uses a dedicated websocket on bbo, the smallest frames. It publishes into a watch channel, so the strategy always sees the latest book and never a backlog. Consumers wake only when the top of book actually changes.
Decision loop Event-driven. It reacts to each book change immediately, with no polling interval. A signal that appears during the cooldown fires the moment the cooldown ends.
No I/O on the loop The only network call on the strategy loop is the order. Position reconciliation runs in a background task, so a slow /info call can never delay a stop-loss.
Logging Log lines go to a background writer thread (tracing-appender), and nothing is logged between the decision and the send.
Order transport Orders go out as {"method":"post"} on a separate, pre-warmed websocket: one frame on an open TCP connection, never stuck behind market data.
Safe fallback If the websocket fails or times out, the same signed body is re-sent over HTTP. Hyperliquid rejects a reused nonce, so a fallback can never double-execute.
Signing Constants (domain separator, type hash, source hash) are computed once at startup. Each order costs one msgpack encode, two keccaks and one ECDSA sign, with no ethers/alloy dependency.
Sockets Both use TCP_NODELAY. HTTP uses a keep-alive pool with HTTP/2 pings. Websockets ping every 15 s and reconnect with backoff.
Hot path Config is parsed once, metadata is fetched only at startup and on roll, and the exchange calls nothing else while trading.
Staleness guards When the feed disconnects it publishes None, so the strategy can't trade on a frozen book. FEED_STALE_MS and optionally ORDER_EXPIRES_AFTER_MS (expiresAfter) also stop decisions that arrive late.
Build lto = "fat", codegen-units = 1, panic = "abort".
Observability Every order logs book_age / build+sign / send / total. BOT_MODE=watch shows feed lag.

For production, run on a VPS close to Hyperliquid's API servers (Tokyo, AWS ap-northeast-1, is the usual choice) and keep the clock NTP-synced.

Setup

cp .env.example .env        # then edit
cargo build --release
./target/release/hip4-bot   # mode comes from BOT_MODE in .env

Any setting can be overridden for one run: BOT_MODE=watch ./target/release/hip4-bot.

Build requirements: Rust 1.82 or newer. ring (TLS crypto) needs a C compiler:

  • Linux: build-essential (apt install build-essential pkg-config)
  • Windows: the MSVC toolchain (Visual Studio Build Tools, "Desktop development with C++") with rustup default stable-msvc. The GNU toolchain also needs a full MinGW-w64 (gcc + binutils) on PATH.

Recommended first run

  1. BOT_MODE=markets lists live markets. Adjust MARKET_VENUE / MARKET_CLASS / MARKET_UNDERLYING, or pin OUTCOME_ID.
  2. BOT_MODE=watch checks that the book streams and shows your lag.
  3. BOT_MODE=account with HL_ACCOUNT_ADDRESS checks balances.
  4. BOT_MODE=buy with DRY_RUN=true shows the exact order, signature timings and a simulated fill.
  5. Switch to HL_NETWORK=testnet with a funded testnet account and DRY_RUN=false.
  6. Go live with small sizes.

Keys

Use an API wallet (app.hyperliquid.xyz → API). It can trade but not withdraw. Set its key as HL_PRIVATE_KEY and your main address as HL_ACCOUNT_ADDRESS. Balances and orders belong to the main account, and the bot reads positions from it. Use one API wallet per running bot process, because nonces are tracked per signer.

Writing a strategy

Implement the trait in src/strategy/your_strategy.rs:

pub trait Strategy: Send {
    fn name(&self) -> &'static str;
    fn on_book(&mut self, ctx: &Ctx) -> Option<Intent>;     // book, position, instrument, time to expiry
    fn on_report(&mut self, _report: &Report) {}             // fills / rejections
    fn on_new_market(&mut self, _instrument: &Instrument) {} // after a roll
}

Return an Intent:

Intent {
    side: Side::Buy,
    size: SizeSpec::Notional(12.0),              // or Shares(n) / All
    price: PriceSpec::Market { slippage: 0.02 }, // or Limit { price, tif }
    reason: "my_signal",
}

Then select it in build_strategy() in main.rs. Strategies never touch signing, rounding or the network, so they can be unit-tested with a hand-built Book (see strategy/threshold.rs).

Parameters

Every parameter is documented inline in .env.example. The groups:

  • Mode / safety: BOT_MODE, DRY_RUN
  • Network: HL_NETWORK, HL_API_URL, HL_WS_URL, HTTP_TIMEOUT_MS
  • Account: HL_PRIVATE_KEY, HL_ACCOUNT_ADDRESS, HL_VAULT_ADDRESS
  • Market: OUTCOME_ID, OUTCOME_SIDE, MARKET_VENUE, MARKET_CLASS, MARKET_UNDERLYING, MARKET_PERIOD, MARKET_SEARCH, MIN_TIME_TO_EXPIRY_SECS, AUTO_ROLL
  • Orders: ORDER_TYPE, ORDER_SIZE_USD, ORDER_SHARES, SELL_SHARES, LIMIT_PRICE, TIME_IN_FORCE, SLIPPAGE, SZ_DECIMALS, PRICE_TICK, CANCEL_SCOPE, BUILDER_ADDRESS, BUILDER_FEE_TENTHS_BP
  • Latency: ORDER_TRANSPORT, WS_POST_TIMEOUT_MS, ORDER_EXPIRES_AFTER_MS, FEED_CHANNEL, WS_PING_INTERVAL_MS, FEED_STALE_MS
  • Strategy: ENTRY_PRICE, TAKE_PROFIT_PRICE, STOP_LOSS_PRICE, EXIT_BEFORE_EXPIRY_SECS, MIN_ENTRY_TIME_TO_EXPIRY_SECS, MAX_ENTRIES_PER_MARKET, MIN_POSITION_SHARES, COOLDOWN_MS, POSITION_REFRESH_MS
  • Risk: MAX_ORDER_USD, MAX_POSITION_USD, MIN_ORDER_USD, MAX_BUY_PRICE, MIN_SELL_PRICE, MAX_TRADES_PER_DAY, MAX_CONSECUTIVE_FAILURES

Risk notes:

  • Buys are checked against size, price, position and daily-trade caps.
  • Sells are only checked against MIN_SELL_PRICE and your holdings, so an entry rule can never block a stop-loss or take-profit.
  • An IOC order that finds no liquidity doesn't count as a failure. Rejections and unanswered orders do, and trip the circuit breaker.
  • If an order gets no answer (a timeout or a dropped connection), it may still have executed. The report says UNKNOWN, and the bot re-reads the position immediately. It places no new orders until that read confirms the holding, so it can't double-buy.

Tests

cargo test

The signing tests use the official vectors from hyperliquid-python-sdk (tests/signing_test.py): mainnet, testnet, vault, cloid, and the raw connection-id hash. Any change that breaks msgpack field order or number formatting fails them right away. There are also tests for wire formatting and price rounding, outcomeMeta parsing (including real mainnet shapes), market selection and roll, risk limits, the circuit breaker, websocket frame parsing, exchange status parsing and the strategy's decisions.

Known limits

  • HIP-4 is new and its documentation is still moving. Tick size, minimum value and fees are taken from the docs and live books as of 2026-11. PRICE_TICK and MIN_ORDER_USD let you adjust without a rebuild.
  • The dry-run fill model only crosses the top level, so it's conservative.
  • Split / merge / negate (userOutcome) actions aren't wired yet. The signer already handles any L1 action, so adding one is a small struct in venue/wire.rs.
View on GitHub

Recent activity

commits and pull requests

Code frequency

additions and deletions
+7.3K-7.3KWeek of 2025-12-07: +6,485 linesWeek of 2025-12-07: -5,360 linesWeek of 2025-12-14: +9 linesWeek of 2025-12-14: -9 linesWeek of 2025-12-21: +1,783 linesWeek of 2025-12-21: -1,015 linesWeek of 2025-12-28: +0 linesWeek of 2025-12-28: -0 linesWeek of 2026-01-04: +1,755 linesWeek of 2026-01-04: -948 linesWeek of 2026-01-11: +169 linesWeek of 2026-01-11: -553 linesWeek of 2026-01-18: +302 linesWeek of 2026-01-18: -10 linesWeek of 2026-01-25: +0 linesWeek of 2026-01-25: -0 linesWeek of 2026-02-01: +0 linesWeek of 2026-02-01: -0 linesWeek of 2026-02-08: +0 linesWeek of 2026-02-08: -0 linesWeek of 2026-02-15: +0 linesWeek of 2026-02-15: -0 linesWeek of 2026-02-22: +0 linesWeek of 2026-02-22: -0 linesWeek of 2026-03-01: +0 linesWeek of 2026-03-01: -0 linesWeek of 2026-03-08: +0 linesWeek of 2026-03-08: -0 linesWeek of 2026-03-15: +0 linesWeek of 2026-03-15: -0 linesWeek of 2026-03-22: +0 linesWeek of 2026-03-22: -0 linesWeek of 2026-03-29: +0 linesWeek of 2026-03-29: -0 linesWeek of 2026-04-05: +0 linesWeek of 2026-04-05: -0 linesWeek of 2026-04-12: +0 linesWeek of 2026-04-12: -0 linesWeek of 2026-04-19: +95 linesWeek of 2026-04-19: -786 linesWeek of 2026-04-26: +0 linesWeek of 2026-04-26: -0 linesWeek of 2026-05-03: +0 linesWeek of 2026-05-03: -0 linesWeek of 2026-05-10: +0 linesWeek of 2026-05-10: -0 linesWeek of 2026-05-17: +0 linesWeek of 2026-05-17: -0 linesWeek of 2026-05-24: +0 linesWeek of 2026-05-24: -0 linesWeek of 2026-05-31: +0 linesWeek of 2026-05-31: -0 linesWeek of 2026-06-07: +0 linesWeek of 2026-06-07: -0 linesWeek of 2026-06-14: +0 linesWeek of 2026-06-14: -0 linesWeek of 2026-06-21: +0 linesWeek of 2026-06-21: -0 linesWeek of 2026-06-28: +0 linesWeek of 2026-06-28: -0 linesWeek of 2026-07-05: +0 linesWeek of 2026-07-05: -0 linesWeek of 2026-07-12: +0 linesWeek of 2026-07-12: -0 linesWeek of 2026-07-19: +0 linesWeek of 2026-07-19: -0 linesWeek of 2026-07-26: +0 linesWeek of 2026-07-26: -0 linesWeek of 2026-08-02: +0 linesWeek of 2026-08-02: -0 linesWeek of 2026-08-09: +0 linesWeek of 2026-08-09: -0 linesWeek of 2026-08-16: +0 linesWeek of 2026-08-16: -0 linesWeek of 2026-08-23: +0 linesWeek of 2026-08-23: -0 linesWeek of 2026-08-30: +0 linesWeek of 2026-08-30: -0 linesWeek of 2026-09-06: +0 linesWeek of 2026-09-06: -0 linesWeek of 2026-09-13: +0 linesWeek of 2026-09-13: -0 linesWeek of 2026-09-20: +0 linesWeek of 2026-09-20: -0 linesWeek of 2026-09-27: +0 linesWeek of 2026-09-27: -0 linesWeek of 2026-10-04: +0 linesWeek of 2026-10-04: -0 linesWeek of 2026-10-11: +0 linesWeek of 2026-10-11: -0 linesWeek of 2026-10-18: +0 linesWeek of 2026-10-18: -0 linesWeek of 2026-10-25: +0 linesWeek of 2026-10-25: -0 linesWeek of 2026-11-01: +0 linesWeek of 2026-11-01: -0 linesWeek of 2026-11-08: +0 linesWeek of 2026-11-08: -0 linesWeek of 2026-11-15: +0 linesWeek of 2026-11-15: -0 linesWeek of 2026-11-22: +5,968 linesWeek of 2026-11-22: -7,256 linesWeek of 2026-11-29: +0 linesWeek of 2026-11-29: -0 linesDec 7, 2025Nov 29, 2026
+16.6K lines added, -15.9K removed over the last year.

Commits per week

last 52 weeks
120Week of 2025-12-07: 12 commitsWeek of 2025-12-14: 5 commitsWeek of 2025-12-21: 3 commitsWeek of 2025-12-28: 0 commitsWeek of 2026-01-04: 2 commitsWeek of 2026-01-11: 2 commitsWeek of 2026-01-18: 5 commitsWeek of 2026-01-25: 0 commitsWeek of 2026-02-01: 0 commitsWeek of 2026-02-08: 0 commitsWeek of 2026-02-15: 0 commitsWeek of 2026-02-22: 0 commitsWeek of 2026-03-01: 0 commitsWeek of 2026-03-08: 0 commitsWeek of 2026-03-15: 0 commitsWeek of 2026-03-22: 0 commitsWeek of 2026-03-29: 0 commitsWeek of 2026-04-05: 0 commitsWeek of 2026-04-12: 0 commitsWeek of 2026-04-19: 1 commitsWeek of 2026-04-26: 0 commitsWeek of 2026-05-03: 0 commitsWeek of 2026-05-10: 0 commitsWeek of 2026-05-17: 0 commitsWeek of 2026-05-24: 0 commitsWeek of 2026-05-31: 0 commitsWeek of 2026-06-07: 0 commitsWeek of 2026-06-14: 0 commitsWeek of 2026-06-21: 0 commitsWeek of 2026-06-28: 0 commitsWeek of 2026-07-05: 0 commitsWeek of 2026-07-12: 0 commitsWeek of 2026-07-19: 0 commitsWeek of 2026-07-26: 0 commitsWeek of 2026-08-02: 0 commitsWeek of 2026-08-09: 0 commitsWeek of 2026-08-16: 0 commitsWeek of 2026-08-23: 0 commitsWeek of 2026-08-30: 0 commitsWeek of 2026-09-06: 0 commitsWeek of 2026-09-13: 0 commitsWeek of 2026-09-20: 0 commitsWeek of 2026-09-27: 0 commitsWeek of 2026-10-04: 0 commitsWeek of 2026-10-11: 0 commitsWeek of 2026-10-18: 0 commitsWeek of 2026-10-25: 0 commitsWeek of 2026-11-01: 0 commitsWeek of 2026-11-08: 0 commitsWeek of 2026-11-15: 0 commitsWeek of 2026-11-22: 1 commitsWeek of 2026-11-29: 0 commitsDec 7, 2025Nov 29, 2026
31 commits in the last 52 weeks.

When work happens

weekday and hour
SunMonTueWedThuFriSat036912151821Sun 0:00 — 0 commitsSun 1:00 — 0 commitsSun 2:00 — 0 commitsSun 3:00 — 0 commitsSun 4:00 — 0 commitsSun 5:00 — 0 commitsSun 6:00 — 0 commitsSun 7:00 — 1 commitsSun 8:00 — 0 commitsSun 9:00 — 0 commitsSun 10:00 — 0 commitsSun 11:00 — 0 commitsSun 12:00 — 0 commitsSun 13:00 — 0 commitsSun 14:00 — 0 commitsSun 15:00 — 1 commitsSun 16:00 — 0 commitsSun 17:00 — 0 commitsSun 18:00 — 0 commitsSun 19:00 — 0 commitsSun 20:00 — 0 commitsSun 21:00 — 0 commitsSun 22:00 — 0 commitsSun 23:00 — 0 commitsMon 0:00 — 0 commitsMon 1:00 — 0 commitsMon 2:00 — 0 commitsMon 3:00 — 0 commitsMon 4:00 — 2 commitsMon 5:00 — 0 commitsMon 6:00 — 0 commitsMon 7:00 — 0 commitsMon 8:00 — 0 commitsMon 9:00 — 1 commitsMon 10:00 — 2 commitsMon 11:00 — 0 commitsMon 12:00 — 0 commitsMon 13:00 — 0 commitsMon 14:00 — 0 commitsMon 15:00 — 0 commitsMon 16:00 — 0 commitsMon 17:00 — 0 commitsMon 18:00 — 0 commitsMon 19:00 — 0 commitsMon 20:00 — 0 commitsMon 21:00 — 0 commitsMon 22:00 — 0 commitsMon 23:00 — 2 commitsTue 0:00 — 0 commitsTue 1:00 — 0 commitsTue 2:00 — 0 commitsTue 3:00 — 0 commitsTue 4:00 — 0 commitsTue 5:00 — 0 commitsTue 6:00 — 0 commitsTue 7:00 — 0 commitsTue 8:00 — 0 commitsTue 9:00 — 0 commitsTue 10:00 — 0 commitsTue 11:00 — 0 commitsTue 12:00 — 0 commitsTue 13:00 — 0 commitsTue 14:00 — 0 commitsTue 15:00 — 0 commitsTue 16:00 — 0 commitsTue 17:00 — 0 commitsTue 18:00 — 0 commitsTue 19:00 — 0 commitsTue 20:00 — 0 commitsTue 21:00 — 0 commitsTue 22:00 — 1 commitsTue 23:00 — 0 commitsWed 0:00 — 0 commitsWed 1:00 — 0 commitsWed 2:00 — 0 commitsWed 3:00 — 0 commitsWed 4:00 — 0 commitsWed 5:00 — 0 commitsWed 6:00 — 0 commitsWed 7:00 — 0 commitsWed 8:00 — 0 commitsWed 9:00 — 1 commitsWed 10:00 — 0 commitsWed 11:00 — 0 commitsWed 12:00 — 1 commitsWed 13:00 — 1 commitsWed 14:00 — 0 commitsWed 15:00 — 0 commitsWed 16:00 — 2 commitsWed 17:00 — 1 commitsWed 18:00 — 0 commitsWed 19:00 — 0 commitsWed 20:00 — 0 commitsWed 21:00 — 0 commitsWed 22:00 — 0 commitsWed 23:00 — 0 commitsThu 0:00 — 0 commitsThu 1:00 — 0 commitsThu 2:00 — 0 commitsThu 3:00 — 0 commitsThu 4:00 — 0 commitsThu 5:00 — 0 commitsThu 6:00 — 0 commitsThu 7:00 — 1 commitsThu 8:00 — 0 commitsThu 9:00 — 0 commitsThu 10:00 — 0 commitsThu 11:00 — 0 commitsThu 12:00 — 0 commitsThu 13:00 — 0 commitsThu 14:00 — 0 commitsThu 15:00 — 0 commitsThu 16:00 — 0 commitsThu 17:00 — 0 commitsThu 18:00 — 0 commitsThu 19:00 — 0 commitsThu 20:00 — 0 commitsThu 21:00 — 0 commitsThu 22:00 — 0 commitsThu 23:00 — 10 commitsFri 0:00 — 0 commitsFri 1:00 — 0 commitsFri 2:00 — 0 commitsFri 3:00 — 0 commitsFri 4:00 — 1 commitsFri 5:00 — 0 commitsFri 6:00 — 0 commitsFri 7:00 — 0 commitsFri 8:00 — 0 commitsFri 9:00 — 0 commitsFri 10:00 — 0 commitsFri 11:00 — 0 commitsFri 12:00 — 0 commitsFri 13:00 — 0 commitsFri 14:00 — 0 commitsFri 15:00 — 0 commitsFri 16:00 — 0 commitsFri 17:00 — 0 commitsFri 18:00 — 0 commitsFri 19:00 — 0 commitsFri 20:00 — 1 commitsFri 21:00 — 0 commitsFri 22:00 — 0 commitsFri 23:00 — 0 commitsSat 0:00 — 3 commitsSat 1:00 — 0 commitsSat 2:00 — 0 commitsSat 3:00 — 0 commitsSat 4:00 — 0 commitsSat 5:00 — 0 commitsSat 6:00 — 0 commitsSat 7:00 — 1 commitsSat 8:00 — 0 commitsSat 9:00 — 0 commitsSat 10:00 — 0 commitsSat 11:00 — 0 commitsSat 12:00 — 0 commitsSat 13:00 — 0 commitsSat 14:00 — 0 commitsSat 15:00 — 0 commitsSat 16:00 — 0 commitsSat 17:00 — 0 commitsSat 18:00 — 1 commitsSat 19:00 — 0 commitsSat 20:00 — 0 commitsSat 21:00 — 0 commitsSat 22:00 — 0 commitsSat 23:00 — 0 commits
Commit volume by weekday and hour (UTC). Larger dots mean more commits.
DateListRankStars gained
Jan 20, 2026daily#18+178
  • morluto/rea

    Reverse engineer anything with agents, from app behavior down to native binaries.

    486.9K stars · TypeScript

  • n8n-io/n8n

    Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

    212.8K stars · TypeScript

  • microsoft/vscode

    Visual Studio Code

    196K stars · TypeScript

  • ultraworkers/claw-code

    An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

    194.7K stars · Rust

  • f/prompts.chat

    f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

    179.1K stars · MDX

  • farion1231/cc-switch

    A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

    158.7K stars · Rust