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

Method getFStreamUrl

src/node-binance-api.ts:327–336  ·  view source on GitHub ↗
(category?: 'public' | 'market' | 'private')

Source from the content-addressed store, hash-verified

325 }
326
327 getFStreamUrl(category?: 'public' | 'market' | 'private') {
328 if (category) {
329 if (this.Options.demo) return `wss://fstream.binancefuture.com/${category}/stream?streams=`;
330 if (this.Options.test) return `wss://stream.binancefuture.${this.domain}/${category}/stream?streams=`;
331 return `wss://fstream.binance.${this.domain}/${category}/stream?streams=`;
332 }
333 if (this.Options.demo) return this.fstreamDemo;
334 if (this.Options.test) return this.fstreamTest;
335 return this.fstream;
336 }
337
338 getDStreamUrl() {
339 if (this.Options.demo) return this.dstreamDemo;

Callers 2

futuresSubscribeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected