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

Method getFStreamSingleUrl

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

Source from the content-addressed store, hash-verified

314 }
315
316 getFStreamSingleUrl(category?: 'public' | 'market' | 'private') {
317 if (category) {
318 if (this.Options.demo) return `wss://fstream.binancefuture.com/${category}/ws/`;
319 if (this.Options.test) return `wss://stream.binancefuture.${this.domain}/${category}/ws/`;
320 return `wss://fstream.binance.${this.domain}/${category}/ws/`;
321 }
322 if (this.Options.demo) return this.fstreamSingleDemo;
323 if (this.Options.test) return this.fstreamSingleTest;
324 return this.fstreamSingle;
325 }
326
327 getFStreamUrl(category?: 'public' | 'market' | 'private') {
328 if (category) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected