hypertrader 0.1.4__tar.gz → 0.1.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hypertrader-0.1.4 → hypertrader-0.1.5}/PKG-INFO +1 -1
- {hypertrader-0.1.4 → hypertrader-0.1.5}/hypertrader.egg-info/PKG-INFO +1 -1
- {hypertrader-0.1.4 → hypertrader-0.1.5}/modes/position_management.py +14 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/setup.py +1 -1
- {hypertrader-0.1.4 → hypertrader-0.1.5}/README.md +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/hypertrader.egg-info/SOURCES.txt +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/hypertrader.egg-info/dependency_links.txt +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/hypertrader.egg-info/entry_points.txt +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/hypertrader.egg-info/requires.txt +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/hypertrader.egg-info/top_level.txt +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/hypertrader.py +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/modes/auto_trader.py +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/modes/market_maker.py +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/modes/position_watcher.py +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/modes/trailing_stop.py +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/setup.cfg +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/utils/constants.py +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/utils/helpers.py +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/utils/style.py +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/utils/timer.py +0 -0
- {hypertrader-0.1.4 → hypertrader-0.1.5}/utils/worker.py +0 -0
|
@@ -1213,6 +1213,8 @@ async def monitor_bracket_position(
|
|
|
1213
1213
|
favorable_extreme: Optional[float] = None
|
|
1214
1214
|
tp_zone_seen = False
|
|
1215
1215
|
tp_remainder_close_in_progress = False
|
|
1216
|
+
tp_remainder_baseline_abs = abs(managed_signed_size)
|
|
1217
|
+
tp_remainder_fill_confirmed = False
|
|
1216
1218
|
|
|
1217
1219
|
try:
|
|
1218
1220
|
while True:
|
|
@@ -1284,6 +1286,8 @@ async def monitor_bracket_position(
|
|
|
1284
1286
|
hidden_tp_oids.clear()
|
|
1285
1287
|
tp_level_to_oid = build_tp_level_to_oid_map(tp_orders, tp_oids)
|
|
1286
1288
|
tp_remainder_close_in_progress = False
|
|
1289
|
+
tp_remainder_baseline_abs = live_pos_abs
|
|
1290
|
+
tp_remainder_fill_confirmed = False
|
|
1287
1291
|
if hide_orders:
|
|
1288
1292
|
local_stop_px, stop_source = resolve_stop_loss_trigger_px(
|
|
1289
1293
|
side,
|
|
@@ -1295,6 +1299,9 @@ async def monitor_bracket_position(
|
|
|
1295
1299
|
managed_signed_size = live_signed_size
|
|
1296
1300
|
entry_px = live_entry_px
|
|
1297
1301
|
|
|
1302
|
+
if live_pos_abs + PRICE_EPS < tp_remainder_baseline_abs:
|
|
1303
|
+
tp_remainder_fill_confirmed = True
|
|
1304
|
+
|
|
1298
1305
|
if dynamic_auto_sar_stop_enabled:
|
|
1299
1306
|
try:
|
|
1300
1307
|
updated_sar_stop_px, latest_sar_px, latest_sar_close_px, sar_flip_exit = await compute_auto_sar_stop_state(
|
|
@@ -1495,6 +1502,13 @@ async def monitor_bracket_position(
|
|
|
1495
1502
|
tp_levels_exhausted = len(open_tp_orders) == 0 and not trailing_tp_armed
|
|
1496
1503
|
|
|
1497
1504
|
if tp_levels_exhausted and not tp_remainder_close_in_progress:
|
|
1505
|
+
if not tp_remainder_fill_confirmed:
|
|
1506
|
+
print(
|
|
1507
|
+
f"[TP-REMAINDER-WARN] {coin} TP ladder is absent but no TP fill was confirmed "
|
|
1508
|
+
f"(live_abs={live_pos_abs:.8f}, baseline_abs={tp_remainder_baseline_abs:.8f}). "
|
|
1509
|
+
"Leaving the position open."
|
|
1510
|
+
)
|
|
1511
|
+
continue
|
|
1498
1512
|
tp_remainder_close_in_progress = True
|
|
1499
1513
|
print(
|
|
1500
1514
|
f"[TP-REMAINDER] {coin} take-profit ladder is exhausted; "
|
|
@@ -9,7 +9,7 @@ README = ROOT / "README.md"
|
|
|
9
9
|
|
|
10
10
|
setup(
|
|
11
11
|
name="hypertrader",
|
|
12
|
-
version="0.1.
|
|
12
|
+
version="0.1.5",
|
|
13
13
|
description="Async Hyperliquid trading helper built on the async SDK.",
|
|
14
14
|
long_description=README.read_text(encoding="utf-8"),
|
|
15
15
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|