Skip to content

Commit 53cff85

Browse files
committed
fixed KuCoin capitalization
- simplified Kraken namespace
1 parent 15e005b commit 53cff85

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

ExchangeSharp/API/Exchanges/Kraken/Models/KrakenTrade.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The above copyright notice and this permission notice shall be included in all c
1616
using System.Text;
1717
using System.Threading.Tasks;
1818

19-
namespace ExchangeSharp.API.Exchanges.Kraken.Models
19+
namespace ExchangeSharp.Kraken
2020
{
2121
public class KrakenTrade : ExchangeTrade
2222
{

ExchangeSharp/API/Exchanges/Kucoin/ExchangeKucoinAPI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ The above copyright notice and this permission notice shall be included in all c
2525

2626
namespace ExchangeSharp
2727
{
28-
public sealed partial class ExchangeKucoinAPI : ExchangeAPI
28+
public sealed partial class ExchangeKuCoinAPI : ExchangeAPI
2929
{
3030
public override string BaseUrl { get; set; } = "https://openapi-v2.kucoin.com/api/v1";
3131
public override string BaseUrlWebSocket { get; set; } = "wss://push1.kucoin.com/endpoint";
3232

33-
public ExchangeKucoinAPI()
33+
public ExchangeKuCoinAPI()
3434
{
3535
RequestContentType = "application/json";
3636
NonceStyle = NonceStyle.UnixMilliseconds;

ExchangeSharp/API/Exchanges/Kucoin/Models/KucoinTrade.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ The above copyright notice and this permission notice shall be included in all c
1616
using System.Text;
1717
using System.Threading.Tasks;
1818

19-
namespace ExchangeSharp.Kucoin
19+
namespace ExchangeSharp.KuCoin
2020
{
21-
public class KucoinTrade : ExchangeTrade
21+
public class KuCoinTrade : ExchangeTrade
2222
{
2323
public byte[] MakerOrderId { get; set; } // nullable
2424
public byte[] TakerOrderId { get; set; } // nullable

ExchangeSharp/API/Exchanges/_Base/ExchangeAPIExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The above copyright notice and this permission notice shall be included in all c
1818
using ExchangeSharp.Binance;
1919
using ExchangeSharp.Bitstamp;
2020
using ExchangeSharp.Coinbase;
21-
using ExchangeSharp.Kucoin;
21+
using ExchangeSharp.KuCoin;
2222
using Newtonsoft.Json.Linq;
2323

2424
namespace ExchangeSharp
@@ -538,7 +538,7 @@ internal static ExchangeTrade ParseTradeKraken(this JToken token, object amountK
538538
internal static ExchangeTrade ParseTradeKucoin(this JToken token, object amountKey, object priceKey, object typeKey,
539539
object timestampKey, TimestampType timestampType, object idKey, string typeKeyIsBuyValue = "buy")
540540
{
541-
var trade = ParseTradeComponents<KucoinTrade>(token, amountKey, priceKey, typeKey,
541+
var trade = ParseTradeComponents<KuCoinTrade>(token, amountKey, priceKey, typeKey,
542542
timestampKey, timestampType, idKey, typeKeyIsBuyValue);
543543
trade.MakerOrderId = token["makerOrderId"].ToStringInvariant().StringToByteArray();
544544
trade.TakerOrderId = token["takerOrderId"].ToStringInvariant().StringToByteArray();

ExchangeSharpConsole/Console/ExchangeSharpConsole_ExchangeTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ string GetSymbol(IExchangeAPI api)
5050
return "BTC-LTC";
5151
}
5252
else if (api is ExchangeBinanceAPI || api is ExchangeOKExAPI ||/* api is ExchangeBleutradeAPI ||*/
53-
api is ExchangeKucoinAPI || api is ExchangeHuobiAPI || api is ExchangeAbucoinsAPI)
53+
api is ExchangeKuCoinAPI || api is ExchangeHuobiAPI || api is ExchangeAbucoinsAPI)
5454
{
5555
return "ETH-BTC";
5656
}
@@ -189,7 +189,7 @@ bool histTradeCallback(IEnumerable<ExchangeTrade> tradeEnum)
189189
catch
190190
{
191191
// These API require private access to get candles end points
192-
if (!(api is ExchangeKucoinAPI))
192+
if (!(api is ExchangeKuCoinAPI))
193193
{
194194
throw;
195195
}

0 commit comments

Comments
 (0)