{"action":"created","issue":{"url":"https://api.github.com/repos/kkuette/TradzQAI/issues/4","repository_url":"https://api.github.com/repos/kkuette/TradzQAI","labels_url":"https://api.github.com/repos/kkuette/TradzQAI/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/kkuette/TradzQAI/issues/4/comments","events_url":"https://api.github.com/repos/kkuette/TradzQAI/issues/4/events","html_url":"https://github.com/kkuette/TradzQAI/issues/4","id":365790655,"node_id":"MDU6SXNzdWUzNjU3OTA2NTU=","number":4,"title":"We cant afford any contract. Please check wallet settings.","user":{"login":"lamhk","id":38948475,"node_id":"MDQ6VXNlcjM4OTQ4NDc1","avatar_url":"https://avatars1.githubusercontent.com/u/38948475?v=4","gravatar_id":"","url":"https://api.github.com/users/lamhk","html_url":"https://github.com/lamhk","followers_url":"https://api.github.com/users/lamhk/followers","following_url":"https://api.github.com/users/lamhk/following{/other_user}","gists_url":"https://api.github.com/users/lamhk/gists{/gist_id}","starred_url":"https://api.github.com/users/lamhk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamhk/subscriptions","organizations_url":"https://api.github.com/users/lamhk/orgs","repos_url":"https://api.github.com/users/lamhk/repos","events_url":"https://api.github.com/users/lamhk/events{/privacy}","received_events_url":"https://api.github.com/users/lamhk/received_events","type":"User","site_admin":false},"labels":[{"id":614380924,"node_id":"MDU6TGFiZWw2MTQzODA5MjQ=","url":"https://api.github.com/repos/kkuette/TradzQAI/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-02T08:26:48Z","updated_at":"2018-10-02T20:52:53Z","closed_at":null,"author_association":"NONE","body":"Hi, i encountered another issue using the new code.  I tried to increase the capital from 200 to 20000 (for example) and it still happened the same way.  Any idea?  Thanks.\r\n\r\n/TradzQAI-master$ python3.6 run.py -m train\r\nDAT_ASCII_GRXEUR_M1_201711.csv :   0%|                    | 0/1 [00:00<?, ?it/sException in thread Thread-4:                              | 0/1 [00:00<?, ?it/s]\r\nTraceback (most recent call last):                    | 0/18354 [00:00<?, ?it/s]\r\n  File \"/usr/lib/python3.6/threading.py\", line 916, in _bootstrap_inner\r\n    self.run()\r\n  File \"/usr/lib/python3.6/threading.py\", line 864, in run\r\n    self._target(*self._args, **self._kwargs)\r\n  File \"/home/lamhk/TradzQAI-master/core/worker/local_worker.py\", line 45, in run\r\n    self.step()\r\n  File \"/home/lamhk/TradzQAI-master/core/worker/local_worker.py\", line 71, in step\r\n    state, terminal, reward = self.env.execute(action)\r\n  File \"/home/lamhk/TradzQAI-master/core/environnement/local_env.py\", line 184, in execute\r\n    self.wallet.manage_exposure(self.contract_settings)\r\n  File \"/home/lamhk/TradzQAI-master/core/environnement/base/wallet.py\", line 197, in manage_exposure\r\n    raise ValueError('current_max_pos : {:.3f} We cant afford any contract. Please check wallet settings.'.format(self.risk_managment['current_max_pos']))\r\nValueError: current_max_pos : 0.000 We cant afford any contract. Please check wallet settings.\r\n\r\nDAT_ASCII_GRXEUR_M1_201711.csv : 100%|████████████| 1/1 [00:00<00:00,  5.25it/s]\r\n\r\nRegards,\r\nlamhk"},"comment":{"url":"https://api.github.com/repos/kkuette/TradzQAI/issues/comments/426426101","html_url":"https://github.com/kkuette/TradzQAI/issues/4#issuecomment-426426101","issue_url":"https://api.github.com/repos/kkuette/TradzQAI/issues/4","id":426426101,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjQyNjEwMQ==","user":{"login":"kkuette","id":16406382,"node_id":"MDQ6VXNlcjE2NDA2Mzgy","avatar_url":"https://avatars1.githubusercontent.com/u/16406382?v=4","gravatar_id":"","url":"https://api.github.com/users/kkuette","html_url":"https://github.com/kkuette","followers_url":"https://api.github.com/users/kkuette/followers","following_url":"https://api.github.com/users/kkuette/following{/other_user}","gists_url":"https://api.github.com/users/kkuette/gists{/gist_id}","starred_url":"https://api.github.com/users/kkuette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkuette/subscriptions","organizations_url":"https://api.github.com/users/kkuette/orgs","repos_url":"https://api.github.com/users/kkuette/repos","events_url":"https://api.github.com/users/kkuette/events{/privacy}","received_events_url":"https://api.github.com/users/kkuette/received_events","type":"User","site_admin":false},"created_at":"2018-10-02T20:52:53Z","updated_at":"2018-10-02T20:52:53Z","author_association":"OWNER","body":"The average trade is all trade done (buy/sell/draw). I guess you want to know how many of which is done, right ? No, you have to check if you change the ```episodes``` line in ```TradzQAI/config/environemment.json```. The transaction cost is done with the fee value, alors you can change the spread value."}}
{"actor":{"display_login":"kkuette"}}