Official C# Wrapper for the Binance exchange API, with REST and WebSocket endpoints
161
stars
140
forks
source link
BinanceExchange.API.Converter.KlineCandleSticksConverter.WriteJson System.NotImplementedException: The method or operation is not implemented #190
Open
tuncaybas opened 1 year ago
Issue Overview
When the GetKlinesCandlesticks method is called, it throws a JSON error.
Package Version: 4.12.0.0
Repro Steps
Other Information
I wanted to do a simple test.
var KlineCandleSticks = await client.GetKlinesCandlesticks(new GetKlinesCandlesticksRequest { Symbol = request.Symbol, Limit = 500, Interval = KlineInterval.FifteenMinutes });
I want to get candles with these codes, but it says that Writejson method should be written in JsonConvert implementation.
In the examples and source code, only an exception is thrown.
The Error :
Unhandled Exception: System.NotImplementedException: The method or operation is not implemented. at BinanceExchange.API.Converter.KlineCandleSticksConverter.WriteJson(JsonWriter writer, Object value, JsonSerializer serializer) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeConvertable(JsonWriter writer, JsonConverter converter, Object value, JsonContract contract, JsonContainerContract collectionContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeList(JsonWriter writer, IEnumerable values, JsonArrayContract contract, JsonProperty member, JsonContainerContract collectionContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue(JsonWriter writer, Object value, JsonContract valueContract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerProperty) at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType) at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType) at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer) at Newtonsoft.Json.JsonConvert.SerializeObject(Object value)