I'm struggling to create classes enabling me to deserialize the json response to placeOrders. I would use the development teams classes from their example app (which work) but these are related to each other in intuitively convoluted ways at my skill level, and are therefore of limited value for ongoing development. A typical json response is:
[{"jsonrpc":"2.0","result":{"status":"SUCCESS","mar ketId":"1.115796712","instructionReports":[{"status":"SUCCESS","instruction":{"selectionId":8 443714,"handicap":0.0,"limitOrder":{"size":2.0,"pr ice":1.01,"persistenceType":"LAPSE"},"orderType":" LIMIT","side":"LAY"},"betId":"42088480817","placed Date":"2014-10-07T07:17:48.000Z","averagePriceMatched":0.0,"sizeM atched":0.0}]},"id":1}]
I've created classes which I thought were consistent with this response but am making mistake(s) somewhere in specifying name/value pairs, as they fail to deserialize. Has anyone created appropriate classes they would be prepared to share (ideally in Visual Basic but C# would be OK).
With regards
Mike
[{"jsonrpc":"2.0","result":{"status":"SUCCESS","mar ketId":"1.115796712","instructionReports":[{"status":"SUCCESS","instruction":{"selectionId":8 443714,"handicap":0.0,"limitOrder":{"size":2.0,"pr ice":1.01,"persistenceType":"LAPSE"},"orderType":" LIMIT","side":"LAY"},"betId":"42088480817","placed Date":"2014-10-07T07:17:48.000Z","averagePriceMatched":0.0,"sizeM atched":0.0}]},"id":1}]
I've created classes which I thought were consistent with this response but am making mistake(s) somewhere in specifying name/value pairs, as they fail to deserialize. Has anyone created appropriate classes they would be prepared to share (ideally in Visual Basic but C# would be OK).
With regards
Mike


Comment