Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delivery websocket endpoints #456

Merged
merged 1 commit into from
Jul 10, 2020
Merged

Conversation

nurdtechie98
Copy link
Contributor

I have added delivery WebSocket endpoints, which isn't there at this point in time. All the endpoints covered in futures.
Most of it is a copy-paste of the corresponding futures part, with appropriate changes.
solves #453

@jaggedsoft
Copy link
Owner

Thank you very much for your contribution

@jaggedsoft jaggedsoft merged commit 0216a69 into jaggedsoft:master Jul 10, 2020
@waterdrop01
Copy link
Contributor

Hello @nurdtechie98 @jaggedsoft , any hint on how to subscribe to user data for delivery?

I have this code:

const onMarginCall = (res) => {
    debug('onMarginCall %o', res);
  };

  const onAccountUpdate = (res) => {
    debug('onAccountUpdate %o', res);
  };
  const onOrderUpdate = (res) => {
    debug('onOrderUpdate', res);
  };
  const onSubscribed = (res) => {
    debug('onSubscribed', res);
  };

  client.websockets.userFutureData(
    onMarginCall,
    onAccountUpdate,
    onOrderUpdate,
    onSubscribed,
  );

But when I move BTC from spot wallet to Futures "COIN-m" wallet, nothing is logged. Only transferring to USDT-m wallet will call "onAccountUpdate" function.

Is there an option to specify I want to subscribe to "COIN-m" or "delivery" futures websocket endpoint?

Thanks in advance for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants