Refine search
@Override public LedgerType deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException { ObjectCodec oc = jsonParser.getCodec(); JsonNode node = oc.readTree(jsonParser); String ledgerTypeString = node.textValue(); return fromString(ledgerTypeString); } }
@Override public BitmexTickDirection deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException { ObjectCodec oc = jsonParser.getCodec(); JsonNode node = oc.readTree(jsonParser); String tickDirectionString = node.textValue(); return fromString(tickDirectionString); } }
@Override public CoinbaseButtonStyle deserialize(JsonParser jsonParser, final DeserializationContext ctxt) throws IOException, JsonProcessingException { final ObjectCodec oc = jsonParser.getCodec(); final JsonNode node = oc.readTree(jsonParser); final String jsonString = node.textValue(); return FROM_STRING_HELPER.fromJsonString(jsonString); } }
@Override public CoinbaseTransactionStatus deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException { ObjectCodec oc = jsonParser.getCodec(); JsonNode node = oc.readTree(jsonParser); String jsonString = node.textValue(); return FROM_STRING_HELPER.fromJsonString(jsonString); } }
@Override public KrakenOrderStatus deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException { ObjectCodec oc = jsonParser.getCodec(); JsonNode node = oc.readTree(jsonParser); String orderStatusString = node.textValue(); return fromString(orderStatusString); } }
@Override public KrakenOrderType deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException { ObjectCodec oc = jsonParser.getCodec(); JsonNode node = oc.readTree(jsonParser); String orderTypeString = node.textValue(); return fromString(orderTypeString); } }
@Override public BitmexFee deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException { ObjectCodec oc = jsonParser.getCodec(); JsonNode node = oc.readTree(jsonParser); BigDecimal volume = new BigDecimal(node.path(0).asText()); BigDecimal fee = new BigDecimal(node.path(1).asText()); return new BitmexFee(volume, fee); } }
@Override public CoinbaseTransferType deserialize( JsonParser jsonParser, final DeserializationContext ctxt) throws IOException, JsonProcessingException { final ObjectCodec oc = jsonParser.getCodec(); final JsonNode node = oc.readTree(jsonParser); final String jsonString = node.textValue(); return FROM_STRING_HELPER.fromJsonString(jsonString); } }
@Override public KrakenFee deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException { ObjectCodec oc = jsonParser.getCodec(); JsonNode node = oc.readTree(jsonParser); BigDecimal volume = new BigDecimal(node.path(0).asText()); BigDecimal fee = new BigDecimal(node.path(1).asText()); return new KrakenFee(volume, fee); } }
@Override public GateioPublicOrder deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { final ObjectCodec oc = jp.getCodec(); final JsonNode tickerNode = oc.readTree(jp); final BigDecimal price = new BigDecimal(tickerNode.path(0).asText()); final BigDecimal amount = new BigDecimal(tickerNode.path(1).asText()); return new GateioPublicOrder(price, amount); } }
@Override public CoinbaseScope deserialize(JsonParser jsonParser, final DeserializationContext ctxt) throws IOException, JsonProcessingException { final ObjectCodec oc = jsonParser.getCodec(); final JsonNode node = oc.readTree(jsonParser); final String jsonString = node.textValue(); return FROM_STRING_HELPER.fromJsonString(jsonString); } }
@Override public CurrencyPair deserialize(JsonParser jsonParser, final DeserializationContext ctxt) throws IOException { final ObjectCodec oc = jsonParser.getCodec(); final JsonNode node = oc.readTree(jsonParser); final String currencyPairString = node.asText(); return getCurrencyPairFromString(currencyPairString); } }
@Override public BitmexOrderStatus deserialize(JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException { ObjectCodec oc = jsonParser.getCodec(); JsonNode node = oc.readTree(jsonParser); String orderStatusString = node.textValue(); return fromString(orderStatusString); } }
@Override public BitmexOrderTypeDescription deserialize( JsonParser jsonParser, DeserializationContext ctxt) throws IOException, JsonProcessingException { ObjectCodec oc = jsonParser.getCodec(); JsonNode node = oc.readTree(jsonParser); String orderTypeString = node.textValue(); return fromString(orderTypeString); } }
@Override public CoinbaseAccountChangeCategory deserialize( JsonParser jsonParser, final DeserializationContext ctxt) throws IOException, JsonProcessingException { final ObjectCodec oc = jsonParser.getCodec(); final JsonNode node = oc.readTree(jsonParser); final String jsonString = node.textValue(); return FROM_STRING_HELPER.fromJsonString(jsonString); } }