- ago
Every since the last schwab update i have been getting the below error message:

4/11/2025 09:00:03:048
Schwab
Schwab Broker: Exception Placing OCO Pair: Error converting value "Plain MARKET order may not be part of OCO group" to type 'WealthLab.Schwab.SchwabErrorsDetails'. Path 'errors[0]', line 1, position 93.
JsonSerializationException
Error converting value "Plain MARKET order may not be part of OCO group" to type 'WealthLab.Schwab.SchwabErrorsDetails'. Path 'errors[0]', line 1, position 93. Inner Exception: Could not cast or convert from System.String to WealthLab.Schwab.SchwabErrorsDetails.
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonSerializer.Deserialize(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
at WealthLab.Schwab.SchwabBroker.PlaceOcoTradePair(Transaction t1, Transaction t2)
0
70
Solved
2 Replies

Reply

Bookmark

Sort
Glitch8
 ( 6.76% )
- ago
#1
Thanks, it doesn't look like this should impact auto-trading, but I believe I have it resolved for the next WL8 update.
0
Best Answer
Cone8
 ( 2.88% )
- ago
#2
Although Glitch has got this in Build 119 (it isn't a Schwab provider issue), this must be happening due to market volatility or you're putting on very tight bracket order. One of your OCO orders is getting converted to Market.
0

Reply

Bookmark

Sort