forked from binary-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "sandeep/65842/unifiy-websocket -- using the same websocket in…
…stance from the core … (binary-com#6555)" (binary-com#6623) This reverts commit e2b3d2e.
- Loading branch information
1 parent
2dabb67
commit 6c9e8e3
Showing
7 changed files
with
29 additions
and
22 deletions.
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import DerivAPIBasic from '@deriv/deriv-api/dist/DerivAPIBasic'; | ||
import { getAppId, getSocketURL, website_name } from '@deriv/shared'; | ||
import { getLanguage } from '@deriv/translations'; | ||
|
||
export const generateDerivApiInstance = () => { | ||
const socket_url = `wss://${getSocketURL()}/websockets/v3?app_id=${getAppId()}&l=${getLanguage()}&brand=${website_name.toLowerCase()}`; | ||
const deriv_socket = new WebSocket(socket_url); | ||
const deriv_api = new DerivAPIBasic({ | ||
connection: deriv_socket, | ||
}); | ||
return deriv_api; | ||
}; |
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