Skip to content

Commit

Permalink
Log deprecation warning for MarketDataStreamer
Browse files Browse the repository at this point in the history
  • Loading branch information
dmoss18 committed Feb 28, 2024
1 parent e9268ea commit c1b5bc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/market-data-streamer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export default class MarketDataStreamer {
private errorListeners = new Map()
private authStateListeners = new Map()

constructor() {
console.warn('MarketDataStreamer is deprecated and will be removed in a future release of @tastytrade/api. Use @dxfeed/dxlink-api instead.')
}

addDataListener(dataListener: MarketDataListener, channelId: number | null = null): Remover {
if (_.isNil(dataListener)) {
return _.noop
Expand Down

0 comments on commit c1b5bc3

Please sign in to comment.