Closed
Description
Also refer #508
Many exchanges support specifying a limit for number of trades. Currently however - neither GetHistoricalTradesAsync/GetRecentTradesAsync accept int? limit = null as an argument.
As a result, in Sharp - limit is hard coded on many exchanges. Bitfinex is just one example...
Bitfinex however supports a limit of 10000 https://docs.bitfinex.com/reference#rest-public-trades
On my side:
- I've added int? limit as a parameter to GetHistoricalTradesAsync & GetRecentTradesAsync (this impacts many files)
- I added/fixed GetRecentTradesAsync on multiple exchanges (Binance, HitBTC, Bitfinex and numerous others)
- For GetRecentTradesAsync , the sort order will be Descending (ie newest trades first)
Here's a link here to a zip file with updated source files...
ExchangeSharp_Code_Changes_2020_01_20.zip
http://k00.fr/gzceuhp4 | password: 907394
Metadata
Metadata
Assignees
Labels
No labels