MCPcopy Create free account
hub / github.com/ccxt/node-binance-api / fBookTickerConvertData

Method fBookTickerConvertData

src/node-binance-api.ts:2102–2119  ·  view source on GitHub ↗

* Converts the futures bookTicker stream data into a friendly object * @param {object} data - user data callback data type * @return {object} - user friendly data type

(data: any)

Source from the content-addressed store, hash-verified

2100 * @return {object} - user friendly data type
2101 */
2102 fBookTickerConvertData(data: any) {
2103 const {
2104 u: updateId,
2105 s: symbol,
2106 b: bestBid,
2107 B: bestBidQty,
2108 a: bestAsk,
2109 A: bestAskQty
2110 } = data;
2111 return {
2112 updateId,
2113 symbol,
2114 bestBid,
2115 bestBidQty,
2116 bestAsk,
2117 bestAskQty
2118 };
2119 }
2120
2121 /**
2122 * Converts the futures UserData stream MARGIN_CALL data into a friendly object

Callers 2

bookTickersStreamMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected