I have setup streams for transactions, payments, operations, and effects with the method from stellar api guide:
this.server = new StellarSdk.Server('https://horizon.stellar.org');
this.stream = this.server.transactions()
.cursor('now')
.stream({
onmessage: function (message) {
console.log(message);
}
});
I noticed that a lot of the operations stream show manage offers detailing trades that are happening. I'm looking to get a stream of complete trades occurring on the network.
Using this.stream = this.server.trades().stream gives me this error:
Using Firefox can’t establish a connection to the server at https://horizon.stellar.org/trades.
According to the Stellar Laboratory, this should work unless the stream functionality for trades isn't implemented yet.