Closed bebosudo closed 6 years ago
I'll add the final fixes today - thanks for the work you've done!
Replace Decimal with str in JSON parser
I'm working on that.
From #129:
I'll implement the received_at attributes inside FormattedResponse, using str as parser.
I'm also working on that ;-) I'm a bit busy with study ATM.
In the next days I'll try adding a couple more commits to solve this.
@bebosudo , sorry, I already added those! But have a look at the implementation, I've altered it slightly (namedtuple is now simply instantiated on the fly, and the formatting methods are no longer properties)
Implementation of formatters (issue #129) using containment and delegation instead of inheritance. The key is in the
__getattr__
method of the AbstractFormattedResponse (bitex/formatters/base.py
).Usage example: