Comments (5)
I find something interesting
protected override void WriteParamBody(IRequest request, string stringData)
{
var data = Encoding.UTF8.GetBytes(stringData);
request.ContentLength = data.Length;
request.Content = stringData;
var sw = Stopwatch.StartNew();
using (var stream = request.GetRequestStream().Result)
{
sw.Stop();
stream.WriteAsync(data, 0, data.Length).ConfigureAwait(false);
}
log.Write(LogVerbosity.Warning, $"Stream {request.Uri.AbsolutePath} {stringData} {sw.ElapsedMilliseconds}ms");
}
and received here is such logs
Stream /api/my_orders/etc_uah nonce=637067357028739376&out_order_id=847 39ms
Stream /api/my_orders/xmr_uah nonce=637067357029198343&out_order_id=878 71ms
Stream /api/balance nonce=637067357028789387&out_order_id=683 573ms
Stream /api/balance nonce=637067357029528001&out_order_id=432 604ms
Stream /api/balance nonce=637067357034435910&out_order_id=809 388ms
Stream /api/my_orders/ltc_uah nonce=637067357029978515&out_order_id=150 898ms
What could be the reason for this delay?
from cryptoexchange.net.
Hi, I'm not sure, I tried to quickly reproduce it, but couldn't. I've changed the implementation a bit in version 3.0, could you try again with that implementation?
It might have to do with starting a lot of tasks which makes the await calls slower.
from cryptoexchange.net.
Ok, I'll check it
from cryptoexchange.net.
Have you had time to see how it performs now?
from cryptoexchange.net.
I think it works pretty well now
from cryptoexchange.net.
Related Issues (20)
- When use ApiProxy we get object refrence null in CryptoExchangeWebSocketClient HOT 2
- Implement library for ig.com HOT 3
- Different parameters order of the final request URL and Uri provided for the authentification HOT 1
- Error converting IEnumerable<T> in Result.Error
- Info - CalculateAverageFillPrice by asset quote HOT 1
- Adding a new symbol to a existing subscribtion HOT 3
- unsafe access to subscriptions collection on SocketConnection.ProcessReconnectAsync HOT 2
- request for new common features - withdraw HOT 1
- CallResult Error code is null on request timed out HOT 1
- Proposal: Ability for all Error derived classes to have Code and Data HOT 1
- Remove the ArrayConverter and Cache the New Expressions instead of using Activator.CreateInstance
- It is not possible to change ratelimiters after instantiating the REST client. HOT 2
- Exception "Value cannot be null" in RestApiClient.ParseRateLimitResponse HOT 1
- Hi i'm seeing an exception even though i haven't changed anything HOT 2
- How can i set BaseAddress, BaseAddressUsdtFutures for test url's HOT 2
- Mexc wrapper? HOT 3
- Custom KeepAliveInterval to SocketOptions
- CryptoExchange.Net work with Coinbase Pro's API in the Future???
- Improvement: Add "ExchangeName" to "IRestApiClient" HOT 1
- Common interface for SocketClients
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cryptoexchange.net.