Коннектор BitStamp выдает ошибку, как лечить?
Коннектор BitStamp выдает ошибку, как лечить?
BitStamp 03.06.2017 19:35:44 +03:00 Error Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.IEnumerable`1[StockSharp.BitStamp.Native.Order]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'error', line 1, position 9.
в Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
в Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
в Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
в Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
в Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
в #=q1NcBIN88G52kgP0zUsn9cJKJWDWgw_pnmh7jh4orKkjScnGc$aZZaJEcTBVufygO.#=quZGY6lgmvbr$8MxdXdJCwA==[T](Uri #=qC6iC8a89IAE7$H9DGl1zdA==)
в StockSharp.BitStamp.BitStampMessageAdapter.#=qLnfISuW_dlF8IOsdav_jekg0XdplMvAx_LLIL20be0U=()
в StockSharp.Messages.MessageAdapter.SendInMessage(Message message)