Subscribe to PnL settlements for current account via Websockets.

Example

useSettleSubscription({
  onMessage: (data: any) => {
    const { status } = data;

    switch (status) {
      case "COMPLETED":
        // settlement completed
        break;
      case "FAILED":
        // settlement failed
        break;
      default:
        break;
    }
  }
});