Giter Site home page Giter Site logo

Não consigo abrir ordem about quotexpy HOT 40 CLOSED

jrdesouza avatar jrdesouza commented on August 16, 2024
Não consigo abrir ordem

from quotexpy.

Comments (40)

ricardospinoza avatar ricardospinoza commented on August 16, 2024 3

@sainathkishoremrinc12 look this simulation...
simulacao-quotex

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024 2

Estou perto da correção amanhã devo comitar algo

from quotexpy.

marconcinilazaro avatar marconcinilazaro commented on August 16, 2024 1

pelo que vi a duration pode ta indo errado, a api esta enviando em segundos : # data=42["orders/open",{"asset": "EURUSD", "amount": 100, "time": 60, "action": "call", "isDemo": 1, "tournamentId": 0, "requestId": 1698170228, "optionType": 1}]
ja pelo site é envaido timestamp 42["orders/open",{"asset":"EURUSD","amount":5,"time":1698171180,"action":"call","isDemo":1,"tournamentId":0,"requestId":1698171096,"optionType":1}]

from quotexpy.

marconcinilazaro avatar marconcinilazaro commented on August 16, 2024 1

certo, tava dando uma olhada acho que tem uma diferença de horarios entre o servidor da quotex e o horario BR.

from quotexpy.

marconcinilazaro avatar marconcinilazaro commented on August 16, 2024 1

a api nao é oficial. Essa api foi desenvolvida via socket

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024 1

Parece que deu boa
[INFO]: Start your robot... Elapsed time: 0 seconds
[INFO]: Connecting...
True Websocket successfully connected!!!
[INFO]: Balance: 96.88n... Elapsed time: 0 seconds
[INFO]: OK: Asset is open

True {'id': '5e0c15d6-xxxx-42fe-9224-957153fa5049', 'openTime': '2023-10-25 12:25:09', 'closeTime': '2023-10-25 12:26:00', 'openTimestamp': 1698236709, 'closeTimestamp': 1698236760, 'uid': 30179521, 'isDemo': 1, 'tournamentId': 0, 'amount': 1, 'purchaseTime': 1698236730, 'profit': 0.75, 'percentProfit': 75, 'percentLoss': 100, 'openPrice': 0.87267, 'copyTicket': '', 'closePrice': 0, 'command': 0, 'asset': 'AUDCAD', 'nickname': '#30333521', 'accountBalance': 96.88, 'requestId': 1697736709, 'openMs': 519, 'currency': 'USD'}
[INFO]: Waiting for result...
Restando 28 segundos ...

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024 1

só finaliznado mais uns testes e abro a ordem

from quotexpy.

rahulshuklawork avatar rahulshuklawork commented on August 16, 2024 1

i tried using every timeframe and tried to place order but not working

from quotexpy.

sainathkishoremrinc12 avatar sainathkishoremrinc12 commented on August 16, 2024 1

@ricardospinoza It works for me but one thing the trade runs twice even if trade completed.

from quotexpy.

SantiiRepair avatar SantiiRepair commented on August 16, 2024

Hi @jrdesouza can you provide information about how the error is reproduced?

from quotexpy.

jrdesouza avatar jrdesouza commented on August 16, 2024

Ele faz conexão perfeitamente, responde os ping perfeitamente, porém envia o payload de open/ordens e a ordem não é executada, não exibe mensagem de erro, somente não executa a ordem, o ativo está aberto e os valores passados na função também estão corretos, não fiz nenhuma modificação no código do repositório.

from quotexpy.

SantiiRepair avatar SantiiRepair commented on August 16, 2024

me too, i'll check this bug

Handshake status 403 Forbidden -+-+- {'date': 'Sat, 30 Sep 2023 05:30:47 GMT', 'content-type': 'text/html; charset=UTF-8', 'transfer-encoding': 'chunked', 'connection': 'close', 'cross-origin-embedder-policy': 'require-corp', 'cross-origin-opener-policy': 'same-origin', 'cross-origin-resource-policy': 'same-origin', 'origin-agent-cluster': '?1', 'permissions-policy': 'accelerometer=(),autoplay=(),browsing-topics=(),camera=(),clipboard-read=(),clipboard-write=(),geolocation=(),gyroscope=(),hid=(),interest-cohort=(),magnetometer=(),microphone=(),payment=(),publickey-credentials-get=(),screen-wake-lock=(),serial=(),sync-xhr=(),usb=()', 'referrer-policy': 'same-origin', 'x-frame-options': 'SAMEORIGIN', 'cf-mitigated': 'challenge', 'cache-control': 'private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0', 'expires': 'Thu, 01 Jan 1970 00:00:01 GMT', 'set-cookie': '__cf_bm=GR4dGt6EXq0FG0f89CGMINHPV4hSlxOR5yZczlacO34-1696051847-0-AWhV0/4HBvlo3OiuvAmR24qmIMN7wQPrDN4TR+tQGigD3xW+VMvFXijDmgHJBOBHfu+hXajUHmi0R3aVq98pnOs=; path=/; expires=Sat, 30-Sep-23 06:00:47 GMT; domain=.qxbroker.com; HttpOnly; Secure; SameSite=None', 'server': 'cloudflare', 'cf-ray': '80ea136ff84e2c95-ORD'} -+-+- None
[INFO]: Connecting...
Trying to reconnect, try 1 for 2
Successfully reconnected!!!
True Websocket successfully connected!!!
Balance:  12959.53
Operation failed!!!
Balance:  12959.53
Exiting...

from quotexpy.

jrdesouza avatar jrdesouza commented on August 16, 2024

I discovered that the generation of the requestId is the opening timestamp + a random number between 1 and 100, but it still doesn't accept the payload

from quotexpy.

Kiny-Kiny avatar Kiny-Kiny commented on August 16, 2024

I'm getting the same error as you. I've already tried to fix the code. xD

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

me too, i'll check this bug

Handshake status 403 Forbidden -+-+- {'date': 'Sat, 30 Sep 2023 05:30:47 GMT', 'content-type': 'text/html; charset=UTF-8', 'transfer-encoding': 'chunked', 'connection': 'close', 'cross-origin-embedder-policy': 'require-corp', 'cross-origin-opener-policy': 'same-origin', 'cross-origin-resource-policy': 'same-origin', 'origin-agent-cluster': '?1', 'permissions-policy': 'accelerometer=(),autoplay=(),browsing-topics=(),camera=(),clipboard-read=(),clipboard-write=(),geolocation=(),gyroscope=(),hid=(),interest-cohort=(),magnetometer=(),microphone=(),payment=(),publickey-credentials-get=(),screen-wake-lock=(),serial=(),sync-xhr=(),usb=()', 'referrer-policy': 'same-origin', 'x-frame-options': 'SAMEORIGIN', 'cf-mitigated': 'challenge', 'cache-control': 'private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0', 'expires': 'Thu, 01 Jan 1970 00:00:01 GMT', 'set-cookie': '__cf_bm=GR4dGt6EXq0FG0f89CGMINHPV4hSlxOR5yZczlacO34-1696051847-0-AWhV0/4HBvlo3OiuvAmR24qmIMN7wQPrDN4TR+tQGigD3xW+VMvFXijDmgHJBOBHfu+hXajUHmi0R3aVq98pnOs=; path=/; expires=Sat, 30-Sep-23 06:00:47 GMT; domain=.qxbroker.com; HttpOnly; Secure; SameSite=None', 'server': 'cloudflare', 'cf-ray': '80ea136ff84e2c95-ORD'} -+-+- None
[INFO]: Connecting...
Trying to reconnect, try 1 for 2
Successfully reconnected!!!
True Websocket successfully connected!!!
Balance:  12959.53
Operation failed!!!
Balance:  12959.53
Exiting...

Por algum motivo o servidor está bloqueado a api.

from quotexpy.

SantiiRepair avatar SantiiRepair commented on August 16, 2024

@marconcinilazaro Did you change it and now it works?

from quotexpy.

marconcinilazaro avatar marconcinilazaro commented on August 16, 2024

I'm trying, but still nothing.

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

Tem um metodo que retorna um timestamp get_expiration_time em expiration.

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

Estou tentando ver aqui se da certo algo do tipo:
duration = get_expiration_time(int(self.api.timesync.server_timestamp), duration)

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

Aonde que tem essa documentação da api? mandei msg para o suporte da quotex e o povo de lá não sabe informar nada no helpdesk :(

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

refactory está dando um trabalho grande por aqui rs

from quotexpy.

SantiiRepair avatar SantiiRepair commented on August 16, 2024

@ricardospinoza Was the order opened?

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

big refactory man :/

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

Win -> Profit: 0.75
[INFO]: Balance: 96.63
[INFO]: Exiting...
*-----
[INFO]: Loss -> Loss: -1
[INFO]: Balance: 95.63
[INFO]: Exiting...
MR
#18

Não tenho acesso para resolver os conflitos. favor resolver, se puder manter as minhas alterações agradeço!!!!

from quotexpy.

SantiiRepair avatar SantiiRepair commented on August 16, 2024

@ricardospinoza

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

from quotexpy.

sainathkishoremrinc12 avatar sainathkishoremrinc12 commented on August 16, 2024

[INFO]: Start your robot
[INFO]: Connecting...
[INFO]: Balance: 10091.0
[INFO]: OK: Asset is open
False {}
[ERROR]: Operation failed!!!
[INFO]: Balance: 10091.0
[INFO]: Exiting...

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

verificando....

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

Supondo timeframe de 1 minutos, o erro "Operation failed" ocorre se a ordem for submetida no tempo inferior a 30 segundo para o termino do candle. varios testes e dá o mesmo cenário.
isto explica por que em alguns casos dá certo e em outros não.

from quotexpy.

SantiiRepair avatar SantiiRepair commented on August 16, 2024

@ricardospinoza So if it is longer than 30 seconds, is the order opened successfully?

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

sim, abrindo em tempo maior que 30 segundos funciona. E há alguma casos eventuais que dá o erro sem um motivo, porém observando no gráfico a ordem foi realizada e no python dá mensagem de operação falhou indevidamente

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

@rahulshuklawork alguma mensagem de erro? qual o seu cenário?

from quotexpy.

rahulshuklawork avatar rahulshuklawork commented on August 16, 2024

@ricardospinoza i am getting this response after running

[INFO]: Start your robot... Elapsed time: 0 seconds
[INFO]: Connecting...
True Websocket successfully connected!!!
[INFO]: Balance: 700265.3. Elapsed time: 0 seconds
[INFO]: OK: Asset is open
False {} or trade operation... Elapsed time: 10 seconds

[ERROR]: Operation failed!!!
[INFO]: Balance: 700265.3
[INFO]: Exiting...
[INFO]: Start your robot... Elapsed time: 1 seconds
[INFO]: Connecting...
True Websocket successfully connected!!!
[INFO]: Balance: 700265.3. Elapsed time: 0 seconds
[INFO]: OK: Asset is open
False {} or trade operation... Elapsed time: 10 seconds

[ERROR]: Operation failed!!!
[INFO]: Balance: 700265.3
[INFO]: Exiting...
[INFO]: Start your robot... Elapsed time: 0 seconds
[INFO]: Connecting...
True Websocket successfully connected!!!
[INFO]: Balance: 700265.3. Elapsed time: 0 seconds
[INFO]: OK: Asset is open
False {} or trade operation... Elapsed time: 10 seconds

[ERROR]: Operation failed!!!
[INFO]: Balance: 700265.3
[INFO]: Exiting...

from quotexpy.

rahulshuklawork avatar rahulshuklawork commented on August 16, 2024

@sainathkishoremrinc12 can you please help me out for this

from quotexpy.

sainathkishoremrinc12 avatar sainathkishoremrinc12 commented on August 16, 2024

@sainathkishoremrinc12 can you please help me out for this

Ya actually the project is not yet updated on PyPi site this version update is older, once the package updated to site you can access that.

from quotexpy.

SantiiRepair avatar SantiiRepair commented on August 16, 2024

@sainathkishoremrinc12 what?

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

@rahulshuklawork

@ricardospinoza i am getting this response after running

[INFO]: Start your robot... Elapsed time: 0 seconds [INFO]: Connecting... True Websocket successfully connected!!! [INFO]: Balance: 700265.3. Elapsed time: 0 seconds [INFO]: OK: Asset is open False {} or trade operation... Elapsed time: 10 seconds

[ERROR]: Operation failed!!! [INFO]: Balance: 700265.3 [INFO]: Exiting... [INFO]: Start your robot... Elapsed time: 1 seconds [INFO]: Connecting... True Websocket successfully connected!!! [INFO]: Balance: 700265.3. Elapsed time: 0 seconds [INFO]: OK: Asset is open False {} or trade operation... Elapsed time: 10 seconds

[ERROR]: Operation failed!!! [INFO]: Balance: 700265.3 [INFO]: Exiting... [INFO]: Start your robot... Elapsed time: 0 seconds [INFO]: Connecting... True Websocket successfully connected!!! [INFO]: Balance: 700265.3. Elapsed time: 0 seconds [INFO]: OK: Asset is open False {} or trade operation... Elapsed time: 10 seconds

[ERROR]: Operation failed!!! [INFO]: Balance: 700265.3 [INFO]: Exiting...

Observei o comportamento, uma operação falha porém abre na quotex observando no gráfico, e após alguns segundos um segundo evento dispara e nem sim a operação abre no gráfico e fica aguardando corretamente. preciso entender o que está ocorrendo neste cenário.

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

Hey folks, i have good e bad news. God is bug check win it´s ok, but the quotex inexplicate alter this id returned. i need alter key to de list info data to asset in trade operation opened.

from quotexpy.

ricardospinoza avatar ricardospinoza commented on August 16, 2024

#26

from quotexpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.