You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, not all return value from Poloniex is a JSON object, for now, return_order_book is an exception. I make a change to these methods to return Result<T>, which delegates the choice to the user that he can decide what type the result value is. Commit.
The text was updated successfully, but these errors were encountered:
I don't think so. Since the generic API assumes the return type as a Map, so the compiler will infer T as a Map. Then everything falls back to the original Map API.
Yes but I think that a strong typed return should be the purpose of the generic API, the raw API, which is lower level, should stay close to the exchange response. Eventually, the Map container may be changed.
Actually, not all return value from Poloniex is a JSON object, for now,
return_order_book
is an exception. I make a change to these methods to returnResult<T>
, which delegates the choice to the user that he can decide what type the result value is. Commit.The text was updated successfully, but these errors were encountered: