-
Notifications
You must be signed in to change notification settings - Fork 298
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
sandeep/65842/unifiy-websocket -- using the same websocket instance from the core … #6555
Merged
carolsachdeva
merged 5 commits into
binary-com:master
from
sandeep-deriv:sandeep/65842/unify-websockets
Sep 27, 2022
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f2d748d
unified websocket -- using the same websocket instance from the core …
sandeep-deriv 034366d
added reset transaction_subscription_id on close of instance
sandeep-deriv ad88b24
Merge branch 'master' into sandeep/65842/unify-websockets
sandeep-deriv 095fb9a
Merge branch 'master' into sandeep/65842/unify-websockets
sandeep-deriv 25d9a71
Merge branch 'master' into sandeep/65842/unify-websockets
carolsachdeva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
packages/bot-skeleton/src/services/api/__tests__/ticks-service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/bot-skeleton/src/services/tradeEngine/utils/cliTools.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why accountInfo gets null here? If it gets null meybe there are some problems ... because it doea not seem reasonable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In DBot there is a problem.
With every request such as if we request for tick, then in the response there will be a tick object or error in worst case.
So here we are checking for the
msg_type === 'authorize'
and setting the whole data (response) object in the accountInfo which I think is incorrect.bot-skeleton>src>services>tradeEngine>trade>index.js loginAndGetBalance()
This is the response object of authorize.
the whole object is data.
Now the places where we are using
this.accountInfo.loginId
it will always give error or undefined because the data object doesn't containloginid
butauthorize
inside data does.and here you can see the result of console which I added inside trade>balance.js
and this all is happening in
master
branch.So I just corrected the assignment of object in trade>index.js file. And it works fine now
@sara-fs