Skip to content

Commit 987e82b

Browse files
committed
fix: fixed the position liquidation price calculation in the liquidable positions example script
1 parent a7d26e6 commit 987e82b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/chain_client/10_SearchLiquidablePositions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ async def main() -> None:
5050
should_be_liquidated = (is_long and market_mark_price <= liquidation_price) or (not is_long and market_mark_price >= liquidation_price)
5151

5252
if should_be_liquidated:
53-
print(f"Test {(Decimal(1) + maintenance_margin_ratio)} || market mantainance margin ratio: {client_market.maintenance_margin_ratio}")
5453
print(f"{'Long' if is_long else 'Short'} position for market {client_market.id} and subaccount {position['subaccountId']} should be liquidated (liquidation price: {liquidation_price.normalize()} / mark price: {market_mark_price.normalize()})")
5554
liquidable_positions.append(position)
5655

0 commit comments

Comments
 (0)