Closed sanjujosh closed 4 years ago
Thanks for submitting the issue! It should be possible to add swaps, futures and options.
I'm thinking it would be beneficial to pass the market as a second optional value to the subscribe methods. This way the _sendSub*
methods could use the metadata in the market instead of trying to infer the type based on the remote_id. This should be pretty easy to get into the library.
Hello,
Okex has swap and futures on the same ws end point. Is it possible to add them ?
I have the below hacky changes to add the support for swaps
for swaps,
same changes added to
_processsMessage
function to handle swap trades