cleitonleonel / pyquotex

Unofficial Quotex Library
Other
54 stars 45 forks source link

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

Open shafikhan-1 opened 1 year ago

shafikhan-1 commented 1 year ago

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 commented 11 months ago

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 commented 11 months ago

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 https://github.com/cleitonleonel/pyquotex/issues/11#issuecomment-1742059738, or unsubscribe https://github.com/notifications/unsubscribe-auth/APLXDXZQ5FBWNDCSN25K4JLX5FMD7ANCNFSM6AAAAAA4PZQRZ4 . You are receiving this because you authored the thread.Message ID: @.***>

cleitonleonel commented 11 months ago

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...