Open AndrewBarba opened 6 years ago
Hi @AndrewBarba,
Thanks for the report. It seems to be an issue with the deserialization. Looking at the code though, it seems like that property is there:
https://github.com/lookfirst/bittrex-typescript/blob/master/src/model/OrderData.ts#L15
I am at a bit of a loss myself!
Yeah really strange, I've never used a mapper like this before. This line confused me:
@JsonProperty('OrderType', undefined, true)
That undefined
seems strange, I feel like it should be String
, but I don't really know...
The mappers save a lot of typing for populating models with raw json data. They also help in catching errors like this. If bittrex changes their api randomly, you want your code to fail fast and with an error.
You are probably correct. Looks like a copy/paste error. Can you edit the code in your node_modules folder and try it as String? If that works, submit a PR and I'll merge it straight in.
Seeing this error when listing certain markets:
Any ideas? The response looks totally normal, every
OrderType
is eitherLIMIT_BUY
orLIMIT_SELL