diff --git a/ExchangeSharp/API/Exchanges/BL3P/ExchangeBL3PAPI.cs b/ExchangeSharp/API/Exchanges/BL3P/ExchangeBL3PAPI.cs index f5af8583..36129e35 100644 --- a/ExchangeSharp/API/Exchanges/BL3P/ExchangeBL3PAPI.cs +++ b/ExchangeSharp/API/Exchanges/BL3P/ExchangeBL3PAPI.cs @@ -2,8 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using ExchangeSharp.API.Exchanges.BL3P; -using ExchangeSharp.API.Exchanges.BL3P.Models; +using ExchangeSharp.BL3P; using Newtonsoft.Json; using Newtonsoft.Json.Linq; @@ -11,7 +10,7 @@ namespace ExchangeSharp { // ReSharper disable once InconsistentNaming - public sealed class ExchangeBL3PAPI : ExchangeAPI + public sealed partial class ExchangeBL3PAPI : ExchangeAPI { public override string BaseUrl { get; set; } = "https://api.bl3p.eu/"; diff --git a/ExchangeSharp/API/Exchanges/BL3P/Models/BL3POrder.cs b/ExchangeSharp/API/Exchanges/BL3P/Models/BL3POrder.cs index 5febeaec..5ccacf7a 100644 --- a/ExchangeSharp/API/Exchanges/BL3P/Models/BL3POrder.cs +++ b/ExchangeSharp/API/Exchanges/BL3P/Models/BL3POrder.cs @@ -1,26 +1,29 @@ using Newtonsoft.Json; -namespace ExchangeSharp.API.Exchanges.BL3P.Models +namespace ExchangeSharp { - // ReSharper disable once InconsistentNaming - public class BL3POrder + public sealed partial class ExchangeBL3PAPI : ExchangeAPI { - [JsonProperty("price_int")] - [JsonConverter(typeof(FixedIntDecimalConverter), 5)] - public decimal Price { get; set; } + // ReSharper disable once InconsistentNaming + class BL3POrder + { + [JsonProperty("price_int")] + [JsonConverter(typeof(FixedIntDecimalConverter), 5)] + public decimal Price { get; set; } - [JsonProperty("amount_int")] - [JsonConverter(typeof(FixedIntDecimalConverter), 8)] - public decimal Amount { get; set; } + [JsonProperty("amount_int")] + [JsonConverter(typeof(FixedIntDecimalConverter), 8)] + public decimal Amount { get; set; } - public ExchangeOrderPrice ToExchangeOrder() - { - return new ExchangeOrderPrice + public ExchangeOrderPrice ToExchangeOrder() { - Amount = Amount, - Price = Price - }; + return new ExchangeOrderPrice + { + Amount = Amount, + Price = Price + }; + } } } } diff --git a/ExchangeSharp/API/Exchanges/BL3P/Models/BL3POrderBook.cs b/ExchangeSharp/API/Exchanges/BL3P/Models/BL3POrderBook.cs index 1718be61..e1cef959 100644 --- a/ExchangeSharp/API/Exchanges/BL3P/Models/BL3POrderBook.cs +++ b/ExchangeSharp/API/Exchanges/BL3P/Models/BL3POrderBook.cs @@ -1,17 +1,20 @@ using Newtonsoft.Json; -namespace ExchangeSharp.API.Exchanges.BL3P.Models +namespace ExchangeSharp { - // ReSharper disable once InconsistentNaming - public class BL3POrderBook + public sealed partial class ExchangeBL3PAPI : ExchangeAPI { - [JsonProperty("marketplace")] - public string MarketSymbol { get; set; } + // ReSharper disable once InconsistentNaming + class BL3POrderBook + { + [JsonProperty("marketplace")] + public string MarketSymbol { get; set; } - [JsonProperty("asks")] - public BL3POrder[] Asks { get; set; } + [JsonProperty("asks")] + public BL3POrder[] Asks { get; set; } - [JsonProperty("bids")] - public BL3POrder[] Bids { get; set; } + [JsonProperty("bids")] + public BL3POrder[] Bids { get; set; } + } } } diff --git a/ExchangeSharp/API/Exchanges/BL3P/MultiWebsocketWrapper.cs b/ExchangeSharp/API/Exchanges/BL3P/MultiWebsocketWrapper.cs index 717116f8..24e393eb 100644 --- a/ExchangeSharp/API/Exchanges/BL3P/MultiWebsocketWrapper.cs +++ b/ExchangeSharp/API/Exchanges/BL3P/MultiWebsocketWrapper.cs @@ -3,7 +3,7 @@ using System.Linq; using System.Threading.Tasks; -namespace ExchangeSharp.API.Exchanges.BL3P +namespace ExchangeSharp.BL3P { internal sealed class MultiWebsocketWrapper : IWebSocket {