Skip to content

Commit

Permalink
Update request rate limit weights
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvister committed Jan 15, 2018
1 parent 7942a86 commit 93b6bf3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Binance/Extensions/BinanceHttpClientExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static Task<string> GetTradesAsync(this IBinanceHttpClient client, string
Throw.IfNull(client, nameof(client));
Throw.IfNullOrWhiteSpace(symbol, nameof(symbol));

var request = new BinanceHttpRequest("/api/v1/historicalTrades", 100)
var request = new BinanceHttpRequest("/api/v1/historicalTrades", 20)
{
ApiKey = apiKey
};
Expand Down Expand Up @@ -156,7 +156,7 @@ public static Task<string> GetAggregateTradesAsync(this IBinanceHttpClient clien
Throw.IfNull(client, nameof(client));
Throw.IfNullOrWhiteSpace(symbol, nameof(symbol));

var request = new BinanceHttpRequest("/api/v1/aggTrades");
var request = new BinanceHttpRequest("/api/v1/aggTrades", 2);

request.AddParameter("symbol", symbol.FormatSymbol());

Expand Down Expand Up @@ -203,7 +203,7 @@ public static Task<string> GetCandlesticksAsync(this IBinanceHttpClient client,
Throw.IfNull(client, nameof(client));
Throw.IfNullOrWhiteSpace(symbol, nameof(symbol));

var request = new BinanceHttpRequest("/api/v1/klines");
var request = new BinanceHttpRequest("/api/v1/klines", 2);

request.AddParameter("symbol", symbol.FormatSymbol());
request.AddParameter("interval", interval.AsString());
Expand Down Expand Up @@ -416,7 +416,7 @@ public static async Task<string> GetOrderAsync(this IBinanceHttpClient client, I
if (recvWindow <= 0)
recvWindow = client.Options.RecvWindowDefault ?? 0;

var request = new BinanceHttpRequest("/api/v3/order")
var request = new BinanceHttpRequest("/api/v3/order", 2)
{
ApiKey = user.ApiKey
};
Expand Down Expand Up @@ -545,7 +545,7 @@ public static async Task<string> GetOrdersAsync(this IBinanceHttpClient client,
if (recvWindow <= 0)
recvWindow = client.Options.RecvWindowDefault ?? 0;

var request = new BinanceHttpRequest("/api/v3/allOrders")
var request = new BinanceHttpRequest("/api/v3/allOrders", 20)
{
ApiKey = user.ApiKey
};
Expand Down Expand Up @@ -584,7 +584,7 @@ public static async Task<string> GetAccountInfoAsync(this IBinanceHttpClient cli
if (recvWindow <= 0)
recvWindow = client.Options.RecvWindowDefault ?? 0;

var request = new BinanceHttpRequest("/api/v3/account")
var request = new BinanceHttpRequest("/api/v3/account", 20)
{
ApiKey = user.ApiKey
};
Expand Down Expand Up @@ -619,7 +619,7 @@ public static async Task<string> GetAccountTradesAsync(this IBinanceHttpClient c
if (recvWindow <= 0)
recvWindow = client.Options.RecvWindowDefault ?? 0;

var request = new BinanceHttpRequest("/api/v3/myTrades")
var request = new BinanceHttpRequest("/api/v3/myTrades", 20)
{
ApiKey = user.ApiKey
};
Expand Down

0 comments on commit 93b6bf3

Please sign in to comment.