Skip to content
All library documents

Repeated Offset Limit Orders for ETH Perpetual Futures

Article Strategy library · Author: zmjzzy

Summary

This script repeatedly places a limit order a chosen percentage away from the latest ETH/USDC price on Hyperliquid futures. In buy mode, it targets a price below the market; in sell mode, it targets one above. After placing the order, it waits for a set interval, checks the order status, and cancels an unfilled order before trying again. It stops when it detects a partial or complete fill.

The document provides source code and a short backtest configuration, but no reported performance or evidence that the approach is profitable. It does not define an exit, hedge, or position management plan after a fill. Repeated repricing can also leave the strategy exposed to fast market moves, and the script's handling of order lookup failures and cancellation confirmation is limited. Its example parameters are specific to the stated trading pair and venue.

Key ideas

  • The bot places a limit order at a fixed percentage offset from the latest ETH/USDC price.
  • It checks order status after a configurable wait and cancels orders that remain unfilled.
  • A partial or complete fill causes the script to stop.
  • The example provides no post-fill exit rules or reported performance results.
  • The strategy depends on reliable order status checks and cancellation handling.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.