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

Trades not getting placed for EUR/USD but working for EUR/USD OTC #11

Open
shafikhan-1 opened this issue Sep 8, 2023 · 3 comments
Open

Comments

@shafikhan-1
Copy link

Does Pyquotex library only work with OTC currency pairs ? For some reason, regular currency pair related trades are not getting place (even though the market is open at that time).

This is error log

--- Trade #1 ---
Placing trade for EURUSD put for 14 seconds with amount 5
[DEBUG] Inside the buy method
[DEBUG] Parameters - Price: 5, Asset: EURUSD, Direction: put, Duration: 14
[DEBUG] Calculated Duration: 1693916520.0, Request ID: 1693916506
[DEBUG] Inside the Buy class call method
[DEBUG] Parameters - Price: 5, Asset: EURUSD, Direction: put, Duration: 14, Request ID: 1693916506
[DEBUG] Calculated Option Type: 1, Updated Duration: 1693916460
[DEBUG] Payload for settings/store: {'chartId': 'graph', 'settings': {'chartId': 'graph', 'chartType': 2, 'currentExpirationTime': 1693916460, 'isFastOption': False, 'isFastAmountOption': False, 'isIndicatorsMinimized': False, 'isIndicatorsShowing': True, 'isShortBetElement': False, 'chartPeriod': 4, 'currentAsset': {'symbol': 'EURUSD'}, 'dealValue': 5, 'dealPercentValue': 1, 'isVisible': True, 'timePeriod': 30, 'gridOpacity': 8, 'isAutoScrolling': 1, 'isOneClickTrade': True, 'upColor': '#0FAF59', 'downColor': '#FF6251'}}
[DEBUG] Sending websocket request with data: 42["settings/store",{"chartId": "graph", "settings": {"chartId": "graph", "chartType": 2, "currentExpirationTime": 1693916460, "isFastOption": false, "isFastAmountOption": false, "isIndicatorsMinimized": false, "isIndicatorsShowing": true, "isShortBetElement": false, "chartPeriod": 4, "currentAsset": {"symbol": "EURUSD"}, "dealValue": 5, "dealPercentValue": 1, "isVisible": true, "timePeriod": 30, "gridOpacity": 8, "isAutoScrolling": 1, "isOneClickTrade": true, "upColor": "#0FAF59", "downColor": "#FF6251"}}]
[DEBUG] Payload for orders/open: {'asset': 'EURUSD', 'amount': 5, 'time': 1693916460, 'action': 'put', 'isDemo': 1, 'tournamentId': 0, 'requestId': 1693916506, 'optionType': 1}
[DEBUG] Sending websocket request with data: 42["orders/open",{"asset": "EURUSD", "amount": 5, "time": 1693916460, "action": "put", "isDemo": 1, "tournamentId": 0, "requestId": 1693916506, "optionType": 1}]
[DEBUG] Websocket requests sent successfully
[ERROR] Failed to place the trade within the expected time
False None
Quotex: Trade Operation failed!

@cleitonleonel
Copy link
Owner

Does Pyquotex library only work with OTC currency pairs ? For some reason, regular currency pair related trades are not getting place (even though the market is open at that time).

This is error log

--- Trade #1 --- Placing trade for EURUSD put for 14 seconds with amount 5 [DEBUG] Inside the buy method [DEBUG] Parameters - Price: 5, Asset: EURUSD, Direction: put, Duration: 14 [DEBUG] Calculated Duration: 1693916520.0, Request ID: 1693916506 [DEBUG] Inside the Buy class call method [DEBUG] Parameters - Price: 5, Asset: EURUSD, Direction: put, Duration: 14, Request ID: 1693916506 [DEBUG] Calculated Option Type: 1, Updated Duration: 1693916460 [DEBUG] Payload for settings/store: {'chartId': 'graph', 'settings': {'chartId': 'graph', 'chartType': 2, 'currentExpirationTime': 1693916460, 'isFastOption': False, 'isFastAmountOption': False, 'isIndicatorsMinimized': False, 'isIndicatorsShowing': True, 'isShortBetElement': False, 'chartPeriod': 4, 'currentAsset': {'symbol': 'EURUSD'}, 'dealValue': 5, 'dealPercentValue': 1, 'isVisible': True, 'timePeriod': 30, 'gridOpacity': 8, 'isAutoScrolling': 1, 'isOneClickTrade': True, 'upColor': '#0FAF59', 'downColor': '#FF6251'}} [DEBUG] Sending websocket request with data: 42["settings/store",{"chartId": "graph", "settings": {"chartId": "graph", "chartType": 2, "currentExpirationTime": 1693916460, "isFastOption": false, "isFastAmountOption": false, "isIndicatorsMinimized": false, "isIndicatorsShowing": true, "isShortBetElement": false, "chartPeriod": 4, "currentAsset": {"symbol": "EURUSD"}, "dealValue": 5, "dealPercentValue": 1, "isVisible": true, "timePeriod": 30, "gridOpacity": 8, "isAutoScrolling": 1, "isOneClickTrade": true, "upColor": "#0FAF59", "downColor": "#FF6251"}}] [DEBUG] Payload for orders/open: {'asset': 'EURUSD', 'amount': 5, 'time': 1693916460, 'action': 'put', 'isDemo': 1, 'tournamentId': 0, 'requestId': 1693916506, 'optionType': 1} [DEBUG] Sending websocket request with data: 42["orders/open",{"asset": "EURUSD", "amount": 5, "time": 1693916460, "action": "put", "isDemo": 1, "tournamentId": 0, "requestId": 1693916506, "optionType": 1}] [DEBUG] Websocket requests sent successfully [ERROR] Failed to place the trade within the expected time False None Quotex: Trade Operation failed!

It was resolved in the private repository...

@shafikhan-1
Copy link
Author

shafikhan-1 commented Oct 2, 2023 via email

@cleitonleonel
Copy link
Owner

Thanks a lot for the response. Could you send the link for private repository. I will try that code. Best Regards Shafi

On Sun, Oct 1, 2023 at 5:06 AM Cleiton Leonel Creton < @.> wrote: Does Pyquotex library only work with OTC currency pairs ? For some reason, regular currency pair related trades are not getting place (even though the market is open at that time). This is error log --- Trade #1 --- Placing trade for EURUSD put for 14 seconds with amount 5 [DEBUG] Inside the buy method [DEBUG] Parameters - Price: 5, Asset: EURUSD, Direction: put, Duration: 14 [DEBUG] Calculated Duration: 1693916520.0, Request ID: 1693916506 [DEBUG] Inside the Buy class call method [DEBUG] Parameters - Price: 5, Asset: EURUSD, Direction: put, Duration: 14, Request ID: 1693916506 [DEBUG] Calculated Option Type: 1, Updated Duration: 1693916460 [DEBUG] Payload for settings/store: {'chartId': 'graph', 'settings': {'chartId': 'graph', 'chartType': 2, 'currentExpirationTime': 1693916460, 'isFastOption': False, 'isFastAmountOption': False, 'isIndicatorsMinimized': False, 'isIndicatorsShowing': True, 'isShortBetElement': False, 'chartPeriod': 4, 'currentAsset': {'symbol': 'EURUSD'}, 'dealValue': 5, 'dealPercentValue': 1, 'isVisible': True, 'timePeriod': 30, 'gridOpacity': 8, 'isAutoScrolling': 1, 'isOneClickTrade': True, 'upColor': '#0FAF59', 'downColor': '#FF6251'}} [DEBUG] Sending websocket request with data: 42["settings/store",{"chartId": "graph", "settings": {"chartId": "graph", "chartType": 2, "currentExpirationTime": 1693916460, "isFastOption": false, "isFastAmountOption": false, "isIndicatorsMinimized": false, "isIndicatorsShowing": true, "isShortBetElement": false, "chartPeriod": 4, "currentAsset": {"symbol": "EURUSD"}, "dealValue": 5, "dealPercentValue": 1, "isVisible": true, "timePeriod": 30, "gridOpacity": 8, "isAutoScrolling": 1, "isOneClickTrade": true, "upColor": "#0FAF59", "downColor": "#FF6251"}}] [DEBUG] Payload for orders/open: {'asset': 'EURUSD', 'amount': 5, 'time': 1693916460, 'action': 'put', 'isDemo': 1, 'tournamentId': 0, 'requestId': 1693916506, 'optionType': 1} [DEBUG] Sending websocket request with data: 42["orders/open",{"asset": "EURUSD", "amount": 5, "time": 1693916460, "action": "put", "isDemo": 1, "tournamentId": 0, "requestId": 1693916506, "optionType": 1}] [DEBUG] Websocket requests sent successfully [ERROR] Failed to place the trade within the expected time False None Quotex: Trade Operation failed! It was resolved in the private repository... — Reply to this email directly, view it on GitHub <#11 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APLXDXZQ5FBWNDCSN25K4JLX5FMD7ANCNFSM6AAAAAA4PZQRZ4 . You are receiving this because you authored the thread.Message ID: @.>

Ok, please read the project readme...

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

No branches or pull requests

2 participants