MCPcopy Index your code
hub / github.com/ccxt/ccxt / serialize

Method serialize

java/lib/src/main/java/io/github/ccxt/base/Functions.java:51–62  ·  view source on GitHub ↗
(io.github.ccxt.ws.OrderBookSide value,
                                              com.fasterxml.jackson.core.JsonGenerator gen,
                                              com.fasterxml.jackson.databind.SerializerProvider provider)

Source from the content-addressed store, hash-verified

49 ORDER_BOOK_SIDE_SERIALIZER =
50 new com.fasterxml.jackson.databind.JsonSerializer<io.github.ccxt.ws.OrderBookSide>() {
51 @Override
52 public void serialize(io.github.ccxt.ws.OrderBookSide value,
53 com.fasterxml.jackson.core.JsonGenerator gen,
54 com.fasterxml.jackson.databind.SerializerProvider provider)
55 throws java.io.IOException {
56 java.util.List<Object> snap = value.snapshot();
57 gen.writeStartArray();
58 for (Object level : snap) {
59 provider.defaultSerializeValue(level, gen);
60 }
61 gen.writeEndArray();
62 }
63 };
64
65 // -------------------------------------------------

Callers

nothing calls this directly

Calls 1

snapshotMethod · 0.45

Tested by

no test coverage detected