Skip to content
Prev Previous commit
Next Next commit
fix: lint issue
  • Loading branch information
vivekascoder committed Oct 31, 2025
commit 0b19c331d951489655d129452c0ce894b2c7bad0
5 changes: 3 additions & 2 deletions examples/basic_tpsl.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
from ast import List

import example_utils

from hyperliquid.utils import constants
from hyperliquid.utils.signing import OrderRequest

Expand All @@ -19,7 +20,7 @@ def main():
tp = px * 1.05 # take profit at +4%
Comment thread
vivekascoder marked this conversation as resolved.
Outdated
sl = px * 0.95 # stop loss at -4%

orders: List[OrderRequest] = [
orders: list[OrderRequest] = [
Comment thread
vivekascoder marked this conversation as resolved.
Outdated
{
"coin": market,
"is_buy": position_is_long,
Expand Down
2 changes: 1 addition & 1 deletion hyperliquid/exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def bulk_orders(

if builder:
builder["b"] = builder["b"].lower()
order_action = order_wires_to_order_action(order_wires, builder)
order_action = order_wires_to_order_action(order_wires, builder, grouping)

signature = sign_l1_action(
self.wallet,
Expand Down
Loading