AlanForester/IQOption-Bot-Trade-System

Starting bot issue

Opened this issue · 13 comments

One problem with starting, i got this message:
src/yogaMerchant/start_collector.py [Errno 2] No such file or directory.
Its working version? And can u create a video how can i start and how does it work? Really appriciate it.

When i copy from build folder start_collector to src/yogaMerchant/ i got AttributeError: 'Params' object has no attribute 'get_broker'

Traceback (most recent call last):
File "src/yogaMerchant/config/config.py", line 7, in
from src.yogaMerchant.config.params import Params
ImportError: No module named src.yogaMerchant.config.params

same problem. not create config.json

im able to load the script but get some error also

2017-04-01 14:54:37:INFO: Create connection for active 'EURUSD'.
2017-04-01 14:54:38:INFO: Websocket client connected.
2017-04-01 14:54:41:INFO: Successfully connected for active 'EURUSD'.
2017-04-01 14:54:41:ERROR: error from callback <bound method WebsocketClient.on_message of <src.api.iqoption.ws.client.WebsocketClient object at 0x10a3cf410>>: 'balance'
File "/usr/local/lib/python2.7/site-packages/websocket/_app.py", line 268, in _callback
callback(self, *args)
File "/usr/local/lib/python2.7/site-packages/YogaMerchant-0.1-py2.7.egg/src/api/iqoption/ws/client.py", line 35, in on_message
self.api.profile.balance = message["msg"]["balance"]
Traceback (most recent call last):
File "src/yogaMerchant/starter.py", line 205, in
start()
File "src/yogaMerchant/starter.py", line 146, in start
starter.api.changebalance(12074331)
File "/usr/local/lib/python2.7/site-packages/YogaMerchant-0.1-py2.7.egg/src/api/iqoption/http/changebalance.py", line 29, in call
return self._post(data)
File "/usr/local/lib/python2.7/site-packages/YogaMerchant-0.1-py2.7.egg/src/api/iqoption/http/changebalance.py", line 19, in _post
return self.send_http_request("POST", data=data, headers=headers)
File "/usr/local/lib/python2.7/site-packages/YogaMerchant-0.1-py2.7.egg/src/api/iqoption/http/resource.py", line 26, in send_http_request
return self.api.send_http_request(self, method, data=data, params=params, headers=headers)
File "/usr/local/lib/python2.7/site-packages/YogaMerchant-0.1-py2.7.egg/src/api/iqoption/api.py", line 104, in send_http_request
response.raise_for_status()
File "/usr/local/lib/python2.7/site-packages/requests/models.py", line 851, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error:

in attachment , my working json config if it help
look like it need an update to last api version or something

config - copie 2.json.zip

for the problem

One problem with starting, i got this message:
src/yogaMerchant/start_collector.py [Errno 2] No such file or directory.
Its working version? And can u create a video how can i start and how does it work? Really appriciate it.

you can find the start_collector.py into /build/lib/src/yogaMerchant/

i think the documentation is not clear :)

With attached config u able to run the bot?

you can see here in my preview post that it's only login ...so no it does not work

2017-04-01 14:54:37:INFO: Create connection for active 'EURUSD'.
2017-04-01 14:54:38:INFO: Websocket client connected.
2017-04-01 14:54:41:INFO: Successfully connected for active 'EURUSD'.
2017-04-01 14:54:41:ERROR: error from callback <bound method WebsocketClient.on_message of <src.api.iqoption.ws.client.WebsocketClient object at 0x10a3cf410>>: 'balance'

The correct file is src/yogaMerchant/starter.py

I have this issue when running src/yogaMerchant/starter.py

(iqoption) [roberto@roberto IQOption-Bot-Trade-System]$ python src/yogaMerchant/starter.py -c config.json
Traceback (most recent call last):
  File "src/yogaMerchant/starter.py", line 205, in <module>
    start()
  File "src/yogaMerchant/starter.py", line 142, in start
    starter = _create_starter(config, args.setting_id)
  File "src/yogaMerchant/starter.py", line 126, in _create_starter
    return Starter(config, setting_id)
  File "src/yogaMerchant/starter.py", line 45, in __init__
    self.settings = Settings(self.db, setting_id)
  File "/media/datos/Documents/dev/tools/.virtualenvs/iqoption/lib/python2.7/site-packages/YogaMerchant-0.1-py2.7.egg/src/yogaMerchant/settings/settings.py", line 7, in __init__
    super(Settings, self).__init__(db)
  File "/media/datos/Documents/dev/tools/.virtualenvs/iqoption/lib/python2.7/site-packages/YogaMerchant-0.1-py2.7.egg/src/yogaMerchant/settings/default.py", line 32, in __init__
    "db_id": self.active_helper.get_db_id_by_name(active_name),
  File "/media/datos/Documents/dev/tools/.virtualenvs/iqoption/lib/python2.7/site-packages/YogaMerchant-0.1-py2.7.egg/src/yogaMerchant/helpers/active.py", line 15, in get_db_id_by_name
    cursor.execute("SELECT id FROM actives WHERE active=%s;", [active_name])
psycopg2.ProgrammingError: no existe la relación «actives»
LINE 1: SELECT id FROM actives WHERE active='EURUSD';
                       ^

Which means that have not created the relations between tables, any help?

This is an SQL problem. I think it means there is not a table called "actives".

I know it means that, but I do not know how to create that tables, should I create the tables manually?

/data/schema.sql
You can manage to create tables after some minor problems with constraints.

Hello guys ,did someone able to make it work?