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

Method LastPrice

java/lib/src/main/java/io/github/ccxt/types/LastPrice.java:13–22  ·  view source on GitHub ↗
(Object raw)

Source from the content-addressed store, hash-verified

11 public Map<String, Object> info;
12
13 @SuppressWarnings("unchecked")
14 public LastPrice(Object raw) {
15 Map<String, Object> data = TypeHelper.toMap(raw);
16 this.symbol = TypeHelper.safeString(data, "symbol");
17 this.timestamp = TypeHelper.safeInteger(data, "timestamp");
18 this.datetime = TypeHelper.safeString(data, "datetime");
19 this.price = TypeHelper.safeFloat(data, "price");
20 this.side = TypeHelper.safeString(data, "side");
21 this.info = TypeHelper.getInfo(data);
22 }
23}

Callers

nothing calls this directly

Calls 5

toMapMethod · 0.95
safeStringMethod · 0.95
safeIntegerMethod · 0.95
safeFloatMethod · 0.95
getInfoMethod · 0.95

Tested by

no test coverage detected