Sync safety orders every 5 minutes
Recipe ToolsMarketingDeveloper ToolAPI IntegrationData ParserUtilities
What it does
When the clock triggers every 5 minutes, this automation fetches current time and price data, retrieves position history, and parses the response. It builds key and signature lists, loops through items to match symbols, and prepares data for safety order calculations.
Who it's for
Finance teams who monitor trading positions and need safety order data refreshed at regular intervals.
How teams use this
Monitor positions at regular intervals
Run safety order checks every 5 minutes so the team always has fresh position and price data. The automation handles all data fetching and parsing without manual steps.
Alert on symbol mismatches
Extend the automation to notify someone when a symbol from position history does not match expected symbols. Add a notification step after the symbol comparison so the team catches discrepancies right away.
Log safety order calculations
Include a logging step after percentage list creation so the team has an audit trail of all safety order calculations. This keeps a record for compliance and troubleshooting.
How it works
- Run every 5 minutes. This automation starts on a schedule every 5 minutes so safety order data stays current without manual intervention.
- Fetch time and price from Rest. Call Rest to get the current time and price data so the automation has the latest market information for safety order calculations.
- Retrieve position history from Rest. Call Rest to fetch the full position history record needed for safety order logic and symbol matching.
- Parse data and build lists. Use Json Parser to parse the position history response and build key, signature, and percentage lists. Loop through each item to match symbols and prepare data for safety order processing.