* Gets depth cache for given symbol * @param {string} symbol - the symbol to fetch * @return {object} - the depth cache object
(symbol: string)
| 3515 | * @return {object} - the depth cache object |
| 3516 | */ |
| 3517 | getDepthCache(symbol: string) { |
| 3518 | if (typeof this.depthCache[symbol] === 'undefined') return { bids: {}, asks: {}}; |
| 3519 | return this.depthCache[symbol]; |
| 3520 | } |
| 3521 | |
| 3522 | /** |
| 3523 | * Calculate Buy/Sell volume from DepthCache |
no outgoing calls
no test coverage detected