Skip to content

Commit ad0b6bb

Browse files
committed
HitBTC: set RateLimit (#458)
- closes #457 (cherry picked from commit 4f9fd19)
1 parent c8fe501 commit ad0b6bb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

ExchangeSharp/API/Exchanges/Hitbtc/ExchangeHitbtcAPI.cs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ public sealed partial class ExchangeHitBTCAPI : ExchangeAPI
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()
32-
{
33-
RequestContentType = "application/json";
34-
NonceStyle = NonceStyle.UnixMillisecondsString;
35-
MarketSymbolSeparator = string.Empty;
36-
}
31+
public ExchangeHitBTCAPI()
32+
{ // https://api.hitbtc.com/
33+
RateLimit = new RateGate(100, TimeSpan.FromSeconds(1));
34+
RequestContentType = "application/json";
35+
NonceStyle = NonceStyle.UnixMillisecondsString;
36+
MarketSymbolSeparator = string.Empty;
37+
}
3738

38-
public override string PeriodSecondsToString(int seconds)
39+
public override string PeriodSecondsToString(int seconds)
3940
{
4041
switch (seconds)
4142
{

0 commit comments

Comments
 (0)