diff --git a/lib/xtb_client/messages/user.ex b/lib/xtb_client/messages/user.ex index 747ddc1..cd32ed5 100644 --- a/lib/xtb_client/messages/user.ex +++ b/lib/xtb_client/messages/user.ex @@ -44,7 +44,7 @@ defmodule XtbClient.Messages.UserInfo do trailing_stop: false def new(%{"spreadType" => spread_type} = args) do - value = args |> Map.drop(["spreadType"]) |> __MODULE__.new() + value = args |> Map.drop(["spreadType"]) |> new() %{value | spread_type: spread_type || ""} end