Skip to content

Instantly share code, notes, and snippets.

View wardamussa's full-sized avatar
🎯
Focusing

Son of Warda wardamussa

🎯
Focusing
View GitHub Profile
@wardamussa
wardamussa / gist:f24281d96432fa0970679156b573f5a7
Last active March 3, 2026 11:52
One of the challenges my client, Sergey, is currently facing is…
According to the official /swap/v2/trade/order documentation, takeProfit and stopLoss are valid optional parameters for TRIGGER_MARKET orders. My requests include these correctly formatted JSON strings, and the initial NEW status response confirms they are received.
However, we are observing critical data persistence issues:
1. SL/TP Stripping
The takeProfit and stopLoss data disappears (returns 0) once the order transitions from NEW to FILLED.
2. Trigger Linkage Failure