Skip to content

Commit 3c6872e

Browse files
committed
fixed OKEx and HitBTC capitalization
1 parent a778253 commit 3c6872e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

ExchangeSharp/API/Exchanges/Hitbtc/ExchangeHitbtcAPI.cs

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

2424
namespace ExchangeSharp
2525
{
26-
public sealed partial class ExchangeHitbtcAPI : ExchangeAPI
26+
public sealed partial class ExchangeHitBTCAPI : ExchangeAPI
2727
{
2828
public override string BaseUrl { get; set; } = "https://api.hitbtc.com/api/2";
2929
public override string BaseUrlWebSocket { get; set; } = "wss://api.hitbtc.com/api/2/ws";
3030

31-
public ExchangeHitbtcAPI()
31+
public ExchangeHitBTCAPI()
3232
{
3333
RequestContentType = "application/json";
3434
NonceStyle = NonceStyle.UnixMillisecondsString;
@@ -651,5 +651,5 @@ private ExchangeOrderResult ParseOpenOrder(JToken token)
651651
#endregion
652652
}
653653

654-
public partial class ExchangeName { public const string Hitbtc = "Hitbtc"; }
654+
public partial class ExchangeName { public const string HitBTC = "HitBTC"; }
655655
}

ExchangeSharp/API/Exchanges/Okex/ExchangeOkexAPI.cs renamed to ExchangeSharp/API/Exchanges/OKGroup/ExchangeOkexAPI.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The above copyright notice and this permission notice shall be included in all c
1919

2020
namespace ExchangeSharp
2121
{
22-
public sealed partial class ExchangeOkexAPI : ExchangeAPI
22+
public sealed partial class ExchangeOKExAPI : ExchangeAPI
2323
{
2424
public override string BaseUrl { get; set; } = "https://www.okex.com/api/v1";
2525
public string BaseUrlV2 { get; set; } = "https://www.okex.com/v2/spot";
@@ -31,7 +31,7 @@ public sealed partial class ExchangeOkexAPI : ExchangeAPI
3131
/// </summary>
3232
private static readonly TimeSpan chinaTimeOffset = TimeSpan.FromHours(-8);
3333

34-
public ExchangeOkexAPI()
34+
public ExchangeOKExAPI()
3535
{
3636
RequestContentType = "application/x-www-form-urlencoded";
3737
MarketSymbolSeparator = "-";
@@ -717,5 +717,5 @@ async Task sendMessageAsync(string category, IEnumerable<string> symbolsToSend)
717717
#endregion
718718
}
719719

720-
public partial class ExchangeName { public const string Okex = "Okex"; }
720+
public partial class ExchangeName { public const string OKEx = "OKEx"; }
721721
}

ExchangeSharpConsole/Console/ExchangeSharpConsole_ExchangeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ string GetSymbol(IExchangeAPI api)
4949
{
5050
return "BTC-LTC";
5151
}
52-
else if (api is ExchangeBinanceAPI || api is ExchangeOkexAPI ||/* api is ExchangeBleutradeAPI ||*/
52+
else if (api is ExchangeBinanceAPI || api is ExchangeOKExAPI ||/* api is ExchangeBleutradeAPI ||*/
5353
api is ExchangeKucoinAPI || api is ExchangeHuobiAPI || api is ExchangeAbucoinsAPI)
5454
{
5555
return "ETH-BTC";

ExchangeSharpTests/ExchangeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void GlobalSymbolTest()
6868
{
6969
try
7070
{
71-
if (api is ExchangeUfoDexAPI || api is ExchangeKrakenAPI || api is ExchangeOkexAPI)
71+
if (api is ExchangeUfoDexAPI || api is ExchangeKrakenAPI || api is ExchangeOKExAPI)
7272
{
7373
// WIP
7474
continue;

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The following cryptocurrency exchanges are supported:
3535
| KuCoin | x | x | T R |
3636
| LBank | x | x | |
3737
| Livecoin | x | x | |
38-
| OKex | x | x | R B |
38+
| OKEx | x | x | R B |
3939
| Poloniex | x | x | T R B |
4040
| TuxExchange | x | x | |
4141
| YoBit | x | x | |

0 commit comments

Comments
 (0)