@@ -67,6 +67,7 @@ Following examples will use the `await` form, which requires some configuration
6767 - [ depositAddress] ( #depositaddress )
6868- [ Websockets] ( #websockets )
6969 - [ depth] ( #depth )
70+ - [ bulkDepth] ( #bulkdepth )
7071 - [ partialDepth] ( #partialdepth )
7172 - [ ticker] ( #ticker )
7273 - [ allTickers] ( #alltickers )
@@ -910,6 +911,42 @@ client.ws.depth('ETHBTC', depth => {
910911
911912</details >
912913
914+ #### bulkDepth
915+
916+ Live depth market data feed. The first parameter can either
917+ be a single symbol string or an array of symbols.
918+
919+ This method creates only one connection, that prevents from overpopulating the server.
920+
921+ ``` js
922+ client .ws .bulkDepth (' ETHBTC' , depth => {
923+ console .log (depth);
924+ })
925+ ```
926+
927+ <details >
928+ <summary >Output</summary >
929+
930+ ``` js
931+ {
932+ eventType: ' depthUpdate' ,
933+ eventTime: 1508612956950 ,
934+ symbol: ' ETHBTC' ,
935+ firstUpdateId: 18331140 ,
936+ finalUpdateId: 18331145 ,
937+ bidDepth: [
938+ { price: ' 0.04896500' , quantity: ' 0.00000000' },
939+ { price: ' 0.04891100' , quantity: ' 15.00000000' },
940+ { price: ' 0.04891000' , quantity: ' 0.00000000' } ],
941+ askDepth: [
942+ { price: ' 0.04910600' , quantity: ' 0.00000000' },
943+ { price: ' 0.04910700' , quantity: ' 11.24900000' }
944+ ]
945+ }
946+ ```
947+
948+ </details >
949+
913950#### partialDepth
914951
915952Top levels bids and asks, pushed every second. Valid levels are 5, 10, or 20.
0 commit comments