Skip to content

Instantly share code, notes, and snippets.

@Anderson-Juhasc
Created September 11, 2015 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Anderson-Juhasc/57cc211a580229b030b9 to your computer and use it in GitHub Desktop.
Save Anderson-Juhasc/57cc211a580229b030b9 to your computer and use it in GitHub Desktop.
if (channel === 'ok_btccny_ticker' || channel === 'ok_btcusd_ticker') {
self.ticker = data;
}
if (channel === 'ok_btccny_depth' || channel === 'ok_btcusd_depth') {
self.orders = data;
self.userInfo();
}
if (channel === 'ok_spotusd_userinfo' || channel === 'ok_spotcny_userinfo') {
if (data !== undefined) {
self.wallet = data.info;
if (self.orders !== null && self.orders !== undefined) {
self.buy();
self.sell();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment