bchavez / Coinbase

:moneybag: A .NET/C# implementation of the Coinbase API.
https://developers.coinbase.com/api/v2
MIT License
170 stars 92 forks source link

GetNextPageAsync on ICoinbaseClient #71

Closed Mabiro closed 4 years ago

Mabiro commented 4 years ago

Hi, I have just started using this library and I was wondering if there was any plan to include methods like GetNextPageAsync on the ICoinbaseClient interface?

GetNextPageAsync is quite useful, but it's not something that can be used when injecting a ICoinbaseClient instead of CoinbaseClient.

Thank you for this, it's been really nice to use so far!

bchavez commented 4 years ago

Hi @Mabiro ,

Thank you for raising the issue. I don't have any plans to support .GetNextPageAsync. I think supporting such a feature would probably require managing some state inside ICoinbaseClient per request. Or possibly building infrastructure around the response object/request API to re-hydrate page state values to retrieve the next page for a given request.

If you have any sample code about how you envision this would work, feel free to continue the discussion. I'm always open to new ideas or methods that can enhance usability. However, I do have to balance maintainability as well - which turns out to be my primary concern maintaining these Coinbase APIs.

Thanks, Brian