Class EventQueueDataMapper
java.lang.Object
info.bitrich.xchangestream.serum.datamapper.DataMapper
info.bitrich.xchangestream.serum.datamapper.EventQueueDataMapper
-
Field Summary
Fields inherited from class info.bitrich.xchangestream.serum.datamapper.DataMapper
market, priceDecimalPlaces, sizeDecimalPlaces, symbol -
Constructor Summary
ConstructorsConstructorDescriptionEventQueueDataMapper(String symbol, Market market, int priceDecimalPlaces, int sizeDecimalPlaces) -
Method Summary
Modifier and TypeMethodDescriptiongetFillPrice(EventQueueLayout.EventNode event, int decimalPlaces) getFillSize(EventQueueLayout.EventNode event, int decimalPlaces) Stream<com.fasterxml.jackson.databind.JsonNode>map(byte[] bytes, long slot, long timestamp) We're interested only in newly added events since last update each account update publishes 'snapshot' not 'delta' so we need to figure the deltacom.fasterxml.jackson.databind.JsonNodenormalizeData(EventQueueLayout.EventNode event, long timestamp, long slot, List<String> fillIds)
-
Constructor Details
-
EventQueueDataMapper
-
-
Method Details
-
map
public Stream<com.fasterxml.jackson.databind.JsonNode> map(byte[] bytes, long slot, long timestamp) throws IOException We're interested only in newly added events since last update each account update publishes 'snapshot' not 'delta' so we need to figure the delta- Throws:
IOException
-
getFillPrice
-
getFillSize
-
normalizeData
public com.fasterxml.jackson.databind.JsonNode normalizeData(EventQueueLayout.EventNode event, long timestamp, long slot, List<String> fillIds)
-