Git Product home page Git Product logo

binary-bot's Introduction

Welcome to my GitHub page

About me:

I am Itamar, I’m an undergrad computer engineering student at UFPB (Brasil). I have previously interned as a Software Engineer at Google, Meta, and some startups (Praso and Atoptima).

My main interests nowadays are:

  • Innovation and Startups.
  • Machine Learning.
  • Education.

Feel free to reach me on any social media using the badges below. My Personal website.

Social Media

binary-bot's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

binary-bot's Issues

Adição de método connect ao arquivo iq.py

No arquivo IQ.py, na linha 20, acredito ser necessário adicionar a ação iq.connect() para evitar "AttributeError: 'IQ_Option' object has no attribute 'api'". Localmente para mim, foi necessário para estabelecer a conexão com o serviço. O método em questão retorna um True ou False para o pedido de conexão podendo validar o sucesso ou não.

I can't make it work!

Traceback (most recent call last):
File "d:\Jhon\Desktop\Bots\Python\ItamarRocha\testing.py", line 125, in
NAME = train_data() + '.model'
File "d:\Jhon\Desktop\Bots\Python\ItamarRocha\training.py", line 92, in train_data
df = get_data_needed(iq)
File "d:\Jhon\Desktop\Bots\Python\ItamarRocha\iq.py", line 98, in get_data_needed
return final_data
File "C:\Users\Jhon\AppData\Roaming\Python\Python310\site-packages\pandas\core\generic.py", line 5596, in setattr
return object.setattr(self, name, value)
File "pandas_libs\properties.pyx", line 70, in pandas._libs.properties.AxisProperty.set
File "C:\Users\Jhon\AppData\Roaming\Python\Python310\site-packages\pandas\core\generic.py", line 769, in _set_axis
self._mgr.set_axis(axis, labels)
File "C:\Users\Jhon\AppData\Roaming\Python\Python310\site-packages\pandas\core\internals\managers.py", line 214, in set_axis
self._validate_set_axis(axis, new_labels)
File "C:\Users\Jhon\AppData\Roaming\Python\Python310\site-packages\pandas\core\internals\base.py", line 69, in _validate_set_axis
raise ValueError(
ValueError: Length mismatch: Expected axis has 2000 elements, new values have 2 elements

Error put

Hello
First let me thank you for this awesome project
i had problem when the bot try to call or put "Error" put ,False invalid" request. dose the problem from api or something else

one more thing more tried training and i already have cuda with cuddn same ver that your dependency running but it just run then stop tell "StreamExecutor device (0): NVIDIA GeForce GTX 1050, Compute Capability 6.1
1 Physical GPUs, 1 Logical GPUs"

Problem with install and use

When i try to install the requirements.txt, have this error:

binary-bot# pip install -r requirements.txt
DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will drop support for Python 3.5 in January 2021. pip 21.0 will remove support for this functionality.
Collecting iqoptionapi@ git+git://github.com/Lu-Yi-Hsun/iqoptionapi.git@e96ba2c5b905a139a4765167b08c5df48cf57773
Cloning git://github.com/Lu-Yi-Hsun/iqoptionapi.git (to revision e96ba2c5b905a139a4765167b08c5df48cf57773) to /tmp/pip-install-sckqxx_6/iqoptionapi_346b6e0d63dc4798a7679b6c98303683
ERROR: Command errored out with exit status 128: git clone -q git://github.com/Lu-Yi-Hsun/iqoptionapi.git /tmp/pip-install-sckqxx_6/iqoptionapi_346b6e0d63dc4798a7679b6c98303683 Check the logs for full command output.

and when try to work testing.py, have this error:

python testing.py
File "testing.py", line 35
current.columns = [f'close_{active}', f'volume_{active}']
^
SyntaxError: invalid syntax

Error loading DLL

python : Traceback (most recent call last):
No linha:1 caractere:1

  • python testing.py
  •   + CategoryInfo          : NotSpecified: (Traceback (most recent call last)::String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    File "testing.py", line 3, in <module>
      from sklearn.preprocessing import MinMaxScaler
    File "C:\Users\Diego\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\sklearn\__init__.py", line 80, in <module>
      from .base import clone
    File "C:\Users\Diego\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\sklearn\base.py", line 21, in <module>
      from .utils import _IS_32BIT
    File "C:\Users\Diego\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\sklearn\utils\__init__.py", line 20, in <module>
      from scipy.sparse import issparse
    File "C:\Users\Diego\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\__init__.py", line 136, in <module>
      from . import _distributor_init
    File "C:\Users\Diego\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy\_distributor_init.py", line 62, in <module>
      WinDLL(os.path.abspath(filename))
    File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\ctypes\__init__.py", line 364, in __init__
      self._handle = _dlopen(self._name, mode)
    

OSError: [WinError 126] Não foi possível encontrar o módulo especificado

Could somebody help me?
Thank you!

Abertura do programa

Boa tarde. tentei executar o programa do bot, porem nao foi possivel, o mesmo nao apresenta nenhum retorno.
image

IS IT COMPATIBLE WITH KALI LINUX?

Well, I have tried to install and run it, but when I run it it gives me the following error !:

zsh: illegal hardware instruction sudo python3 training.py

in the same way it throws me with the document testing.py

I need help!!

Error cloning API

image

This appears, when I try to clone the IQ option API, using the command $ pip install -U git + git: //github.com/Lu-Yi-Hsun/iqoptionapi.git

[suggestion] speed up indicators

I would like to suggest an improvement
since you need high speed to analyse candles and send to predict you could use threads to calculate indicators simultaneously to speed up the result.

Problema ao Rodar o Sistema

Boa tarde!
Estou com um problema ao inicializar o testing.py.

C:\Users\Lemos\Downloads\binary-bot-master\binary-bot-master>python testing.py
2020-07-05 17:08:35.933108: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-07-05 17:08:35.944190: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2020-07-05 17:08:39.272856: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found
2020-07-05 17:08:39.280050: E tensorflow/stream_executor/cuda/cuda_driver.cc:313] failed call to cuInit: UNKNOWN ERROR (303)
2020-07-05 17:08:39.295328: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: BD-LEMOS
2020-07-05 17:08:39.303199: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: BD-LEMOS
Traceback (most recent call last):
File "testing.py", line 125, in
NAME = train_data() + '.model'
File "C:\Users\Lemos\Downloads\binary-bot-master\binary-bot-master\training.py", line 89, in train_data
iq = login()
File "C:\Users\Lemos\Downloads\binary-bot-master\binary-bot-master\iq.py", line 20, in login
iq.change_balance("PRACTICE") #or real
File "C:\Users\Lemos\AppData\Local\Programs\Python\Python37\lib\site-packages\iqoptionapi\stable_api.py", line 432, in change_balance
for balance in self.get_profile_ansyc()["balances"]:
File "C:\Users\Lemos\AppData\Local\Programs\Python\Python37\lib\site-packages\iqoptionapi\stable_api.py", line 339, in get_profile_ansyc
while self.api.profile.msg == None:
AttributeError: 'IQ_Option' object has no attribute 'api'

Poderia me ajudar?

EXECUTION

HOW TO EXECUTE?
WE HAVE TO INSTALL IQOPTION SOFTWARE

OTC?

Hola, no esta funcionando en OTC

I can't start

image

I have this error when starting the testing.py file

execução

Alguem poderia me ajudar passo a passo na execução.
Estou com dificuldades para executar.
Grato

Execução do arquivo testing.py fica travada com o uso de GPU

Na tentativa de execução utilizando o processamento da GPU o log abaixo é gerado e nada mais acontece. Algum passo a mais é necessário para testar com a GPU?

***Testei em um Mac e foi possível rodar o projeto e testar com sucesso.

Teste realizado em um Win10 com GPU

PS D:\binary-bot> python .\testing.py 2020-07-17 16:31:11.051098: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
2020-07-17 16:31:12.130954: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2020-07-17 16:31:12.199665: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1060 6GB computeCapability: 6.1
coreClock: 1.7085GHz coreCount: 10 deviceMemorySize: 6.00GiB deviceMemoryBandwidth: 178.99GiB/s
2020-07-17 16:31:12.204331: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
2020-07-17 16:31:12.209374: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_10.dll
2020-07-17 16:31:12.213760: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cufft64_10.dll
2020-07-17 16:31:12.216753: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library curand64_10.dll
2020-07-17 16:31:12.222277: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusolver64_10.dll
2020-07-17 16:31:12.226835: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusparse64_10.dll
2020-07-17 16:31:12.235584: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn64_7.dll
2020-07-17 16:31:12.238806: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0
2020-07-17 16:31:12.240900: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2020-07-17 16:31:12.249238: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x217cf6a8c70 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-07-17 16:31:12.252842: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): Host, Default Version
2020-07-17 16:31:12.255264: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1060 6GB computeCapability: 6.1
coreClock: 1.7085GHz coreCount: 10 deviceMemorySize: 6.00GiB deviceMemoryBandwidth: 178.99GiB/s
2020-07-17 16:31:12.259884: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
2020-07-17 16:31:12.262219: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cublas64_10.dll
2020-07-17 16:31:12.264539: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cufft64_10.dll
2020-07-17 16:31:12.266855: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library curand64_10.dll
2020-07-17 16:31:12.269973: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusolver64_10.dll
2020-07-17 16:31:12.272406: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cusparse64_10.dll
2020-07-17 16:31:12.274777: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudnn64_7.dll
2020-07-17 16:31:12.277527: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1703] Adding visible gpu devices: 0
2020-07-17 16:31:12.762765: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-07-17 16:31:12.765287: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108] 0
2020-07-17 16:31:12.766847: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1121] 0: N
2020-07-17 16:31:12.768874: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1247] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 4700 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1060 6GB, pci bus id: 0000:01:00.0, compute capability: 6.1)
2020-07-17 16:31:12.775271: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x217fe622060 initialized for platform CUDA (this does not guarantee that XLA will be used). Devices:
2020-07-17 16:31:12.778365: I tensorflow/compiler/xla/service/service.cc:176] StreamExecutor device (0): GeForce GTX 1060 6GB, Compute Capability 6.1
1 Physical GPUs, 1 Logical GPUs
1 Physical GPUs, 1 Logical GPUs

DÚVIDA SOBRE TREINAMENTO DO SEU BINARY-BOT

Já descobri que você utilizou como base redes neurais LSTM, vi isso na pasta models, então quanto a isso não precisa responder,
Mas minha dúvida sobre como treinar (novos modelos) ou então, aprimorar o modelo atual LSTM-best.model (caso de),
Informe-me informações acerca disso de como treinar usando seu bot,

Eu vi que você respondeu a um usuário aqui no Issues dizendo:

Opa, Boa tarde. Eu consegui uma média de 60%........ .....Como o modelo funciona meio que online, ele treina novamente em novos dados após 10 transações

Poderia explicar? resumidamente que seja, ou então, se possível me passa fontes (links, PFDs ou afins) sobre como funciona esse tipo de treinamento em tempo real? Eu mandei essa dúvida por aqui, porque, eu te contatei via e-mail (que tem no teu site), porém não obtive resposta,

Mais uma vez, só tenho a te agradecer pelo bot, até logo 🤝🤝

I can´t start the bot

I dont understand a lot... this its all my "log", running the py through CMD

2020-05-18 17:47:18.414601: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-05-18 17:47:18.423083: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2020-05-18 17:47:23.581259: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2020-05-18 17:47:24.232897: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:04:00.0 name: GeForce 920M computeCapability: 3.5
coreClock: 0.954GHz coreCount: 2 deviceMemorySize: 2.00GiB deviceMemoryBandwidth: 13.41GiB/s
2020-05-18 17:47:24.256591: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-05-18 17:47:24.275917: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cublas64_10.dll'; dlerror: cublas64_10.dll not found
2020-05-18 17:47:24.296574: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
2020-05-18 17:47:24.315652: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
2020-05-18 17:47:24.336830: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolver64_10.dll not found
2020-05-18 17:47:24.356607: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cusparse64_10.dll'; dlerror: cusparse64_10.dll not found
2020-05-18 17:47:24.378233: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudnn64_7.dll'; dlerror: cudnn64_7.dll not found
2020-05-18 17:47:24.389219: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1598] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
Traceback (most recent call last):
  File "D:\Downloads\binary-bot\testing.py", line 125, in <module>
    NAME = train_data() + '.model'
  File "D:\Downloads\binary-bot\training.py", line 89, in train_data
    iq = login()
  File "D:\Downloads\binary-bot\iq.py", line 20, in login
    iq.change_balance("PRACTICE") #or real
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\iqoptionapi\stable_api.py", line 430, in change_balance
    for balance in self.get_profile_ansyc()["balances"]:
  File "C:\Users\User\AppData\Local\Programs\Python\Python38\lib\site-packages\iqoptionapi\stable_api.py", line 331, in get_profile_ansyc
    while self.api.profile.msg==None:
AttributeError: 'IQ_Option' object has no attribute 'api'

Connected to IQ Option, but nothing happens

Hi... After installing and running the code, all I get is:

Trying to connect to IqOption
Successfully Connected!
 

Python keeps busy, but even after waiting for some minutes, nothing happens..
It seems like waiting for something that doesn't come... No error message, no warning...
Please, is there anyone currently using this amazing bot successfully?
Is there any necessary API update?

Thanks for this amazing work!

[suggestion] New approach to test with AI

Try to use another approach to see if it can improve performance
Some approach are good to test and recommended:
Dueling Deep Q Learning
GAN
Deep Deterministic Policy Gradient (DDPG)

Acuracia do modelo

Opa Itamar tudo bem?

encontrei seu repositorio e fiquei curioso.

Tu conseguiu quanto de acuracia no modelo?
Fez algum crossvalidation ?

fez algum backtest?

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.