fix: Lighter stop/take-profit orders must use TimeInForce=0 (ImmediateOrCancel)

Lighter SDK validates that StopLossOrder (type=2) and TakeProfitOrder (type=4)
must have TimeInForce=0 (ImmediateOrCancel), not TimeInForce=1 (GoodTillTime).

This was causing stop-loss and take-profit orders to fail validation and not
be submitted to Lighter exchange.
This commit is contained in:
tinkle-community
2025-12-15 22:34:29 +08:00
parent 3f084005e4
commit 05c480d3f0
3 changed files with 3 additions and 2 deletions

BIN
img_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 KiB