cURL
curl --request POST \ --url https://api.example.com/api/v1/trading/orders/{order_id}/sync
{ "message": "<string>", "previous_status": "<string>", "current_status": "<string>", "changed": true }
Sync a specific order’s status from Polymarket
result = client.sync_order(order_id="ord_abc123")
from polyhush import PolyhushClient client = PolyhushClient(api_key="your-api-key") result = client.sync_order(order_id="ord_abc123") if result['changed']: print(f"Status updated: {result['previous_status']} → {result['current_status']}") else: print(f"Status unchanged: {result['current_status']}")
{ "message": "Order synced successfully", "previous_status": "PLACED", "current_status": "FILLED", "changed": true }
sync_order()