updated websocket

This commit is contained in:
David Sun
2019-09-16 11:57:20 -04:00
parent 050343c97a
commit d45f64ab06

View File

@@ -84,17 +84,16 @@ export class SRAWebsocketOrderProvider extends BaseSRAOrderProvider {
}
const assetPairKey = OrderStore.getKeyForAssetPair(makerAssetData, takerAssetData);
const subcriptionOpts = {
baseAssetData: makerAssetData,
quoteAssetData: takerAssetData,
limit: PER_PAGE_DEFAULT,
makerAssetData,
takerAssetData,
};
this._wsSubscriptions.set(assetPairKey, subcriptionOpts);
// Subscribe to both sides of the book
this._ordersChannel.subscribe(subcriptionOpts);
this._ordersChannel.subscribe({
...subcriptionOpts,
baseAssetData: takerAssetData,
quoteAssetData: makerAssetData,
makerAssetData: takerAssetData,
takerAssetData: makerAssetData,
});
}